Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Composite Structures and GMF
Composite Structures and GMF [message #985984] Fri, 16 November 2012 22:51
Nick Collier is currently offline Nick CollierFriend
Messages: 20
Registered: July 2009
Junior Member

I'm trying to generate a diagram based on a composite pattern. So, something akin to the relationship between to the CompositeState, AbstractState, State and StateMachine in this old example:

Where I run into trouble is when I try to add a CompositeState to the diagram. Then I get the following:

!MESSAGE execute
org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:failed to create a view
at org.eclipse.core.runtime.Assert.isNotNull(
at org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand.doExecuteWithResult(

The stack trace isn't very specific so I'm not exactly sure what's wrong. I did find some posts about containments and multiple domain objects which made me suspect that perhaps the CompositeState can't figure out what it should be added to, but I really don't know. Any suggestions for how to work with this kind of pattern (where a container can contain itself) would be appreciated.


Previous Topic:cannot reopen diagram in the editor after executing SetBoundsCommand or setLayoutConstraint
Next Topic:Change fill color on Text doesn't change it
Goto Forum:

Current Time: Wed Jun 20 11:49:19 GMT 2018

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

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

Back to the top