public class UpdatePluginDataContainer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
UpdatePluginDataContainer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData)
Checks if it is valid (concerning structural correctness and state-based
correctness) to update (add / remove) the plug in data for the
Extension-Point given by
extensionPoint with the value given
by pluginData in the plug in data container given by
pluginContainer. |
static boolean |
isPossible(ChangeableInstance instance,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData,
CheckReport checkReport)
Checks if it is valid (concerning structural correctness and state-based
correctness) to update (add / remove) the plug in data for the
Extension-Point given by
extensionPoint with the value given
by pluginData in the plug in data container given by
pluginContainer. |
static boolean |
isPossible(Template template,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData)
Checks if it is valid (concerning structural correctness) to update (add /
remove) the plug in data for the Extension-Point given by
extensionPoint with the value given by
pluginData in the plug in data container given by
pluginContainer. |
static boolean |
isPossible(Template template,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData,
CheckReport checkReport)
Checks if it is valid (concerning structural correctness) to update (add /
remove) the plug in data for the Extension-Point given by
extensionPoint with the value given by
pluginData in the plug in data container given by
pluginContainer. |
static void |
performOperation(ChangeableInstance instance,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData)
Updates the plug in data for the extension point in the given plug in data
container.
|
static void |
performOperation(ChangeableInstance instance,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData,
UpdateManager updateManager)
Updates the plug in data for the extension point in the given plug in data
container.
|
static void |
performOperation(ChangeableTemplate template,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData)
Updates the plug in data for the extension point in the given plug in data
container.
|
static void |
performOperation(ChangeableTemplate template,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData,
UpdateManager updateManager)
Updates the plug in data for the extension point in the given plug in data
container.
|
protected static void |
performOperation(ChangePrimitives processGraph,
PluginDataContainer pluginContainer,
java.lang.String extensionPointID,
java.lang.String pluginDataID,
PluginData pluginData,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData)
extensionPoint with the value given by
pluginData in the plug in data container given by
pluginContainer. A value of null for
pluginData signals that the plug in with the given plug in
ID should be removed (remove). If the container already contains the given
plug in for the given extension point, the already existent pluginData is
replaced with the given pluginData (update). If it does not exist the
pluginData is added to the given extension point (add).template - the related templatepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension pointpublic static boolean isPossible(Template template, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData, CheckReport checkReport)
extensionPoint with the value given by
pluginData in the plug in data container given by
pluginContainer. A value of null for
pluginData signals that the plug in with the given plug in
ID should be removed (remove). If the container already contains the given
plug in for the given extension point, the already existent pluginData is
replaced with the given pluginData (update). If it does not exist the
pluginData is added to the given extension point (add). If it is not
possible the reasons are stored in the checkReport.template - the related templatepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension pointcheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData)
extensionPoint with the value given
by pluginData in the plug in data container given by
pluginContainer. A value of null for
pluginData signals that the plug in with the given plug in
ID should be removed (remove). If the container already contains the given
plug in for the given extension point, the already existent pluginData is
replaced with the given pluginData (update). If it does not exist the
pluginData is added to the given extension point (add).instance - the related instancepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension pointpublic static boolean isPossible(ChangeableInstance instance, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData, CheckReport checkReport)
extensionPoint with the value given
by pluginData in the plug in data container given by
pluginContainer. A value of null for
pluginData signals that the plug in with the given plug in
ID should be removed (remove). If the container already contains the given
plug in for the given extension point, the already existent pluginData is
replaced with the given pluginData (update). If it does not exist the
pluginData is added to the given extension point (add). If it is not
possible the reasons are stored in the checkReport.instance - the related instancepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension pointcheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static void performOperation(ChangeableTemplate template, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData)
pluginData signals that the
plug in with the given plug in ID should be removed (remove). If the
container already contains the given plug in for the given extension point,
the already existent pluginData is replaced with the given pluginData
(update). If it does not exist the pluginData is added to the given
extension point (add). Plug in data containers are e.g. Node, ...template - the related changeable templatepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension point.public static void performOperation(ChangeableTemplate template, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData, UpdateManager updateManager)
pluginData signals that the
plug in with the given plug in ID should be removed (remove). If the
container already contains the given plug in for the given extension point,
the already existent pluginData is replaced with the given pluginData
(update). If it does not exist the pluginData is added to the given
extension point (add). Plug in data containers are e.g. Node, ...template - the related changeable templatepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension point.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(ChangeableInstance instance, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData)
pluginData signals that the
plug in with the given plug in ID should be removed (remove). If the
container already contains the given plug in for the given extension point,
the already existent pluginData is replaced with the given pluginData
(update). If it does not exist the pluginData is added to the given
extension point (add). Plug in data containers are e.g. Node, ...instance - the related changeable instancepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension point.public static void performOperation(ChangeableInstance instance, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData, UpdateManager updateManager)
pluginData signals that the
plug in with the given plug in ID should be removed (remove). If the
container already contains the given plug in for the given extension point,
the already existent pluginData is replaced with the given pluginData
(update). If it does not exist the pluginData is added to the given
extension point (add). Plug in data containers are e.g. Node, ...instance - the related changeable instancepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data
should be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension point.updateManager - The UpdateManager where modifications are logged, may
be nullprotected static void performOperation(ChangePrimitives processGraph, PluginDataContainer pluginContainer, java.lang.String extensionPointID, java.lang.String pluginDataID, PluginData pluginData, UpdateManager updateManager)
processGraph - an instance of type ChangeableTemplate or
ChangeableInstancepluginContainer - the plug in container object where the method is
performed onextensionPointID - the extension point ID where the plug in data should
be updated (added/removed) namepluginDataID - the ID of the plug in datapluginData - the object which holds the pluginData or null to remove
from the extension point.updateManager - The UpdateManager where modifications are logged, may
be null