Package de.uka.ipd.sdq.dsexplore.helper
Class ExtensionHelper
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.helper.ExtensionHelper
-
public class ExtensionHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ExtensionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IExtension[]
loadAnalysisExtensions()
Loads all extensions which extends the "de.uka.ipd.sdq.dsexplore.analysis" extension point.static List<IExtension>
loadAnalysisExtensions(DSEConstantsContainer.QualityAttribute attribute)
Loads all extensions which extends the "de.uka.ipd.sdq.dsexplore.analysis" extension point and which specify the given quality attribute.static List<IExtension>
loadAnalysisExtensions(String dimensionId)
static Object
loadExecutableAttribute(IConfigurationElement element, String attributeName)
TODO: Method obsolete!? Given anIExtension
, this method returns an new instance of the executable extension identified by the specified attribute.static Collection<Object>
loadExtension(String id)
returns all found extensions for this id.static String
loadStringAttribute(IExtension extension, String configurationElement, String attributeName)
Given anIExtension
, this methods returns the content of the specified String attribute.
-
-
-
Method Detail
-
loadExtension
public static Collection<Object> loadExtension(String id) throws CoreException
returns all found extensions for this id.- Parameters:
id
-- Returns:
- Throws:
CoreException
-
loadAnalysisExtensions
public static IExtension[] loadAnalysisExtensions()
Loads all extensions which extends the "de.uka.ipd.sdq.dsexplore.analysis" extension point.- Returns:
- all analysis method extensions
-
loadStringAttribute
public static String loadStringAttribute(IExtension extension, String configurationElement, String attributeName)
Given anIExtension
, this methods returns the content of the specified String attribute.- Parameters:
extension
-configurationElement
-attributeName
-- Returns:
- the attribute content; null if the specified attribute does not exist.
-
loadExecutableAttribute
public static Object loadExecutableAttribute(IConfigurationElement element, String attributeName) throws CoreException
TODO: Method obsolete!? Given anIExtension
, this method returns an new instance of the executable extension identified by the specified attribute.- Parameters:
extension
-configurationElement
-attributeName
-- Returns:
- a class instance; null if the passed attribute does not exist.
- Throws:
CoreException
-
loadAnalysisExtensions
public static List<IExtension> loadAnalysisExtensions(DSEConstantsContainer.QualityAttribute attribute)
Loads all extensions which extends the "de.uka.ipd.sdq.dsexplore.analysis" extension point and which specify the given quality attribute.- Returns:
- all analysis method extensions
-
loadAnalysisExtensions
public static List<IExtension> loadAnalysisExtensions(String dimensionId)
-
-