Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » org.eclipse.core.expressions.definitions help..
org.eclipse.core.expressions.definitions help.. [message #640901] Tue, 23 November 2010 13:58 Go to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi,

i want few menu option enabled only when user has selected
a row in table and in that only that view is selected.

Bug is when ever user select a row of the table is selected differnt view these menu option are enabled....
<definition
id="oneElementSelectedInTable">
<with
variable="selection">
<count
value="1">
</count>
<and>
<with
variable="activePart">
<equals
value="com.vvvvvv.mgr.view">
</equals>
</with>
</and>
</with>
</definition>


i have defiend this exp but still its not working can any one tell whts wrong in that expression...

Thanks
Ashok
Re: org.eclipse.core.expressions.definitions help.. [message #640939 is a reply to message #640901] Tue, 23 November 2010 15:04 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

ashok_kumar_rr@yahoo.com wrote:
> Hi,
>
> i want few menu option enabled only when user has selected a row in
> table and in that only that view is selected.
>
> Bug is when ever user select a row of the table is selected differnt
> view these menu option are enabled....
> <definition
> id="oneElementSelectedInTable">
> <with
> variable="selection">
> <count
> value="1">
> </count>
> <and>
> <with
> variable="activePart">
> <equals
> value="com.vvvvvv.mgr.view">
> </equals>
> </with>
> </and>
> </with>
> </definition>
>
> i have defiend this exp but still its not working can any one tell whts
> wrong in that expression...

Don't nest <with/> elements:

<and>
<with variable="activePartId">
<equals value="com.vvvvvv.mgr.view"/>
</with>
<with variable="selection">
...
</with>
</and>


Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Is there a place that describe Workbench structure
Next Topic:Workspace problem in my Application
Goto Forum:
  


Current Time: Fri Apr 26 14:51:44 GMT 2024

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

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

Back to the top