Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-07-07 19:42:11 +0000
committerTom Schindl2015-07-07 19:42:11 +0000
commit05dd56fe8c5e509eabe4ed2de21e07161ac29ca9 (patch)
tree14960fb012db3d37a23416e184caf044c278ec97 /experimental
parent59b814690c419d029f006074c8acf7da13ca9929 (diff)
downloadorg.eclipse.efxclipse-05dd56fe8c5e509eabe4ed2de21e07161ac29ca9.tar.gz
org.eclipse.efxclipse-05dd56fe8c5e509eabe4ed2de21e07161ac29ca9.tar.xz
org.eclipse.efxclipse-05dd56fe8c5e509eabe4ed2de21e07161ac29ca9.zip
adding navigator for
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