Add getters for EditorViewport content
@@ -92,6 +92,20 @@ public abstract class EditorViewport extends BorderPane {
updateView();
}
+ /**
+ * @return The resource the content resides in.
+ */
+ public JavaResource getResource() {
+ return resource;
+ }
+
+ /**
+ * @return The path of the content in the resource.
+ */
+ public String getPath() {
+ return path;
+ }
+
/**
* @param path
* File path.
