Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » diagram is null
diagram is null [message #629922] Wed, 29 September 2010 23:58 Go to next message
mjid is currently offline mjidFriend
Messages: 34
Registered: April 2010
Member
Hi,
I use this code to create activity diagram:
diagram = ViewService.createDiagram(ModelElement,PackageEditPart.MODEL _ID,UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);

when i passed ModelElement wish is a type of Activity to method createDiagram then diagram is null.
But when i passed package wish contains ModelElement
it's create all diagrams in this package.

So how can i passed directly my ModelElement ?

Thanks,
Re: diagram is null [message #630243 is a reply to message #629922] Fri, 01 October 2010 09:59 Go to previous message
mjid is currently offline mjidFriend
Messages: 34
Registered: April 2010
Member
No idea?
Previous Topic:add add popupPredefinedItem programmatically
Next Topic:gmf examples no longer on the cvs repository
Goto Forum:
  


Current Time: Fri Apr 26 16:04:53 GMT 2024

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

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

Back to the top