Wrong palette displayed in partitioned diagram [message #226608] |
Fri, 17 April 2009 18:08  |
Eclipse User |
|
|
|
I followed the instructions of the Diagram Partitioning Cheat Sheet and it
seems to work just fine.
I've got a top-level node (TopClass) and a sub-node (Subclass). I can add
TopClasses, and double-clicking opens a new diagram which allows me to add
Subclasses.
Everything works as expected until I reopen a saved diagram. The
TopClasses are being displayed, but the palette used to create Subclasses
is displayed instead of the expected one to create TopClasses. The toolbar
seems to work, but I can not create any Subclasses of course, since
TopClasses are expected at this level.
The correct palettes are selected both for top-map and sub-map (editing a
new diagram works fine). I tried to give both diagrams different Package
Name Prefixes just in case, but it did not help.
I checked this thread
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08218.html
but the solution at
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg06669.html
only makes sense, when having more than one sub-diagram.
Any ideas what I could be doing wrong?
Thanks a lot,
Peter
|
|
|
|
Re: Wrong palette displayed in partitioned diagram [message #226723 is a reply to message #226703] |
Mon, 20 April 2009 10:04  |
Eclipse User |
|
|
|
Hello,
The wiki-article does not seem to provide the information I needed, but
your post motivated me to take another look at my model :)
The problem was a non-unique
Factory Class Name
in
Gen Editor Generator -> Gen Diagram -> Palette
Just another "Thank you" for your great support, Alex!
Alex Shatalin wrote:
>> The correct palettes are selected both for top-map and sub-map
>> (editing a new diagram works fine). I tried to give both diagrams
>> different Package Name Prefixes just in case, but it did not help.
> Try reading http://wiki.eclipse.org/GMF_GenModel_Hints and making unique
> all the properties referenced there as "unique" - it looks like a clash of
> two different diagrams made above the same domain model.
|
|
|
Powered by
FUDForum. Page generated in 0.12417 seconds