Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti Editor in a custom Editor
Graphiti Editor in a custom Editor [message #883331] Fri, 08 June 2012 09:57 Go to next message
Maxime D is currently offline Maxime DFriend
Messages: 27
Registered: June 2012
Junior Member
Hi all,

I would like to know if it's possible to integrate the Graphiti editor into a custom editor created with Eclipse RCP.

I explain, my use case is about to create a graphical plugin to modify some configuration files (text files).
And I would like to provide the same functionality as adt plugin (Android one) : in a java project, when I'll double-click on a config file, the editor will open with two tabs : Graphiti diagram and text file.

What I didn't want, is to create a new Graphiti project to modify my configuration file (which is in java project).

Before asking questions, I looked through the Graphiti's forum but I didn't find what I need to know.

I hope some of you could help me, thanks.
Re: Graphiti Editor in a custom Editor [message #884507 is a reply to message #883331] Mon, 11 June 2012 08:03 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Yes, it's possible to embed the Graphiti diagram editor into a multi page
editor. We do have an example in one of the test tools in our upcoming Juno
0.9.0 release. With some modification it will also work in 0.8.0. See our
Git repo at
http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/tree/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/editors

Using a Java project for storing Graphiti diagrams is perfectly ok. You
don't need any specific Graphiti settings on project level.

Michael
Re: Graphiti Editor in a custom Editor [message #892162 is a reply to message #884507] Wed, 27 June 2012 09:27 Go to previous message
Maxime D is currently offline Maxime DFriend
Messages: 27
Registered: June 2012
Junior Member
Thank your for your answer.

Now I use XText to model my configuration file. I saw there is a new framework called Spray which create a Graphiti editor with our own DSL.
But it's quite new, so I surely use Graphiti.
Previous Topic:Customized Editing Domain for Diagram Editor
Next Topic:Simple collapsefeature
Goto Forum:
  


Current Time: Tue Apr 23 12:37:58 GMT 2024

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

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

Back to the top