Skip to main content



      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 05:26
Eclipse UserFriend
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: Sun Mar 23 21:18:44 EDT 2025

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

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

Back to the top