|
|
|
|
Re: Graphiti and E4 [message #903662 is a reply to message #741394] |
Fri, 24 August 2012 18:58 |
Johnny Qin Messages: 40 Registered: April 2012 |
Member |
|
|
Hi keersbulik,
Did you manage to integrate graphiti with e4?
Paul, can you explain a little more about your idea? It's been 8 months now. Do you think there's an easier approach?
I am right now struggling with this approach. Any suggestions or comments will be highly appreciated!
Regards,
Johnny
keersbulik Mising name wrote on Wed, 19 October 2011 09:42Hello,
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.
|
|
|
Re: Graphiti and E4 [message #907049 is a reply to message #903662] |
Mon, 03 September 2012 08:04 |
|
Basically the problem with Graphiti is that it depends on GEF which is dependening on org.eclipse.ui.workbench.
That package requires your application to run with the compatibility layer, which supplies a re-implementation of org.eclipse.ui.workbench on top of "4.x".
So until GEF (and Graphiti) has been migrated/rewritten to be "pure 4.x", you need to write your editor the old 3.x way, which ensures that the "compatibility layer" is pulled in.
There's a bug 372171 for GEF which you may want to vote for... Not much has happened in the bug so it would be great to push it to make sure GEF moves along...
|
|
|
Powered by
FUDForum. Page generated in 0.02902 seconds