Replies: 7 comments 2 replies
-
Given org.eclipse.ui.IEditorPart.getEditorSite() -> org.eclipse.ui.IWorkbenchSite.getPage() I think an editor must be in a page so that it has access to the global menu bar and global toolbar (org.eclipse.ui.IEditorSite.getActionBars()) and such. So no, I think there isn't even a non-obvious way to accomplish this. You'll notice though that you can drag an editor to its own window... |
Beta Was this translation helpful? Give feedback.
-
In a previous job, we managed to embed the groovy editor in a dialog, the code is available somewhere under https://github.com/bonitasoft/bonita-studio . |
Beta Was this translation helpful? Give feedback.
-
For embedding just a source viewer (as opposed to the whole editor), I think there are lots of example in JDT of that because that is how things like the formatter and code cleanup do it for their preference pages. |
Beta Was this translation helpful? Give feedback.
-
A |
Beta Was this translation helpful? Give feedback.
-
Which features are you actually looking to offer? As an end-user of the feature editor, I don't understand what problems having it appear there would solve. |
Beta Was this translation helpful? Give feedback.
-
You could eventually reach the same goal by leaving the editor as is, but opening it on an EditorInput that's driven by some arbitrary data source you manage. As long as the editor itself doesn't do unreasonable casts to specific EditorInput (like FileEditorInput) that might be more simple. On save of the editor your data would be updated, and you could use that updated chunk wherever needed. |
Beta Was this translation helpful? Give feedback.
-
In the early e4 days there was a css editor that was used in preferences dialog too but it required certain things in the eidtor to be done in the e4 way. I think https://marketplace.eclipse.org/content/eclipse-4-tools-lightweight-css-editor is the editor but where exactly it's sources are is smth I can't figure out after so many years. |
Beta Was this translation helpful? Give feedback.
-
I'd like to open an editor in a dialog that normally is displayed as a part. In this case the
feature.xml
editor. Digging around in the code I just can't find an obvious way to do so, is there some way to accomplish this?Beta Was this translation helpful? Give feedback.
All reactions