Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Short Cut Menu - Adding Custom App
Short Cut Menu - Adding Custom App [message #704511] Thu, 28 July 2011 18:07 Go to next message
James Teater is currently offline James TeaterFriend
Messages: 17
Registered: July 2011
Junior Member
Is it possible to have a custom app only show up in the short cut menu when a UGMASTER (obect type) is selected? Say I have a app called Hello World. I would like to have the app show up in the short cut menu when a part is selected.

Is this possible to do?

Thanks

(no subject) [message #707666 is a reply to message #704511] Mon, 01 August 2011 23:10 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Jateater,

What do you mean with the shortcut menu? Is it the right-click menu, the
context menu? And what do you mean with an app. Is it a command or an action?

If so, yes, this is possible. Check the command and handler documentation on
the internet and look for core expressions.

You can specify a command to be active if the class of an object is a certain
type. Or you can ask a propertytester for any other attribte.

Regards,

Wim Jongman

> Is it possible to have a custom app only show up in the short cut menu when
a UGMASTER (obect type) is selected? Say I have a app called Hello World. I
would like to have the app show up in the short cut menu when a part is
selected.
>
> Is this possible to do?
>
> Thanks
Re: (no subject) [message #711100 is a reply to message #707666] Fri, 05 August 2011 19:16 Go to previous messageGo to next message
James Teater is currently offline James TeaterFriend
Messages: 17
Registered: July 2011
Junior Member
Thanks for the response. Let me try and clear up the question a little better. Right now I have a custom command that shows up when I do a right mouse click. This works in any perspective. What I am wanting is for the command to only show up in the right mouse click when a dataset is selected. I have a dataset type named UGMASTER. So when a user right clicks on the UGMASTER dataset, I want my custom command to show up.

Here is the xml code that I am playing with

<visibleWhen>
<with
variable="activeMenuSelection">
<iterate>
<adapt
type="UGMASTER"> <= this is where I am at a lost
</adapt>
</iterate>
</with>

</visibleWhen>

I hope you can help because I am at a lost
(no subject) [message #714129 is a reply to message #711100] Tue, 09 August 2011 20:44 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi,

Is it a tree- or a table element that you are selecting? What do you mean
with a dataset? What view are you talking about?

Try this:

<activeWhen>
<iterate>
<instanceof value="?.?UGMASTER"/>
</iterate>
</activeWhen>

Does this help?

Regards,

Wim


> Thanks for the response. Let me try and clear up the question a little
better. Right now I have a custom command that shows up when I do a right
mouse click. This works in any perspective. What I am wanting is for the
command to only show up in the right mouse click when a dataset is selected.
I have a dataset type named UGMASTER. So when a user right clicks on the
UGMASTER dataset, I want my custom command to show up.
>
> Here is the xml code that I am playing with
>
> <visibleWhen>
> <with
> variable="activeMenuSelection">
> <iterate>
> <adapt
> type="UGMASTER"> <= this is where I am at a lost
> </adapt>
> </iterate>
> </with>
>
> </visibleWhen>
>
> I hope you can help because I am at a lost
Previous Topic:Detached views to be brought up independently
Next Topic:Target Platform Difference between Installation and Directory
Goto Forum:
  


Current Time: Fri Apr 19 05:21:34 GMT 2024

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

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

Back to the top