Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'experimental')
-rw-r--r--experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/EditorNavigation.java40
-rw-r--r--experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/Outline.java2
2 files changed, 41 insertions, 1 deletions
diff --git a/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/EditorNavigation.java b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/EditorNavigation.java
new file mode 100644
index 000000000..2ad62e250
--- /dev/null
+++ b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/EditorNavigation.java
@@ -0,0 +1,40 @@
+package org.eclipse.fx.code.compensator.editor;
+
+import javax.annotation.PostConstruct;
+import javax.inject.Inject;
+
+import org.eclipse.fx.core.URI;
+import org.eclipse.fx.ui.services.resources.GraphicsLoader;
+
+import javafx.scene.control.Label;
+import javafx.scene.layout.BorderPane;
+import javafx.scene.layout.HBox;
+import javafx.scene.layout.Pane;
+import javafx.scene.layout.Priority;
+
+public class EditorNavigation {
+ private final GraphicsLoader provider;
+
+ @Inject
+ public EditorNavigation(GraphicsLoader provider) {
+ this.provider = provider;
+ }
+
+ @PostConstruct
+ public void init(BorderPane p) {
+ HBox box = new HBox();
+ box.getStyleClass().add("tool-bar");
+
+ box.getChildren().add(
+ new Label("Editors", provider.getGraphicsNode(URI
+ .createPlatformPluginURI(
+ "org.eclipse.fx.code.compensator.editor",
+ "css/icons/16/main_tab.png"))));
+ Pane spacer = new Pane();
+ HBox.setHgrow(spacer, Priority.ALWAYS);
+ box.getChildren().add(spacer);
+
+
+ p.setTop(box);
+ }
+} \ No newline at end of file
diff --git a/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/Outline.java b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/Outline.java
index 65883601f..2626c98e8 100644
--- a/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/Outline.java
+++ b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/Outline.java
@@ -20,6 +20,6 @@ public interface Outline {
public CharSequence getLabel();
public Node getGraphic();
public OutlineItem getParent();
- public ObservableList<OutlineItem> getChildren();
+ public ObservableList<? extends OutlineItem> getChildren();
}
}

Back to the top