Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti and E4
Graphiti and E4 [message #730527] Wed, 28 September 2011 14:51
keersbulik Missing name is currently offline keersbulik Missing nameFriend
Messages: 6
Registered: May 2011
Junior Member
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

Previous Topic:CVS or GIT?
Next Topic:Connections and Bendpoints within Containershapes?
Goto Forum:
  


Current Time: Thu Apr 25 16:49:16 GMT 2024

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

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

Back to the top