|
|
|
Re: Is it possible to edit an EMF model with two different editors? [message #384150 is a reply to message #384149] |
Mon, 26 April 2004 19:22 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Charles,
You cannot globally register two different parsers for the same extension. Have
a look at the Ecore editor plugin.xml and the classes in that plugin to see how
a single editor can be reused to behave like multiple different editors.
Charles Fulnecky wrote:
> Thanks for the quick reply Ed!
>
> Not showing children was indeed easy, the difficulty for me was still being
> able to edit the children as nested elements in the properties window.
> Since I could have two datasources beneath an operational element, only the
> first one would show, and since each datasource can have it's own parameter
> children(a name/value pair) I was unsure how to get the nested children to
> appear and after reading
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 3243.html I
> decided to try using multiple editors.
>
> As you stated "Open With" allows me to open with the editor of choice,
> however there seems to be some conflict between the editors, since they both
> work individually (loaded into plugin registry in runtime workspace) however
> when both plugins are loaded into the runtime workspace I get the display
> shown in the attached gif.
>
> I wonder if the conflict is due to the manifest files?
>
> Editor 1:
> <extension point="org.eclipse.emf.ecore.extension_parser">
>
> <parser
>
> type="forceorganization" <!-- was forceorganizationadmin based on name of
> xsd used to generate editor -->
>
> class="forceOrganization.util.ForceOrganizationResourceFactoryImpl " />
>
> </extension>
>
> Editor 2:
>
> <extension point="org.eclipse.emf.ecore.extension_parser">
>
> <parser
>
> type="forceorganization"
>
> class=" forceOrganizationAdmin.util.ForceOrganizationAdminResourceFa ctoryImpl
> " />
>
> </extension>
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:408D1BBB.C23F9F4C@ca.ibm.com...
> > Charles,
> >
> > Not showing children past a certain level should be easy. What's the
> problem
> > with doing that? It's also possible to have multiple editors for the same
> > extension; you just need to do "Open With" to choose....
> >
> >
>
> [Image]
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02872 seconds