public class PluginReference extends Object implements IPluginReference
This class may be instantiated. This class is not intended to be sub-classed by clients.
IPluginReferenceP_MATCH, P_VERSIONP_IDCOMPATIBLE, EQUIVALENT, GREATER_OR_EQUAL, NONE, PERFECT, PREFIX, RULE_COMPATIBLE, RULE_EQUIVALENT, RULE_GREATER_OR_EQUAL, RULE_NAME_TABLE, RULE_PERFECT, RULE_PREFIX| Constructor and Description |
|---|
PluginReference(String id)
Constructs a plug-in reference to be used in the PDE template framework
|
PluginReference(String id,
String version,
int match)
Constructs a plug-in reference to be used in the PDE template framework
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getId()
Returns a unique id of this object.
|
int |
getMatch()
Returns the required match for the imported plug-in.
|
String |
getVersion()
Returns the required version of the plug-in.
|
int |
hashCode() |
void |
setId(String id)
Sets the id of this IIdentifiable to the provided value.
|
void |
setMatch(int match)
Sets the match type for the require plug-in.
|
void |
setVersion(String version)
Sets the desired version of the required plug-in.
|
public PluginReference(String id)
id - the id of the plug-inPluginReference(String id, String version, int match)public PluginReference(String id, String version, int match)
id - the id of the plug-inversion - the version of the plug-inmatch - the match rule for the plug-in IMatchRulespublic int getMatch()
IPluginReferencegetMatch in interface IPluginReferenceIMatchRulespublic String getVersion()
IPluginReferencegetVersion in interface IPluginReferencepublic void setMatch(int match)
throws CoreException
IPluginReferencesetMatch in interface IPluginReferencematch - the desired match typeCoreException - if the model is not editableIMatchRulespublic void setVersion(String version) throws CoreException
IPluginReferencesetVersion in interface IPluginReferenceversion - the required import plug-in versionCoreException - if the model is not editablepublic String getId()
IIdentifiablegetId in interface IIdentifiablepublic void setId(String id) throws CoreException
IIdentifiablesetId in interface IIdentifiableid - a new id of this objectCoreException
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.