Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Different figure for super- and subtype
Different figure for super- and subtype [message #899068] Mon, 30 July 2012 13:06 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 697
Registered: November 2009
Senior Member
Hello,

I have type B inheriting from type A. Both types are not abstract in the meta-model. I defined and assigned figures and tools for both types. If I want to add B the subtype from the palette I get an exception while creation the view and nothing is displayed [1]. After closing and opening the file B is displayed with the figure of it's supertype A. Also the propertie's sheet displays A.

[1]
Quote:
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:failed to create a view
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand.doExecuteWithResult(CreateCommand.java:96)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
... 38 more


Cheers,

Ralph
Re: Different figure for super- and subtype [message #899224 is a reply to message #899068] Tue, 31 July 2012 07:13 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 574
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

not sure it is the same usecase. But I remember that sometimes you have to respect the "correct" order in gmfmap for the mapping for A and B. You should try to revert the order.

regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Re: Different figure for super- and subtype [message #899237 is a reply to message #899224] Tue, 31 July 2012 08:07 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 697
Registered: November 2009
Senior Member
Aurelien,

you are so right. Changing the order in gmfmap, deleting the generator model and recreating it fixed the error. Thank you very much! Without you would have looked for this for years!

Thanks,

Ralph
Previous Topic:No XMI-ID in GMF Diagram File
Next Topic:Draw something, when creating a node
Goto Forum:
  


Current Time: Wed Nov 26 02:11:11 GMT 2014

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

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