Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » Extend System, SubSystem in the UI?
Extend System, SubSystem in the UI? [message #715115] Fri, 12 August 2011 12:09 Go to next message
Ralph P is currently offline Ralph PFriend
Messages: 30
Registered: September 2010
Location: Frankfurt, Germany
Member
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 13:35 Go to previous messageGo to next message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
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 12:38 Go to previous message
Ralph P is currently offline Ralph PFriend
Messages: 30
Registered: September 2010
Location: Frankfurt, Germany
Member
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: Thu Apr 18 11:11:03 GMT 2024

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

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

Back to the top