Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Wrong palette displayed in partitioned diagram
Wrong palette displayed in partitioned diagram [message #226608] Fri, 17 April 2009 22:08 Go to next message
Peter Lang is currently offline Peter LangFriend
Messages: 153
Registered: July 2009
Senior Member
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 #226703 is a reply to message #226608] Mon, 20 April 2009 12:11 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Peter,

> 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.

-----------------
Alex Shatalin
Re: Wrong palette displayed in partitioned diagram [message #226723 is a reply to message #226703] Mon, 20 April 2009 14:04 Go to previous message
Peter Lang is currently offline Peter LangFriend
Messages: 153
Registered: July 2009
Senior Member
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.
Previous Topic:editing more than one instance of a model with shared editing domain
Next Topic:Creation of a concrete Specialization Type ends in "not-allowed" cursor
Goto Forum:
  


Current Time: Fri Apr 19 02:13:53 GMT 2024

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top