Eclipse compat RCP: Emulate "Open with" behaviour via E4 model

34 views Asked by At

I develop a workspace-based compat layer RCP which includes a Project Explorer. I contribute some editors via plugin.xml, so I can call Open with ... via the Project Explorer for some data files.

I also contribute other editors via fragment.e4xmi and would like to bind those to the "Open with ..." menu so that they "function the same way" for the user, i.e., can be opened the same way. I understand that this is not what is intended, but perhaps it can be "hacked"?

Generally I'm wondering whether there is a best (or at least working) practice of setting models on editors. E.g., how do I best set the model (i.e., what used to be editor input) on an editor extending GEF's AbstractFXEditor? And how do I share the model consistently between parts?

0

There are 0 answers