Class ExtensionHelper

java.lang.Object
de.uka.ipd.sdq.dsexplore.helper.ExtensionHelper

public class ExtensionHelper extends Object
  • Constructor Details

    • ExtensionHelper

      public ExtensionHelper()
  • Method Details

    • 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 an IExtension, 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 an IExtension, 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)