Repopulate RootEditPart on double-click [message #248633] |
Fri, 24 April 2009 18:23  |
Eclipse User |
|
|
|
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 12:37  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04005 seconds