|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.SelectionEnabler
public final class SelectionEnabler
Determines the enablement status given a selection. This calculation is done
based on the definition of the 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.
| Field Summary | |
|---|---|
static int |
ANY_NUMBER
|
static int |
MULTIPLE
|
static int |
NONE
|
static int |
NONE_OR_ONE
|
static int |
ONE_OR_MORE
|
static int |
UNKNOWN
|
| Constructor Summary | |
|---|---|
SelectionEnabler(IConfigurationElement configElement)
Create a new instance of the receiver. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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(java.lang.String name,
java.lang.String filter)
Verifies that the given name matches the given wildcard filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public SelectionEnabler(IConfigurationElement configElement)
configElement - | Method Detail |
|---|
public static boolean verifyNameMatch(java.lang.String name,
java.lang.String filter)
name - filter -
true if there is a matchpublic final boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic boolean isEnabledForSelection(ISelection selection)
selection -
true if the given selection matches the conditions
specified in IConfirgurationElement.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.