Skip to main content



      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 09:06 Go to next message
Eclipse UserFriend
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 03:13 Go to previous messageGo to next message
Eclipse UserFriend
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,
Re: Different figure for super- and subtype [message #899237 is a reply to message #899224] Tue, 31 July 2012 04:07 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 14:03:35 EDT 2025

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

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

Back to the top