-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Switch to Editor' dialog does not include parts contributed via e4 model fragment which represent an Editor #2764
Comments
Could you please attach a simple bundle project that contributes such an editor, so whoever is interesting in the bugfix could quickly debug the problem without wasting time on creating the reproducible example? Thanks. |
Yes of course, apologies for not including in the original post. I will put that together and attach here today. |
Sample plugin is now available on the master branch in the org.eclipse.e4.ui.examples collection. Instructions
Observed Notes |
@feilimb would you mind open a PR and adding it here: https://github.com/eclipse-platform/eclipse.platform.ui/tree/master/examples |
I have created a PR now (#2766), purely for the addition of sample dummy e4 editor addition/contribution via model fragment. |
Update: the PR above, purely for addition of sample E4 Editor was now merged to master. Therefore to reproduce this Issue, one simply needs to use the run configuration 'Runtime Workspace', but add the 'org.eclipse.e4.ui.examples.e4editor' additional plugin via the 'Select plug-ins..' option on right hand side. Reproduction steps updated in the post above also, for full details. |
Steps to Reproduce
To reproduce you will need to define an editor part which is contributed via an e4 model fragment (eg. via a PartDescriptor), and can be opened eg. via a Menu addition.
It should be marked as closeable and given the magic 'Editor' tag (see screenshot snippet below):
Launch the IDE application and open the newly contributed Part which represents an Editor and was contributed via a model fragment.
Go to the Switch to Editor dialog, via Window/Navigation/Switch to Editor
The dialog does not include the Part contributed via model fragment which represents an Editor, it will contain any other compatibility layer editors which have been opened, eg. the simple Text Editor.
Notes
Looking at platform source code, there appears to multiple places where the 'Editor' tag is checked to perform some handling based on its presence.
Would it be possible to update the Switch to Editor dialog, to also cater for e4 part(s) contributed which represent Editor(s).
The text was updated successfully, but these errors were encountered: