Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Start graphiti from an own newWizard
Start graphiti from an own newWizard [message #809262] Tue, 28 February 2012 16:49 Go to next message
Markus Knoop is currently offline Markus KnoopFriend
Messages: 14
Registered: January 2012
Junior Member
Hello Forum,

i implement some classes according to the tutorial to test the functionality of Graphiti. What i now need is to create my diagrams (new file menu) under another existing category with another fileprefix. I will also do some additional work inside the performFinish methode of the newWizard. So i create an extension of org.eclipse.ui.newWizard. Can anybody explain me or show me an example, how to start the Graphiti diagram editor with my own diagram file?
I didn't find any solution by search here inside the forum and if not much experience in develop eclipse plugins.


Regards,
Markus Knoop
Re: Start graphiti from an own newWizard [message #809772 is a reply to message #809262] Wed, 29 February 2012 08:39 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1921
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Markus,

opening the editor simply works using standard Eclipse functionality (e.g
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor()).
You need the editor ID (org.eclipse.graphiti.ui.editor.DiagramEditor - as
Constant at DiagramEditor.DIAGRAM_EDITOR_ID) and an input object: either
DiagramEditorInput or a simple FileEditorInput.

Michael
Previous Topic:Understanding container shapes and selection
Next Topic:Load only domain data and not diagram
Goto Forum:
  


Current Time: Fri Aug 07 17:35:53 GMT 2020

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

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

Back to the top