Class Contributions
java.lang.Object
net.ssehub.easy.producer.eclipse.contributions.Contributions
For contributions to the EASY core. (preliminary, to be aligned with self-bootstrapping
capabilities in future)
Please do not change the name or the location of this class as it is populated via OSGI-DS.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDenotes individual core functions. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<Contributions> Stores the registered UI contributions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandetermineConfigurationPaths(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.persistence.Configuration config) Determines the most appropriate configuration paths.protected abstract booleandetermineConfigurationPathsImpl(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.persistence.Configuration config) Determines the configuration paths for the givenproject.static final StringReturns the default copy mechanism ID.protected abstract StringReturns the default copy mechanism ID.static voidinitializePLP(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.PLPInfo plp, List<net.ssehub.easy.producer.core.mgmt.PLPInfo> plps) Initializes a recently created PLP.protected abstract voidinitializePLPImpl(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.PLPInfo plp, List<net.ssehub.easy.producer.core.mgmt.PLPInfo> plps) Initializes a recently created PLP.static final booleanisEnabled(Contributions.CoreFunction element) Returns whether the specified UI element is enabled (at least one contribution must request this).protected abstract booleanisEnabledImpl(Contributions.CoreFunction coreFunction) Returns whether this contribution requires that the given core function shall be enabled.static voidregister(Contributions contribution) Registers a particular contribution.static voidunregister(Contributions contribution) Unregisters a particular contribution.
-
Field Details
-
REGISTERED
Stores the registered UI contributions.
-
-
Constructor Details
-
Contributions
public Contributions()
-
-
Method Details
-
register
Registers a particular contribution.- Parameters:
contribution- the new contribution
-
unregister
Unregisters a particular contribution.- Parameters:
contribution- the contribution to be unregisted
-
isEnabled
Returns whether the specified UI element is enabled (at least one contribution must request this).- Parameters:
element- the UI element- Returns:
trueif it shall be enabled,falseelse
-
isEnabledImpl
Returns whether this contribution requires that the given core function shall be enabled.- Parameters:
coreFunction- the core function descriptor- Returns:
trueif it shall be enabled,falseelse
-
determineConfigurationPaths
public static boolean determineConfigurationPaths(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.persistence.Configuration config) Determines the most appropriate configuration paths.- Parameters:
project- the project to determine the configuration path forconfig- the configuration to be modified as a side effect- Returns:
trueif the configuration was changed,falseelse
-
determineConfigurationPathsImpl
protected abstract boolean determineConfigurationPathsImpl(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.persistence.Configuration config) Determines the configuration paths for the givenproject.- Parameters:
project- the project to considerconfig- the configuration to be modified as a side effect- Returns:
trueif the configuration was changed,falseelse
-
initializePLP
public static void initializePLP(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.PLPInfo plp, List<net.ssehub.easy.producer.core.mgmt.PLPInfo> plps) throws IOException Initializes a recently created PLP.- Parameters:
project- the physical project the PLP is located inplp- the PLP to be initializedplps- information about predecessor PLPs (to be modified as a side effect)- Throws:
IOException- in case of any IO related problems
-
initializePLPImpl
protected abstract void initializePLPImpl(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.PLPInfo plp, List<net.ssehub.easy.producer.core.mgmt.PLPInfo> plps) throws IOException Initializes a recently created PLP.- Parameters:
project- the physical project the PLP is located inplp- the PLP to be initializedplps- information about predecessor PLPs (to be modified as a side effect)- Throws:
IOException- in case of any IO related problems
-
getDefaultCopyMechanismIDImpl
Returns the default copy mechanism ID.- Returns:
- the default copy mechanism ID, use EASy default if null
-
getDefaultCopyMechanismID
Returns the default copy mechanism ID.- Returns:
- the default copy mechanism ID, use EASy default if null
-