Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » org.eclipse.graphiti.ui.editor.DiagramEditorInput(The method getDiagram() is undefined for the type DiagramEditorInput)
icon4.gif  org.eclipse.graphiti.ui.editor.DiagramEditorInput [message #1012468] Thu, 21 February 2013 16:02 Go to next message
Alex Stud is currently offline Alex Stud
Messages: 1
Registered: February 2013
Junior Member
Hello everybody,

I'm trying to obtain a "org.eclipse.graphiti.mm.pictograms.Diagram" from "org.eclipse.graphiti.ui.editor.DiagramEditorInput".

I'm developing the plug-in with EclipsePDE but it says that this class does not have the "getDiagram()" method.

But the documentation says that it should have...
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fjavadoc%2Forg%2Feclipse%2Fgraphiti%2Fui%2Feditor%2FDiagramEditorInput.html

Any suggestion or idea?
Thanks!
Re: org.eclipse.graphiti.ui.editor.DiagramEditorInput [message #1012919 is a reply to message #1012468] Fri, 22 February 2013 13:07 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1603
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Alex,

there is a mixture of versions. Probably you use Graphiti 0.9.x (part of
Eclipse Juno), while you refer to the Graphiti 0.8.x (part of Indigo)
documentation. The link below points to the Indigo docu at least. The Juno
version is at http://help.eclipse.org/juno/index.jsp?nav=%2F22

The background is that there was an (incompatible) change in the editor API
also affecting DiagramEditorInput. It now stores only a URI of the diagram,
which means that you will need an editing domain to actually resolve teh
diagram instance.

Michael
Previous Topic:Drawing 2 different connections for same source and target pictograms
Next Topic:Disable reconnection
Goto Forum:
  


Current Time: Wed Oct 01 20:38:40 GMT 2014

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

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