| org.eclipse.ui.texteditor.IReadOnlyDependent
All known Subclasses: org.eclipse.ui.texteditor.ShiftAction,
IReadOnlyDependent | public interface IReadOnlyDependent (Code) | | Extension interface for actions. Actions implementing this interface not
only manage an enable/disable state but also manage a "hypothetical"
enable state, depending on whether the target they work on is writable
or read-only.
since: 2.0 |
Method Summary | |
boolean | isEnabled(boolean isWritable) Returns whether the actions would be enabled if its target
would be enabled given the writable state described by isWritable . |
isEnabled | boolean isEnabled(boolean isWritable)(Code) | | Returns whether the actions would be enabled if its target
would be enabled given the writable state described by isWritable .
isEnabled() and isEnabled(boolean) holds the following
invariants:
isEnabled() == false, if isEnabled(true) == false || isEnabled(false) == false
isEnabled() == true, if isEnabled(true) == true || isEnabled(false) == true
Parameters: isWritable - the hypothetical enable state of the action |
|
|