Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Repopulate RootEditPart on double-click
Repopulate RootEditPart on double-click [message #248633] Fri, 24 April 2009 22:23 Go to next message
Gerrit  is currently offline Gerrit Friend
Messages: 30
Registered: July 2009
Member
Hi everyone.

I want to create a graphical editor for SVG documents with Eclipse GEF and
Batik. I've already created a small setup where you can open SVG documents
and then scale, skew and rotate top-level elements. The handles will
change from scaling to rotate/skew mode and back every time you click on a
shape.

If anyone is interested or would like to help, the plugin can be installed
from the update site in the SVN repository:

http://svn.berlios.de/svnroot/repos/svgcompost/trunk/svgcomp ost.updatesite/

Next, I'd like to implement the common "enter group" feature, where the
user double-clicks on a group node to set it as the editable layer and
modify its children. (Does this maybe have a simpler name?)

Are there already any features already present in GEF/GMF that implement a
sudden reset of the RootEditPart and a repopulation with a new set of
children? Currently, I don't even know how to address the proper classes
from within the Tool instance.

Thanks in advance!

Regards,
Gerrit
Re: Repopulate RootEditPart on double-click [message #248743 is a reply to message #248633] Wed, 29 April 2009 16:37 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
I've never built the specific functionality you're talking about, but a
few assorted tips may help...

You'll want to handle double-click in your edit part, as described here:

http://wiki.eclipse.org/index.php/GEF_Developer_FAQ#How_do_I _do_.22X.22_when_the_User_double-clicks.3F

If you are just trying to change the set of children when this happens,
then your performRequest would do a refreshChildren() after having
updated the model so that there are different children available when
the edit part asks for them.

Regards
Ben

Gerrit wrote:
> Hi everyone.
>
> I want to create a graphical editor for SVG documents with Eclipse GEF
> and Batik. I've already created a small setup where you can open SVG
> documents and then scale, skew and rotate top-level elements. The
> handles will change from scaling to rotate/skew mode and back every time
> you click on a shape.
>
> If anyone is interested or would like to help, the plugin can be
> installed from the update site in the SVN repository:
>
> http://svn.berlios.de/svnroot/repos/svgcompost/trunk/svgcomp ost.updatesite/
>
> Next, I'd like to implement the common "enter group" feature, where the
> user double-clicks on a group node to set it as the editable layer and
> modify its children. (Does this maybe have a simpler name?)
>
> Are there already any features already present in GEF/GMF that implement
> a sudden reset of the RootEditPart and a repopulation with a new set of
> children? Currently, I don't even know how to address the proper classes
> from within the Tool instance.
>
> Thanks in advance!
>
> Regards,
> Gerrit
>
Previous Topic:Commands triggered by a key stroke
Next Topic:Node and Connection creation inconsistency?
Goto Forum:
  


Current Time: Fri Apr 19 08:37:44 GMT 2024

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

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

Back to the top