Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Core Expression that checks whether selection is zero-length string?
Core Expression that checks whether selection is zero-length string? [message #1718307] Tue, 22 December 2015 10:26
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 111
Registered: June 2013
Senior Member
I have the use case that I want to show a menu item only when the active "selection" is not just the curser, i.e., when it encompasses one or more characters. Is this possible out of the box, i.e., without writing my own IPropertyTester (which I would rather avoid, so not to incur unnecessary overhead for loading my plugin even if it is not needed)?

Unfortunately even a zero-length ITextSelection has a <count> of 1. And I cannot figure out how to make use of <equals>, to test for the empty string.

Any hints are greatly appreciated.
Previous Topic:automatically change perspective when switching between different editors
Next Topic:extensions in Equinox project
Goto Forum:
  


Current Time: Tue Mar 19 10:00:28 GMT 2024

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

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

Back to the top