Add constructors for scenebuilder

This commit is contained in:
Clément Fournier
2019-02-22 14:59:22 +01:00
parent 7f7090f009
commit 6e330b0848
4 changed files with 21 additions and 3 deletions

View File

@ -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.");
}
}

View File

@ -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) {

View File

@ -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);

View File

@ -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;
}