Some Editing properties!!! [message #181077] |
Thu, 12 May 2005 04:18 |
Eclipse User |
|
|
|
Originally posted by: gautamn.iitk.ac.in
Hi,
I am making a GEF based diagram editor. How can I introduce some editing
facilities like cut, copy paste a part of diagram in my editor.
Regards,
Nitin.
|
|
|
Re: Some Editing properties!!! [message #181099 is a reply to message #181077] |
Thu, 12 May 2005 13:22 |
Eclipse User |
|
|
|
Originally posted by: gslade.no.spam.us.ibm.com
In general, to create a action you need to create an
org.eclipse.jface.action.Action and register it with the ActionRegistry,
see LogicEditor.createActions() for an example.
Toi have the action appear in a context menu you must register the
action with your editors ContextMenuProvider, see
LogicContextMenuProvider for an example.
There have been various threads in this newsgroup regarding this topic.
You should hunt through and read them as they probably have some hints
and tips regarding specifically implementing the actions you mentioned.
Guy
Nitin Gautam wrote:
> Hi,
> I am making a GEF based diagram editor. How can I introduce some
> editing facilities like cut, copy paste a part of diagram in my editor.
> Regards,
> Nitin.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02576 seconds