Class ConfigurationHelper

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

public class ConfigurationHelper extends Object
helps handling the ILaunchConfiguration needed during a Design Exploration. Offers methods to generate new ILaunchConfiguration to run the simulation and also delete the generated ILaunchConfigurations again. The ConfigurationHelper is globally available as a singleton instance, you can also create a new ConfigurationHelper for local use.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deletes all ILaunchConfiguration this helper has generated before.
    void
    copyAndMarkAttribute(String id, org.eclipse.debug.core.ILaunchConfiguration original, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
     
    Get the global singleton instance of this helper.
    org.eclipse.debug.core.ILaunchConfiguration
    updateConfig(org.eclipse.debug.core.ILaunchConfiguration configuration)
    Creates a copy of the passed ILaunchConfiguration and updates the file names of the passed PCMInstance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurationHelper

      public ConfigurationHelper()
  • Method Details

    • updateConfig

      public org.eclipse.debug.core.ILaunchConfiguration updateConfig(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
      Creates a copy of the passed ILaunchConfiguration and updates the file names of the passed PCMInstance.
      Parameters:
      configuration - The base configuration to copy from
      instance - the PCMInstance to use the file names from.
      Returns:
      a copy of configuration in which the filenames of the instance are used.
      Throws:
      org.eclipse.core.runtime.CoreException - if the configuration cannot be copied or the new configuration cannot be saved to the run dialogs
    • copyAndMarkAttribute

      public void copyAndMarkAttribute(String id, org.eclipse.debug.core.ILaunchConfiguration original, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • cleanUp

      public void cleanUp()
      Deletes all ILaunchConfiguration this helper has generated before.
    • getInstance

      public static ConfigurationHelper getInstance()
      Get the global singleton instance of this helper.
      Returns: