public class OpenHandlerContribution extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<OpenHandlerContribution> |
PRIORITY_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static OpenHandlerContribution |
bestContributionFor(TGContentType contentType)
Returns the best contribution for the given content type (i.e.
|
static List<OpenHandlerContribution> |
contributionsFor(TGContentType contentType)
Return a list of open handler contributions for the given contentType.
|
TGContentType |
getContentType() |
String |
getDescription() |
String |
getEditor() |
IOpenHandler |
getHandler() |
String |
getLabel() |
String |
getPerspective() |
int |
getPriority() |
protected static OpenHandlerContribution |
of(IConfigurationElement openHandlerElement,
TGContentType contentType) |
public static final Comparator<OpenHandlerContribution> PRIORITY_COMPARATOR
public static List<OpenHandlerContribution> contributionsFor(TGContentType contentType)
contentType
- The content type for which a list of open handlers should be
returned.public static OpenHandlerContribution bestContributionFor(TGContentType contentType)
contentType
- protected static OpenHandlerContribution of(IConfigurationElement openHandlerElement, TGContentType contentType)
public TGContentType getContentType()
public String getPerspective()
public String getEditor()
public String getLabel()
public String getDescription()
public IOpenHandler getHandler()
public int getPriority()