Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » DiagramComposite in Eclipse 4
DiagramComposite in Eclipse 4 [message #1328641] Fri, 02 May 2014 20:10 Go to next message
Fayçal Benaziz is currently offline Fayçal BenazizFriend
Messages: 7
Registered: December 2013
Junior Member

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 13:45 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1890
Registered: July 2009
Location: Walldorf, Germany
Senior Member

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

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

Current Time: Thu May 24 21:42:07 GMT 2018

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

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

Back to the top