|
|
|
Re: RSE SubSystem - Copy/Paste support [message #759959 is a reply to message #759572] |
Wed, 30 November 2011 17:31 |
David McKnight Messages: 244 Registered: July 2009 |
Senior Member |
|
|
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.03758 seconds