Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Cannot delete GMF diagram element
Cannot delete GMF diagram element [message #237242] Wed, 22 July 2009 15:47
Joe is currently offline JoeFriend
Messages: 9
Registered: July 2009
Junior Member
Hello all,

I've set up a GMF project, everything works well except I cannot delete an
element by press "delete" key, this element will be removed from the
editor, but won't be removed from diagram file, this is the description of
this element:
1. this is a link diagram element
2. the source and the target of this diagram element are links too


And these are my debug conclusions:
1. "Delete from Diagram" option is disabled and "Delete from Model" option
is enabled when I click other element, BUT both "Delete from Diagram"
option and "Delete from Model" option are enabled, and "Delete from
Diagram" cannot remove this element(from file), "Delete from Model" can
remove this element(from file).
2.
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg16828.html,
this bro has mentioned a same problem, but I tried the solution, didn't
work for me
3. it seems the reason of "Delete from Diagram" option is enabled is the
return value of getCommand() method in
org.eclipse.gmf.runtime.diagram.ui.actions.internal.org.ecli pse.gmf.runtime.diagram.ui.actions.internal
is not null.
4. It seems that the "Delete from Diagram" command will be activated if I
try to press "delete" key to delete this element


Now my quesion is:
1. The most important thing is, could anyone tell me how to delete this
element by click "delete" key?
2. Is it a bug for GMF?
3. Why do we need "Delete from Diagram" option? It seems useless.




Thank you in advance,
Joe
Previous Topic:how to create programmatically a note attachment
Next Topic:java.lang.IllegalStateException: Cannot modify,resource set without a write transaction
Goto Forum:
  


Current Time: Fri Mar 29 14:38:48 GMT 2024

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

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

Back to the top