Add constructors for scenebuilder
This commit is contained in:
@ -123,7 +123,9 @@ public class Designer extends Application {
|
||||
long initTime = System.currentTimeMillis() - initStartTimeMillis;
|
||||
|
||||
System.out.println("done in " + initTime + "ms.");
|
||||
System.out.println("Run with --verbose parameter to enable error output.");
|
||||
if (!owner.isDeveloperMode()) {
|
||||
System.out.println("Run with --verbose parameter to enable error output.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,7 +35,14 @@ public class AstTreeView extends TreeView<Node> implements NodeSelectionSource {
|
||||
|
||||
private ASTTreeItem selectedTreeItem;
|
||||
private final SuspendableEventStream<Node> selectionEvents;
|
||||
private DesignerRoot designerRoot;
|
||||
private final DesignerRoot designerRoot;
|
||||
|
||||
|
||||
/** Only provided for scenebuilder, not used at runtime. */
|
||||
public AstTreeView() {
|
||||
designerRoot = null;
|
||||
selectionEvents = null;
|
||||
}
|
||||
|
||||
|
||||
public AstTreeView(@NamedArg("designerRoot") DesignerRoot root) {
|
||||
|
@ -48,8 +48,13 @@ public class NodeEditionCodeArea extends HighlightLayerCodeArea<StyleLayerIds> i
|
||||
private final Var<List<Node>> currentRuleResults = Var.newSimpleVar(Collections.emptyList());
|
||||
private final Var<List<Node>> currentErrorNodes = Var.newSimpleVar(Collections.emptyList());
|
||||
private final Var<List<NameOccurrence>> currentNameOccurrences = Var.newSimpleVar(Collections.emptyList());
|
||||
private DesignerRoot designerRoot;
|
||||
private final DesignerRoot designerRoot;
|
||||
|
||||
/** Only provided for scenebuilder, not used at runtime. */
|
||||
public NodeEditionCodeArea() {
|
||||
super(StyleLayerIds.class);
|
||||
designerRoot = null;
|
||||
}
|
||||
|
||||
public NodeEditionCodeArea(@NamedArg("designerRoot") DesignerRoot root) {
|
||||
super(StyleLayerIds.class);
|
||||
|
@ -103,6 +103,10 @@ public final class ToolbarTitledPane extends TitledPane {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If non-blank, an error icon with this message as the tooltip
|
||||
* will appear.
|
||||
*/
|
||||
public Var<String> errorMessageProperty() {
|
||||
return errorMessage;
|
||||
}
|
||||
|
Reference in New Issue
Block a user