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 #471191] Tue, 26 June 2007 15:45 Go to next message
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.
Re: how to enable "Delete from diagram"? [message #471195 is a reply to message #471191] Wed, 27 June 2007 18:27 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Dave,

As you noted, "Delete from Diagram" action is disabled in any synchronized
diagram. This action will be enabled after regerenration with
"non-synchronized" option turned on. However new diagram editor will be
completely changed.

"Filter/Sort compartment" action usage is not trivial. User has to implement
SortFilterCompartmentItemsEditPolicy and add it to the EditParts. Take a
look at
org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
will make things clearer.

Best wishes,
Tatiana.

"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:f5rcah$q1g$1@build.eclipse.org...
> 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.
>
>
Re: how to enable "Delete from diagram"? [message #471203 is a reply to message #471195] Thu, 28 June 2007 19:33 Go to previous messageGo to next message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Tatiana,

OK, I'll have to dig into GMF generation and try regenerating the ClassD
editor as non-synchronized to test this. Then will also look at the
SortFilterAction you refer to, thanks.

During the modeling webcast yesterday, there were several people asking via
chat about whether UML2Tools supports non-synchronized mode, i.e. creating
several diagrams that represent subset views of a large model. This will be
a very important use case to address. It is very important to the
users/modelers that I work with, and might be the best "default" for 1.0
release of the diagram editors...

Dave

"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:f5ua5t$gm4$1@build.eclipse.org...
> Hi Dave,
>
> As you noted, "Delete from Diagram" action is disabled in any synchronized
> diagram. This action will be enabled after regerenration with
> "non-synchronized" option turned on. However new diagram editor will be
> completely changed.
>
> "Filter/Sort compartment" action usage is not trivial. User has to
> implement SortFilterCompartmentItemsEditPolicy and add it to the
> EditParts. Take a look at
> org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
> will make things clearer.
>
> Best wishes,
> Tatiana.
>
Re: how to enable "Delete from diagram"? [message #471205 is a reply to message #471203] Fri, 29 June 2007 15:51 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Dave,

I am completely agree with you. Non-synchronized diagram are more usable
than synchronized one. There were a moment when Class Diagram was
non-synchronized. However GMF doesn't generate non-synchorized diagrams of
suitable quality now. I hope to have Class Diagram non-synchronized in the
next release.

Tatiana.

PS Dave, it is always a great pleasure to hear the opinion of people who use
our project.

"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:f612ek$l2u$1@build.eclipse.org...
> Hi Tatiana,
>
> OK, I'll have to dig into GMF generation and try regenerating the ClassD
> editor as non-synchronized to test this. Then will also look at the
> SortFilterAction you refer to, thanks.
>
> During the modeling webcast yesterday, there were several people asking
> via chat about whether UML2Tools supports non-synchronized mode, i.e.
> creating several diagrams that represent subset views of a large model.
> This will be a very important use case to address. It is very important
> to the users/modelers that I work with, and might be the best "default"
> for 1.0 release of the diagram editors...
>
> Dave
>
> "Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
> news:f5ua5t$gm4$1@build.eclipse.org...
>> Hi Dave,
>>
>> As you noted, "Delete from Diagram" action is disabled in any
>> synchronized diagram. This action will be enabled after regerenration
>> with "non-synchronized" option turned on. However new diagram editor will
>> be completely changed.
>>
>> "Filter/Sort compartment" action usage is not trivial. User has to
>> implement SortFilterCompartmentItemsEditPolicy and add it to the
>> EditParts. Take a look at
>> org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
>> will make things clearer.
>>
>> Best wishes,
>> Tatiana.
>>
>
>
Re: how to enable "Delete from diagram"? [message #600543 is a reply to message #471191] Wed, 27 June 2007 18:27 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Dave,

As you noted, "Delete from Diagram" action is disabled in any synchronized
diagram. This action will be enabled after regerenration with
"non-synchronized" option turned on. However new diagram editor will be
completely changed.

"Filter/Sort compartment" action usage is not trivial. User has to implement
SortFilterCompartmentItemsEditPolicy and add it to the EditParts. Take a
look at
org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
will make things clearer.

Best wishes,
Tatiana.

"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:f5rcah$q1g$1@build.eclipse.org...
> 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.
>
>
Re: how to enable "Delete from diagram"? [message #600617 is a reply to message #471195] Thu, 28 June 2007 19:33 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Tatiana,

OK, I'll have to dig into GMF generation and try regenerating the ClassD
editor as non-synchronized to test this. Then will also look at the
SortFilterAction you refer to, thanks.

During the modeling webcast yesterday, there were several people asking via
chat about whether UML2Tools supports non-synchronized mode, i.e. creating
several diagrams that represent subset views of a large model. This will be
a very important use case to address. It is very important to the
users/modelers that I work with, and might be the best "default" for 1.0
release of the diagram editors...

Dave

"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:f5ua5t$gm4$1@build.eclipse.org...
> Hi Dave,
>
> As you noted, "Delete from Diagram" action is disabled in any synchronized
> diagram. This action will be enabled after regerenration with
> "non-synchronized" option turned on. However new diagram editor will be
> completely changed.
>
> "Filter/Sort compartment" action usage is not trivial. User has to
> implement SortFilterCompartmentItemsEditPolicy and add it to the
> EditParts. Take a look at
> org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
> will make things clearer.
>
> Best wishes,
> Tatiana.
>
Re: how to enable "Delete from diagram"? [message #600632 is a reply to message #471203] Fri, 29 June 2007 15:51 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Dave,

I am completely agree with you. Non-synchronized diagram are more usable
than synchronized one. There were a moment when Class Diagram was
non-synchronized. However GMF doesn't generate non-synchorized diagrams of
suitable quality now. I hope to have Class Diagram non-synchronized in the
next release.

Tatiana.

PS Dave, it is always a great pleasure to hear the opinion of people who use
our project.

"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:f612ek$l2u$1@build.eclipse.org...
> Hi Tatiana,
>
> OK, I'll have to dig into GMF generation and try regenerating the ClassD
> editor as non-synchronized to test this. Then will also look at the
> SortFilterAction you refer to, thanks.
>
> During the modeling webcast yesterday, there were several people asking
> via chat about whether UML2Tools supports non-synchronized mode, i.e.
> creating several diagrams that represent subset views of a large model.
> This will be a very important use case to address. It is very important
> to the users/modelers that I work with, and might be the best "default"
> for 1.0 release of the diagram editors...
>
> Dave
>
> "Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
> news:f5ua5t$gm4$1@build.eclipse.org...
>> Hi Dave,
>>
>> As you noted, "Delete from Diagram" action is disabled in any
>> synchronized diagram. This action will be enabled after regerenration
>> with "non-synchronized" option turned on. However new diagram editor will
>> be completely changed.
>>
>> "Filter/Sort compartment" action usage is not trivial. User has to
>> implement SortFilterCompartmentItemsEditPolicy and add it to the
>> EditParts. Take a look at
>> org.eclipse.gmf.runtime.diagram.ui.actions.internal.SortFilt erAction, it
>> will make things clearer.
>>
>> Best wishes,
>> Tatiana.
>>
>
>
Previous Topic:interaction with editor
Next Topic:first release
Goto Forum:
  


Current Time: Sat Apr 20 02:26:01 GMT 2024

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

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

Back to the top