Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Track not active selection with Command Core Expressions
Track not active selection with Command Core Expressions [message #336688] Sat, 27 June 2009 19:38 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hy.

I use the declarative Command Core Expressions to enable/disable something.
With iterate/count/selection I could track an active selection, but as soon as the user clicks on
another view my item gets disabled again. Is there a way to only have my item disabled when the
selection is deselected (and not when just activating another view)?

Regards,
Kai
Re: Track not active selection with Command Core Expressions [message #336722 is a reply to message #336688] Mon, 29 June 2009 14:49 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Depends on what is in your plugin.xml clause, could you show us your
snippet with the core expression?

PW

--
Paul Webster
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
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Track not active selection with Command Core Expressions [message #336764 is a reply to message #336722] Wed, 01 July 2009 15:06 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Paul Webster wrote:
> Depends on what is in your plugin.xml clause, could you show us your
> snippet with the core expression?

Hi Paul.

I don't think it's a problem with the expression, but more with the variable "selection".
It only contains the active selection of the active view.
What I am looking for is a variable that contains all selections of all views (independent from if
that view is active or not). Is there such a variable?
As a workaround I just defined my own variable.
Re: Track not active selection with Command Core Expressions [message #336788 is a reply to message #336764] Thu, 02 July 2009 16:32 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Kai Schlamp wrote:
> It only contains the active selection of the active view.
> What I am looking for is a variable that contains all selections of all
> views (independent from if that view is active or not). Is there such a
> variable?

Right now there is no such variable. The current selection variable
tracks selection on a workbench window level, not on the view part level.

- Prakash

--
---
http://blog.eclipse-tips.com
Previous Topic:Problems in cheatsheet passing parameters to commands.
Next Topic:Why is the mac os x cocoa-x86_64 download hidden away?
Goto Forum:
  


Current Time: Fri Apr 19 08:44:45 GMT 2024

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

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

Back to the top