Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » how to enable "Delete from diagram"?
how to enable "Delete from diagram"? [message #600501] Tue, 26 June 2007 15:45
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi,
I want to enable the "Delete from diagram" context menu in the diagrams, so
that the model remains unchanged. Researching this a bit, it appears to be
related to the canonical edit policy of the generated editors. I found the
GMF faq copied below. So does this mean that I should regenerate all UML
diagram editors and not use the plugins delivered by this project?

Related to this, I also want to enable the "Filter/sort compartment items"
menu command. Any suggestions on how I do this?

Thanks,
Dave Carlson

From the GMF faq:

How can I use an alternative to canonical containers?
a.. Q: I am currently looking for an alternative to the canonical
containers in GMF.
Imagine you have a UML2 package model and want to see just a subset of its
classes in one diagram and another subset in another diagram. With the
canonical policy that's not possible, because as soon as you add a class to
one diagram, it does automatically pop up in the other, because they share
the same semantic container.

Is it be possible to enforce another policy in GMF?

I've already had a look at the edit policies of the generated diagram
classes. Would it be sufficient just to put a non-canonical policy there, or
is there further impact of the canonical container principle on the runtime
classes? How big would you estimate the amount of necessary changes?

a.. A: GMF can generate non-synchronized diagram; I suggest you to use
GenDiagram.synchronized property and fully generate
the code.
Previous Topic:Decorate a class shortcut
Next Topic:Decorate a class shortcut
Goto Forum:
  


Current Time: Fri Apr 26 06:30:43 GMT 2024

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

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

Back to the top