Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Data Flow Diagram Editor
Data Flow Diagram Editor [message #233750] Tue, 01 May 2007 21:20 Go to next message
Eclipse UserFriend
Originally posted by: coa03ysa.sheffield.ac.uk

Hello,

I am currently building a data flow diagram editor using GEF. I have built
my model; I have designed the figures; and I have an editor, albeit an
empty one. I want to get the editor up and running. I have been advised to
associate a certain type of file extension with my editor, to create a
file with this extension and then to open it. However, I must admit that I
am still confused about exactly how to do this. I would appreciate any
advice on how to go about getting my editor up and running so that I can
demonstrate my work so far.

Many thanks,

Yvon Asafu-Adjaye
Re: Data Flow Diagram Editor [message #233758 is a reply to message #233750] Wed, 02 May 2007 00:19 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Yvon,

You'd have to look very closely at GEF example editors. Most likely the
closest example to yours would be org.eclipse.gef.examples.flow (any other
like org.eclipse.gef.examples.logic is good too). Open up the plugin.xml
file from a GEF editor example plugin project in Eclipse, then open up
'Extensions' tab and look under org.eclipse.ui.editors extension point.
Now open up '(editor)' extension element - this is the one that defines
your editor for Eclipse. You should use the same extension in your editor
plugin to contribute it to Eclipse.
Hope this helps.

Cheers,
Alex
Re: Data Flow Diagram Editor [message #233806 is a reply to message #233758] Thu, 03 May 2007 11:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: coa03ysa.shef.ac.uk

Alex,

Thanks a lot for your advice. I've been ploughing through the flow diagram
example but unfortunately, I haven't managed to find the plugin.xml file
for it. I assume however, that the plugin.xml for my DFD editor would have
to extend the org.eclipse.ui.editors extension point. Please confirm if
this is correct; once again I'd be grateful for any advice you could give
to help me speed up the development. Many thanks.

Regards,

Yvon
Re: Data Flow Diagram Editor [message #233876 is a reply to message #233806] Fri, 04 May 2007 02:30 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Yvon,

Correct. You need to extend org.eclipse.ui.editors extension point in your
editor plugin to be able to associate your editor with a file extension in
Eclipse.
You can get gef example editors from CVS:
host: dev.eclipse.org
path: /cvsroot/tools
user: anonymous
password: (just blank, no need for password)
Under gef find org.eclipse.gef.examples.* plugins and check them out.
Hope this helps.

Cheers,
Alex
Previous Topic:Help to Work with GEF an d Custom dll
Next Topic:How to layout and repaint all EditParts?
Goto Forum:
  


Current Time: Sat Aug 20 06:47:24 GMT 2022

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

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

Back to the top