Skip to main content



      Home
Home » Eclipse Projects » Target Management » Extend System, SubSystem in the UI?
Extend System, SubSystem in the UI? [message #715115] Fri, 12 August 2011 08:09 Go to next message
Eclipse UserFriend
Hello there!

Is there a way to extend/customize my System and Subsystem types in the Remote Systems View? Basically I want to add custom actions to their context menus, just like I did with my model objects:
MyModelClassAdapter extends AbstractSystemViewAdapter implements ISystemRemoteElementAdapter...

Thanks in advance!
Ralph
(no subject) [message #715136 is a reply to message #715115] Fri, 12 August 2011 09:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralph,

If all you want to do is add custom actions to the context menus, you don't
need to programmatically alter the RSE view adapters. You could just use
the standard Eclipse popupMenus extension point. The following is an
example from the org.eclipse.rse.examples.tutorial plugin:

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile"
nameFilter="*.jar"
id="actions.jar">
<action
label="Show contents"
tooltip="list contents of this file"
class="samples.ui.actions.ShowJarContents"
menubarPath="additions"
enablesFor="1"
id="actions.jar.show">
</action>
</objectContribution>
</extension>

The objectClass attribute indicates which RSE object to contribute the menu
item to. For example, if you wanted to contribute something to a host
object, you'd use:
objectClass="org.eclipse.rse.core.model.IHost"

I hope this helps,
Dave

"r.pakosch" <forums-noreply@eclipse.org> wrote in message
news:j234h2$oo1$1@news.eclipse.org...
> Hello there!
>
> Is there a way to extend/customize my System and Subsystem types in the
> Remote Systems View? Basically I want to add custom actions to their
> context menus, just like I did with my model objects:
> MyModelClassAdapter extends AbstractSystemViewAdapter implements
> ISystemRemoteElementAdapter...
>
> Thanks in advance!
> Ralph
Re: (no subject) [message #716086 is a reply to message #715136] Tue, 16 August 2011 08:38 Go to previous message
Eclipse UserFriend
Hi Dave,

thanks, I think this will do the job! I will try that out!

Best regards
Ralph
Previous Topic:How to programmatically refresh a file subsystem view?
Next Topic:Copy/paste in terminal for Mac OS X
Goto Forum:
  


Current Time: Tue Jul 08 15:34:21 EDT 2025

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

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

Back to the top