Class FeatureConfigWidget

java.lang.Object
de.uka.ipd.sdq.featureinstance.FeatureConfigWidget

public class FeatureConfigWidget extends Object
  • Field Details

  • Constructor Details

    • FeatureConfigWidget

      public FeatureConfigWidget(Composite parent)
  • Method Details

    • setSourceInput

      public void setSourceInput(String sourceInput)
    • setTargetInput

      public void setTargetInput(String targetInput)
    • validate

      public void validate()
    • createPages

      public boolean createPages()
    • createEditor

      protected boolean createEditor()
      Creates the editor layout and content
    • createViewer

      public void createViewer(FeatureDiagram root)
      Creates a treeViewer of the given FeatureDiagram
      Parameters:
      root - The FeatureDiagram-object which shall be displayed
    • createResource

      protected void createResource()
      Loads the resource-object through the editingDomain
    • createNewConfigResource

      protected void createNewConfigResource(URI newResourceURI, FeatureDiagram featureDiagram, FeatureConfig defaultRef)
      Creates a new Configuration-Resource with the given newResourceURI corresponding to the given featureDiagram Overrides the old (*.featuremodel) resource-object
      Parameters:
      newResourceURI - The URI for the new Resource
      featureDiagram - A FeatureDiagram-object to which the new Configuration should reference
      defaultRef - A reference to the defaultConfig object or null, if none exists
    • isDirty

      public boolean isDirty()
    • doSave

      public void doSave(IProgressMonitor progressMonitor)
    • doSaveAs

      protected void doSaveAs(URI uri)
    • isSaveAsAllowed

      public boolean isSaveAsAllowed()
    • addCheckStateListener

      public void addCheckStateListener(ICheckStateListener iCheckStateListener)
    • getErrorMessage

      public String getErrorMessage()