public interface IFragment extends IPluginBase
Modifier and Type | Field and Description |
---|---|
static String |
P_PLUGIN_ID
A property that will be used to notify
that a plugin id has changed.
|
static String |
P_PLUGIN_VERSION
A property that will be used to notify
that a plugin version has changed.
|
static String |
P_RULE
A property that will be used to notify
that a plugin version match rule has changed.
|
P_IMPORT_ORDER, P_LIBRARY_ORDER, P_PROVIDER, P_SCHEMA_VERSION, P_VERSION
P_EXTENSION_ORDER
P_NAME
P_ID
Modifier and Type | Method and Description |
---|---|
String |
getPluginId()
Returns the id of the fragment host.
|
String |
getPluginVersion()
Returns the version of the fragment host.
|
int |
getRule()
Returns an optional version match rule as defined in
IMatchRule interface.
|
void |
setPluginId(String id)
Sets the id of the plug-in that will be the target of this fragment.
|
void |
setPluginVersion(String version)
Sets the version of the plug-in that will be the target of this fragment.'
|
void |
setRule(int rule)
Sets the optional version match rule as defined in IMatchRules.
|
add, add, getImports, getLibraries, getProviderName, getSchemaVersion, getVersion, remove, remove, setProviderName, setSchemaVersion, setVersion, swap, swap
add, add, getExtensionPoints, getExtensions, getIndexOf, remove, remove, swap
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
getAdapter
getId, setId
static final String P_PLUGIN_ID
static final String P_PLUGIN_VERSION
static final String P_RULE
String getPluginId()
String getPluginVersion()
int getRule()
void setPluginId(String id) throws CoreException
id
- the id of the referenced plug-in.CoreException
- attempts to modify a read-only fragment will result in an exceptionvoid setPluginVersion(String version) throws CoreException
version
- the version of the referenced version.CoreException
- attempts to modify a read-only fragment will result in an exceptionvoid setRule(int rule) throws CoreException
rule
- the match rule to be used when locating the referenced the plug-in.CoreException
- attempts to modify a read-only fragment will result in an exception
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.