Skip to main content



      Home
Home » Modeling » Graphiti » DiagramComposite in Eclipse 4
DiagramComposite in Eclipse 4 [message #1328641] Fri, 02 May 2014 16:10 Go to next message
Eclipse UserFriend
Hello,

I would like to know if there is a way to use the diagram composite in a Eclipse 4 RCP, inside a MPart. I can display a diagram but when I want to call an AddFeature, I can't use : Graphiti.getPeCreateService().createContainerShape(ContainerShape cs, boolean active).
Indeed, when I use this method, I have an NPE error because the IWorkbenchPart can't be found.
But in the DiagramComposite constructors, there is a constructeur with the IWorkbenchPart in parameter and another without the IWorkbenchPart in parameter. Maybe is it a mistake ?

Best regards,
Fayçal B.
Re: DiagramComposite in Eclipse 4 [message #1341461 is a reply to message #1328641] Thu, 08 May 2014 09:45 Go to previous message
Eclipse UserFriend
Hi,

not sure, both constructors should be usable (and are actually used). Can
you provide a stack trace for the NPE?

Michael
Previous Topic:Initializing Diagrams Programmatically
Next Topic:Tool Palette drag and drop error
Goto Forum:
  


Current Time: Wed Jul 23 12:55:02 EDT 2025

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

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

Back to the top