Hello,
I try to integrate graphiti in an E4 application.
I use compatibility layer.
i wrote an E4 handler to open a diagram in my editor.
public class MyHandler {
@Execute
public void openEditor(EPartService partService,
MApplication application, EModelService modelService) {
MInputPart part = MBasicFactory.INSTANCE.createInputPart();
part.setLabel("Editor");
part.setCloseable(true);
part.setContributionURI("platform:/plugin/org.eclipse.graphiti.ui/org.eclipse.graphiti.ui.editor.DiagramEditor");
part.setInputURI("my diagram path");
List<MPartStack> stacks = modelService.findElements(application, null, MPartStack.class, null);
stacks.get(0).getChildren().add(part);
partService.showPart(part, PartState.ACTIVATE);
}
}
When i perform the action a part is open, but the tab is empty.
Does anyone already try to do that ?
Thanks.
[Updated on: Wed, 28 September 2011 14:52]
Report message to a moderator