|
|
|
|
Re: Loading Multiple Diagram Editor Plugins [message #204336 is a reply to message #204140] |
Wed, 03 September 2008 18:45 |
Maurice O'Connor Messages: 86 Registered: July 2009 |
Member |
|
|
Seweryn Niemiec wrote:
> as a "package" you mean a "semantic model or domain model"?
I have separate model files for each diagram editor, with a different
extension for each. However, they both work off the same generated
package. Eg, the generated code from the genmodel, in mypackage,
mypackage.impl and mypackage.util is exactly the same for both. Same for
the .edit project, obviously.
> I don't understand what you try to do exactly, but If you want to have
> two diagram editors operating on same semantic model, then you should
> take a look at taipan example and (it's in the eclipse.org CVS) and
> read this
>
I'm not looking to share the same EditingDomain between diagrams.
My problem is that when I open both diagrams, one reads its model
correctly, but the other does not. It goes like this:
diagram.foo_diagram loads and I see EditParts of type A, B and C, as I
should.
diagram.bar_diagram loads and I see EditParts of type A, B and C, when I
should seeits own Editparts, of type D and E. I can't use the palette to
add elements when this happens.
Both diagrams have different Editor ID's on the runtime workbench and
different contributing plugins. I verified this using Plugin-Spy. This is
as you'd expect.
There are no errors or messages in the runtime Eclipse log. The binding
context listed in elementTypeBindings in plugin.xml is also different
between the two diagrams, with different elementTypes listed for each one.
If I load each diagram plugin individually into my runtime instance, they
both work as expected. It's when they both are loaded together that things
mess up. Seems like there's some kind of clash going on with how one
diagram reads its displayed EditPart types. It decides to display the ones
from the other diagram instead of its own.
I'd be grateful for any tips about which bits of code to look at to remedy
this!
Thanks,
Maurice
|
|
|
|
Powered by
FUDForum. Page generated in 0.03158 seconds