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 ?