Changing the domain model programmatically [message #675765] |
Wed, 01 June 2011 08:57  |
Eclipse User |
|
|
|
Hello,
i want to add an action to my generated editor that performs complex changes of the underlying domain model. Therefore, i wrote a command that implements the org.eclipse.emf.common.command.Command Interface.
Within the corresponding Action, this command is executed on the command stack of the TransactionalEditingDomain which is associated to my GMF Editor. The command is executed and no exception is thrown but the model seems to remain unchanged...
Regards,
Thomas
|
|
|
|
|
|
|
|
|
Re: Changing the domain model programmatically [message #883253 is a reply to message #675765] |
Fri, 08 June 2012 02:30  |
Eclipse User |
|
|
|
aha.. so the only thing this workaround does is replacing calls to the non-existing methods (the errors) with "Collections.emptyList()", something that can easily be done manually.
However, it doesn't really solve my problem. When I programmatically add/remove phantom nodes, they will only show up in the diagram once I also add/remove non-phantom nodes.
Unfortunately, the bug will only be revisited in GMF 3.0.
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds