Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » how to filter out the appearance of context menu over RSE's remote system view
how to filter out the appearance of context menu over RSE's remote system view [message #19876] Mon, 31 March 2008 13:33 Go to next message
vrush Mising nameFriend
Messages: 51
Registered: July 2009
Location: Pune
Member
Hi All,

It is regarding the plugin i am developing by extending RSE eclipse plugin.
I am expected to have context menu in RSE's Remote Systems View,enabled on
few remote files.
The context menu that i have made is generalised i.e. it is appearing on
every remote file(which is not expected) since it was created by extending
the interface -

org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile


I have also gone through the help document for developers provided by RSE
where they have shown the way of filtering out the context menu over the
files only with .jar extension(with the help of regular expression).

But i need the context menu to appear over those remote files whose parent
remote directory satisfies few conditions.

I am stuck up at this point.
Please direct me with the possible solutions or any tutorials regarding
filter implementation and even suggest if there is any other way of fixing
it.
Thanks in advance.

Thanks,
Vrushali.
Re: how to filter out the appearance of context menu over RSE's remote system view [message #19938 is a reply to message #19876] Mon, 31 March 2008 15:00 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Vrushnali,

I think the recommended way for contributing menu items with complex
enablement conditions (like checking a parent folder) is to use the
org.eclipse.ui.menus extension point, with visibleWhen markup and
a Property Tester

http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_menus.html
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/core/expressions/IPropertyTe ster.html
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_core_expression s_propertyTesters.html

For getting started, you might find the EclipseCon 2007 presentation
helpful:
http://www.eclipsecon.org/2007/index.php?page=sub/&id=36 92
and lots of good examples come on the Eclipse Wiki:
http://wiki.eclipse.org/Menu_Contributions

You might want to ask in the org.eclipse.platform newsgroup for more
help using the ui.menus and propertyTester extensions.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




vrush wrote:
> Hi All,
>
> It is regarding the plugin i am developing by extending RSE eclipse plugin.
> I am expected to have context menu in RSE's Remote Systems View,enabled
> on few remote files.
> The context menu that i have made is generalised i.e. it is appearing on
> every remote file(which is not expected) since it was created by extending
> the interface -
> org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
>
> I have also gone through the help document for developers provided by
> RSE where they have shown the way of filtering out the context menu over
> the files only with .jar extension(with the help of regular expression).
>
> But i need the context menu to appear over those remote files whose
> parent remote directory satisfies few conditions.
>
> I am stuck up at this point.
> Please direct me with the possible solutions or any tutorials regarding
> filter implementation and even suggest if there is any other way of
> fixing it.
> Thanks in advance.
> Thanks,
> Vrushali.
>
>
Re: how to filter out the appearance of context menu over RSE's remote system view [message #20023 is a reply to message #19876] Mon, 31 March 2008 15:21 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
More info about Eclipse Platform Menus and commands:

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
is the starting place for 3.3, it walks through the
org.eclipse.ui.examples.contributions plugin. This plugin has been
updated with more examples in HEAD for 3.4 as per the eclipsecon talk,
http://www.eclipsecon.org/2008/?page=sub/&id=221

There's no "getting started", but use these wiki pages for references:
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping

There is an article in the works as well, although it's not likely to be
finished until after 3.4. Paul Webster will be collaborating/providing
information to them:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=223445

If none of these helps, ask Paul on eclipse.platform or
eclipse.platform.rcp newsgroups.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




vrush wrote:
> Hi All,
>
> It is regarding the plugin i am developing by extending RSE eclipse plugin.
> I am expected to have context menu in RSE's Remote Systems View,enabled
> on few remote files.
> The context menu that i have made is generalised i.e. it is appearing on
> every remote file(which is not expected) since it was created by extending
> the interface -
> org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
>
> I have also gone through the help document for developers provided by
> RSE where they have shown the way of filtering out the context menu over
> the files only with .jar extension(with the help of regular expression).
>
> But i need the context menu to appear over those remote files whose
> parent remote directory satisfies few conditions.
>
> I am stuck up at this point.
> Please direct me with the possible solutions or any tutorials regarding
> filter implementation and even suggest if there is any other way of
> fixing it.
> Thanks in advance.
> Thanks,
> Vrushali.
>
>
Re: how to filter out the appearance of context menu over RSE's remote system view [message #573222 is a reply to message #19876] Mon, 31 March 2008 15:00 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Vrushnali,

I think the recommended way for contributing menu items with complex
enablement conditions (like checking a parent folder) is to use the
org.eclipse.ui.menus extension point, with visibleWhen markup and
a Property Tester

http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_menus.html
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/core/expressions/IPropertyTe ster.html
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_core_expression s_propertyTesters.html

For getting started, you might find the EclipseCon 2007 presentation
helpful:
http://www.eclipsecon.org/2007/index.php?page=sub/&id=36 92
and lots of good examples come on the Eclipse Wiki:
http://wiki.eclipse.org/Menu_Contributions

You might want to ask in the org.eclipse.platform newsgroup for more
help using the ui.menus and propertyTester extensions.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




vrush wrote:
> Hi All,
>
> It is regarding the plugin i am developing by extending RSE eclipse plugin.
> I am expected to have context menu in RSE's Remote Systems View,enabled
> on few remote files.
> The context menu that i have made is generalised i.e. it is appearing on
> every remote file(which is not expected) since it was created by extending
> the interface -
> org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
>
> I have also gone through the help document for developers provided by
> RSE where they have shown the way of filtering out the context menu over
> the files only with .jar extension(with the help of regular expression).
>
> But i need the context menu to appear over those remote files whose
> parent remote directory satisfies few conditions.
>
> I am stuck up at this point.
> Please direct me with the possible solutions or any tutorials regarding
> filter implementation and even suggest if there is any other way of
> fixing it.
> Thanks in advance.
> Thanks,
> Vrushali.
>
>
Re: how to filter out the appearance of context menu over RSE's remote system view [message #573254 is a reply to message #19876] Mon, 31 March 2008 15:21 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
More info about Eclipse Platform Menus and commands:

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
is the starting place for 3.3, it walks through the
org.eclipse.ui.examples.contributions plugin. This plugin has been
updated with more examples in HEAD for 3.4 as per the eclipsecon talk,
http://www.eclipsecon.org/2008/?page=sub/&id=221

There's no "getting started", but use these wiki pages for references:
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping

There is an article in the works as well, although it's not likely to be
finished until after 3.4. Paul Webster will be collaborating/providing
information to them:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=223445

If none of these helps, ask Paul on eclipse.platform or
eclipse.platform.rcp newsgroups.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




vrush wrote:
> Hi All,
>
> It is regarding the plugin i am developing by extending RSE eclipse plugin.
> I am expected to have context menu in RSE's Remote Systems View,enabled
> on few remote files.
> The context menu that i have made is generalised i.e. it is appearing on
> every remote file(which is not expected) since it was created by extending
> the interface -
> org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
>
> I have also gone through the help document for developers provided by
> RSE where they have shown the way of filtering out the context menu over
> the files only with .jar extension(with the help of regular expression).
>
> But i need the context menu to appear over those remote files whose
> parent remote directory satisfies few conditions.
>
> I am stuck up at this point.
> Please direct me with the possible solutions or any tutorials regarding
> filter implementation and even suggest if there is any other way of
> fixing it.
> Thanks in advance.
> Thanks,
> Vrushali.
>
>
Previous Topic:How to run single command and capture output using RSE
Next Topic:Questions about remote execution
Goto Forum:
  


Current Time: Thu Apr 25 20:33:09 GMT 2024

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

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

Back to the top