Class DataEditor
java.lang.Object
org.palladiosimulator.measurementsui.datamanipulation.DataEditor
The DataEditor class provides the basic functions for working with Resources that already have an
editing domain, meaning they can only be modified through EMF Commands. These methods are further
implemented in
ResourceEditor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListOfResources
(EObject element, String attribute, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList) Command specifically for adding a list of MeasurementSpecifications to an existing Monitor.void
addResource
(EObject element, String attribute, Object newValue) Command for appending a resource to an element, like a list(measurementspecifications) using the AddCommandvoid
addResource
(EObject element, String attribute, Object newValue, EditingDomain domain) Command for appending a resource to an element, like a list(measurementspecifications) using the AddCommandvoid
deleteMultipleResources
(EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> element) Deletes a List of MeasurementSpecifications out of the domain.void
deleteResource
(EObject element) Delete with DeleteCommand.void
editResource
(EObject element, String attribute, Object newValue) Changes the EObject element's attribute to the new value using a SetCommand.
-
Constructor Details
-
DataEditor
public DataEditor()
-
-
Method Details
-
editResource
Changes the EObject element's attribute to the new value using a SetCommand. Old value is overwritten. Make sure your element is attached to a resource, otherwise this will return null- Parameters:
element
-attribute
-newValue
-
-
addResource
Command for appending a resource to an element, like a list(measurementspecifications) using the AddCommand- Parameters:
element
-attribute
-newValue
-
-
addResource
Command for appending a resource to an element, like a list(measurementspecifications) using the AddCommand- Parameters:
element
-attribute
-newValue
-domain2
-
-
addListOfResources
public void addListOfResources(EObject element, String attribute, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList) Command specifically for adding a list of MeasurementSpecifications to an existing Monitor.- Parameters:
element
-attribute
-mSpecList
-
-
deleteResource
Delete with DeleteCommand. Removes an element out of its domain.- Parameters:
element
- The Element to delete
-
deleteMultipleResources
public void deleteMultipleResources(EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> element) Deletes a List of MeasurementSpecifications out of the domain. SeeResourceEditorImpl
.- Parameters:
element
-
-