Skip to main content



      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 15:38 Go to next message
Eclipse UserFriend
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 10:49 Go to previous messageGo to next message
Eclipse UserFriend
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 11:06 Go to previous messageGo to next message
Eclipse UserFriend
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 12:32 Go to previous message
Eclipse UserFriend
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: Sun Apr 27 00:05:24 EDT 2025

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

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

Back to the top