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 Benaziz
Messages: 7
Registered: December 2013
Junior Member
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 13:45 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1595
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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: Mon Sep 22 22:23:05 GMT 2014

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

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