RSE SubSystem - Copy/Paste support [message #758789] |
Thu, 24 November 2011 09:52  |
Eclipse User |
|
|
|
Hello,
I'm looking for a general way to support copying and pasting resources between my and other SubSystems. Are there any interfaces for this purpose?
Thanks in advance!
Ralph
|
|
|
|
|
Re: RSE SubSystem - Copy/Paste support [message #759959 is a reply to message #759572] |
Wed, 30 November 2011 12:31   |
Eclipse User |
|
|
|
Hi Ralph,
If you'd like to add copy/paste support just implement the following in your
view adatper:
public void addActions(SystemMenuManager menu, IStructuredSelection
selection, Shell shell, String menuGroup)
{
...
if (copyClipboardAction == null){
copyClipboardAction = new SystemCopyToClipboardAction(shell, null);
}
if (paseClipboardAction == null){
pasteClipboardAction = new SystemPasteFromClipboardAction(shell, null);
}
menu.add(menuGroup, copyClipboardAction);
menu.add(menuGroup, pasteClipboardAction);
...
"r.pakosch" <forums-noreply@eclipse.org> wrote in message
news:jb26fv$opr$1@news.eclipse.org...
> Hi Dave,
>
> thank you! The solution was incredibly simple (we had the doDrag(...)
> method already implemented, but without returning an IResource)! Drag &
> Drop works fine now!
>
> Is there a way to do exact the same thing with explicit "Copy" and "Paste"
> actions? Do we have to define our own actions for that?
>
> Ralph
|
|
|
|
Powered by
FUDForum. Page generated in 0.04585 seconds