Package de.uka.ipd.sdq.featureinstance
Class FeatureConfigWidget
java.lang.Object
de.uka.ipd.sdq.featureinstance.FeatureConfigWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected IContentOutlinePage
protected TreeViewer
protected FeatureConfig
protected boolean
protected AdapterFactoryEditingDomain
protected FeatureDiagram
protected ICheckStateListener
protected FeatureConfig
protected PropertySheetPage
protected Resource
protected Object
protected CheckboxTreeViewer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCheckStateListener
(ICheckStateListener iCheckStateListener) protected boolean
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
protected void
Loads the resource-object through the editingDomainvoid
createViewer
(FeatureDiagram root) Creates a treeViewer of the given FeatureDiagramvoid
doSave
(IProgressMonitor progressMonitor) protected void
boolean
isDirty()
boolean
void
setSourceInput
(String sourceInput) void
setTargetInput
(String targetInput) void
validate()
-
Field Details
-
editingDomain
-
treeViewer
-
propertySheetPage
-
listener
-
resource
-
featureDiagram
-
root
-
contentOutlineViewer
-
contentOutlinePage
-
dirtyFlag
protected boolean dirtyFlag -
defaultConfig
-
overridesConfig
-
-
Constructor Details
-
FeatureConfigWidget
-
-
Method Details
-
setSourceInput
-
setTargetInput
-
validate
public void validate() -
createPages
public boolean createPages() -
createEditor
protected boolean createEditor()Creates the editor layout and content -
createViewer
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
-
doSaveAs
-
isSaveAsAllowed
public boolean isSaveAsAllowed() -
addCheckStateListener
-
getErrorMessage
-