Package de.uka.ipd.sdq.featureinstance
Class FeatureConfigWidget
- java.lang.Object
-
- de.uka.ipd.sdq.featureinstance.FeatureConfigWidget
-
public class FeatureConfigWidget extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IContentOutlinePage
contentOutlinePage
protected TreeViewer
contentOutlineViewer
protected FeatureConfig
defaultConfig
protected boolean
dirtyFlag
protected AdapterFactoryEditingDomain
editingDomain
protected FeatureDiagram
featureDiagram
protected ICheckStateListener
listener
protected FeatureConfig
overridesConfig
protected PropertySheetPage
propertySheetPage
protected Resource
resource
protected Object
root
protected CheckboxTreeViewer
treeViewer
-
Constructor Summary
Constructors Constructor Description FeatureConfigWidget(Composite parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCheckStateListener(ICheckStateListener iCheckStateListener)
protected boolean
createEditor()
Creates the editor layout and contentprotected 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-objectboolean
createPages()
protected void
createResource()
Loads the resource-object through the editingDomainvoid
createViewer(FeatureDiagram root)
Creates a treeViewer of the given FeatureDiagramvoid
doSave(IProgressMonitor progressMonitor)
protected void
doSaveAs(URI uri)
String
getErrorMessage()
boolean
isDirty()
boolean
isSaveAsAllowed()
void
setSourceInput(String sourceInput)
void
setTargetInput(String targetInput)
void
validate()
-
-
-
Field Detail
-
editingDomain
protected AdapterFactoryEditingDomain editingDomain
-
treeViewer
protected CheckboxTreeViewer treeViewer
-
propertySheetPage
protected PropertySheetPage propertySheetPage
-
listener
protected ICheckStateListener listener
-
resource
protected Resource resource
-
featureDiagram
protected FeatureDiagram featureDiagram
-
root
protected Object root
-
contentOutlineViewer
protected TreeViewer contentOutlineViewer
-
contentOutlinePage
protected IContentOutlinePage contentOutlinePage
-
dirtyFlag
protected boolean dirtyFlag
-
defaultConfig
protected FeatureConfig defaultConfig
-
overridesConfig
protected FeatureConfig overridesConfig
-
-
Constructor Detail
-
FeatureConfigWidget
public FeatureConfigWidget(Composite parent)
-
-
Method Detail
-
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 ResourcefeatureDiagram
- A FeatureDiagram-object to which the new Configuration should referencedefaultRef
- 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()
-
-