public final class SelectionEnabler extends Object
enablesFor
attribute,
enablement
element, and the selection
element
found in the IConfigurationElement
provided.
This class can be instantiated by clients. It is not intended to be extended.
Modifier and Type | Field and Description |
---|---|
static int |
ANY_NUMBER |
static int |
MULTIPLE |
static int |
NONE |
static int |
NONE_OR_ONE |
static int |
ONE_OR_MORE |
static int |
UNKNOWN |
Constructor and Description |
---|
SelectionEnabler(IConfigurationElement configElement)
Create a new instance of the receiver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode()
Computes the hash code for this object based on the id.
|
boolean |
isEnabledForSelection(ISelection selection)
Check if the receiver is enabled for the given selection.
|
static boolean |
verifyNameMatch(String name,
String filter)
Verifies that the given name matches the given wildcard filter.
|
public static final int ANY_NUMBER
public static final int MULTIPLE
public static final int NONE
public static final int NONE_OR_ONE
public static final int ONE_OR_MORE
public static final int UNKNOWN
public SelectionEnabler(IConfigurationElement configElement)
configElement
- public static boolean verifyNameMatch(String name, String filter)
name
- filter
- true
if there is a matchpublic final int hashCode()
public boolean isEnabledForSelection(ISelection selection)
selection
- true
if the given selection matches the conditions
specified in IConfirgurationElement
.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.