Class Contributions
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.contributions.Contributions
-
public abstract class Contributions extends java.lang.ObjectFor 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 Classes Modifier and Type Class Description static classContributions.CoreFunctionDenotes individual core functions.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<Contributions>REGISTEREDStores the registered UI contributions.
-
Constructor Summary
Constructors Constructor Description Contributions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static booleandetermineConfigurationPaths(org.eclipse.core.resources.IProject project, Configuration config)Determines the most appropriate configuration paths.protected abstract booleandetermineConfigurationPathsImpl(org.eclipse.core.resources.IProject project, Configuration config)Determines the configuration paths for the givenproject.static java.lang.StringgetDefaultCopyMechanismID()Returns the default copy mechanism ID.protected abstract java.lang.StringgetDefaultCopyMechanismIDImpl()Returns the default copy mechanism ID.static voidinitializePLP(org.eclipse.core.resources.IProject project, PLPInfo plp, java.util.List<PLPInfo> plps)Initializes a recently created PLP.protected abstract voidinitializePLPImpl(org.eclipse.core.resources.IProject project, PLPInfo plp, java.util.List<PLPInfo> plps)Initializes a recently created PLP.static 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 Detail
-
REGISTERED
private static final java.util.List<Contributions> REGISTERED
Stores the registered UI contributions.
-
-
Method Detail
-
register
public static void register(Contributions contribution)
Registers a particular contribution.- Parameters:
contribution- the new contribution
-
unregister
public static void unregister(Contributions contribution)
Unregisters a particular contribution.- Parameters:
contribution- the contribution to be unregisted
-
isEnabled
public static final boolean isEnabled(Contributions.CoreFunction element)
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
protected abstract boolean isEnabledImpl(Contributions.CoreFunction coreFunction)
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, 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, 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, PLPInfo plp, java.util.List<PLPInfo> plps) throws java.io.IOExceptionInitializes 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:
java.io.IOException- in case of any IO related problems
-
initializePLPImpl
protected abstract void initializePLPImpl(org.eclipse.core.resources.IProject project, PLPInfo plp, java.util.List<PLPInfo> plps) throws java.io.IOExceptionInitializes 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:
java.io.IOException- in case of any IO related problems
-
getDefaultCopyMechanismIDImpl
protected abstract java.lang.String getDefaultCopyMechanismIDImpl()
Returns the default copy mechanism ID.- Returns:
- the default copy mechanism ID, use EASy default if null
-
getDefaultCopyMechanismID
public static final java.lang.String getDefaultCopyMechanismID()
Returns the default copy mechanism ID.- Returns:
- the default copy mechanism ID, use EASy default if null
-
-