Initial Commit
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>WFRperfTool.edit</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,15 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: WFRperfTool.edit;singleton:=true
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-ClassPath: .
|
||||
Bundle-Activator: at.ac.uibk.wfr.perftool.provider.WFRperfToolModelEditPlugin$Implementation
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
Export-Package: at.ac.uibk.wfr.perftool.provider
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
WFRperfTool;visibility:=reexport,
|
||||
org.eclipse.emf.edit;visibility:=reexport
|
||||
Bundle-ActivationPolicy: lazy
|
||||
@@ -0,0 +1,10 @@
|
||||
#
|
||||
|
||||
bin.includes = .,\
|
||||
icons/,\
|
||||
META-INF/,\
|
||||
plugin.xml,\
|
||||
plugin.properties
|
||||
jars.compile.order = .
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 129 B |
@@ -0,0 +1,84 @@
|
||||
#
|
||||
|
||||
pluginName = WFRperfToolModel Edit Support
|
||||
providerName = www.example.org
|
||||
|
||||
_UI_CreateChild_text = {0}
|
||||
_UI_CreateChild_text2 = {1} {0}
|
||||
_UI_CreateChild_text3 = {1}
|
||||
_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
|
||||
_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
|
||||
_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
|
||||
|
||||
_UI_PropertyDescriptor_description = The {0} of the {1}
|
||||
|
||||
_UI_Workflow_type = Workflow
|
||||
_UI_Activity_type = Activity
|
||||
_UI_ActivityInstance_type = Activity Instance
|
||||
_UI_WorkflowStatusEvent_type = Workflow Status Event
|
||||
_UI_ActivityStatusEvent_type = Activity Status Event
|
||||
_UI_ActivityInstanceStatusEvent_type = Activity Instance Status Event
|
||||
_UI_DeviceInstanceStatusEvent_type = Device Instance Status Event
|
||||
_UI_ComponentStatusEvent_type = Component Status Event
|
||||
_UI_Unknown_type = Object
|
||||
|
||||
_UI_Unknown_datatype= Value
|
||||
|
||||
_UI_Workflow_oid_feature = Oid
|
||||
_UI_Workflow_wfid_feature = Wfid
|
||||
_UI_Workflow_uuid_feature = Uuid
|
||||
_UI_Workflow_name_feature = Name
|
||||
_UI_Workflow_toplevelActivity_feature = Toplevel Activity
|
||||
_UI_Workflow_statusEvents_feature = Status Events
|
||||
_UI_Workflow_deviceEvents_feature = Device Events
|
||||
_UI_Workflow_componentEvents_feature = Component Events
|
||||
_UI_Activity_oid_feature = Oid
|
||||
_UI_Activity_actid_feature = Actid
|
||||
_UI_Activity_name_feature = Name
|
||||
_UI_Activity_type_feature = Type
|
||||
_UI_Activity_branchID_feature = Branch ID
|
||||
_UI_Activity_parentWorkflow_feature = Parent Workflow
|
||||
_UI_Activity_instances_feature = Instances
|
||||
_UI_Activity_statusEvents_feature = Status Events
|
||||
_UI_Activity_parent_feature = Parent
|
||||
_UI_Activity_children_feature = Children
|
||||
_UI_ActivityInstance_oid_feature = Oid
|
||||
_UI_ActivityInstance_instid_feature = Instid
|
||||
_UI_ActivityInstance_iterationID_feature = Iteration ID
|
||||
_UI_ActivityInstance_baseActivity_feature = Base Activity
|
||||
_UI_ActivityInstance_parentWorkflow_feature = Parent Workflow
|
||||
_UI_ActivityInstance_parentInstance_feature = Parent Instance
|
||||
_UI_ActivityInstance_statusEvents_feature = Status Events
|
||||
_UI_WorkflowStatusEvent_oid_feature = Oid
|
||||
_UI_WorkflowStatusEvent_newStatus_feature = New Status
|
||||
_UI_WorkflowStatusEvent_oldStatus_feature = Old Status
|
||||
_UI_WorkflowStatusEvent_timestamp_feature = Timestamp
|
||||
_UI_WorkflowStatusEvent_parentWorkflow_feature = Parent Workflow
|
||||
_UI_ActivityStatusEvent_oid_feature = Oid
|
||||
_UI_ActivityStatusEvent_newStatus_feature = New Status
|
||||
_UI_ActivityStatusEvent_oldStatus_feature = Old Status
|
||||
_UI_ActivityStatusEvent_timestamp_feature = Timestamp
|
||||
_UI_ActivityStatusEvent_parentActivity_feature = Parent Activity
|
||||
_UI_ActivityInstanceStatusEvent_oid_feature = Oid
|
||||
_UI_ActivityInstanceStatusEvent_newStatus_feature = New Status
|
||||
_UI_ActivityInstanceStatusEvent_oldStatus_feature = Old Status
|
||||
_UI_ActivityInstanceStatusEvent_timestamp_feature = Timestamp
|
||||
_UI_ActivityInstanceStatusEvent_parentInstance_feature = Parent Instance
|
||||
_UI_DeviceInstanceStatusEvent_oid_feature = Oid
|
||||
_UI_DeviceInstanceStatusEvent_deviceType_feature = Device Type
|
||||
_UI_DeviceInstanceStatusEvent_deviceID_feature = Device ID
|
||||
_UI_DeviceInstanceStatusEvent_newStatus_feature = New Status
|
||||
_UI_DeviceInstanceStatusEvent_oldStatus_feature = Old Status
|
||||
_UI_DeviceInstanceStatusEvent_timestamp_feature = Timestamp
|
||||
_UI_DeviceInstanceStatusEvent_executedImplID_feature = Executed Impl ID
|
||||
_UI_DeviceInstanceStatusEvent_deviceSlotCount_feature = Device Slot Count
|
||||
_UI_DeviceInstanceStatusEvent_parentWorkflow_feature = Parent Workflow
|
||||
_UI_DeviceInstanceStatusEvent_executedInstance_feature = Executed Instance
|
||||
_UI_ComponentStatusEvent_oid_feature = Oid
|
||||
_UI_ComponentStatusEvent_componentType_feature = Component Type
|
||||
_UI_ComponentStatusEvent_newStatus_feature = New Status
|
||||
_UI_ComponentStatusEvent_oldStatus_feature = Old Status
|
||||
_UI_ComponentStatusEvent_timestamp_feature = Timestamp
|
||||
_UI_ComponentStatusEvent_workflow_feature = Workflow
|
||||
_UI_Unknown_feature = Unspecified
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse version="3.0"?>
|
||||
|
||||
<!--
|
||||
-->
|
||||
|
||||
<plugin>
|
||||
|
||||
<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
|
||||
<!-- @generated WFRperfToolModel -->
|
||||
<factory
|
||||
uri="http://at.ac.uibk.wfr.perftool/1.0"
|
||||
class="at.ac.uibk.wfr.perftool.provider.PerftoolItemProviderAdapterFactory"
|
||||
supportedTypes=
|
||||
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
|
||||
org.eclipse.emf.edit.provider.IStructuredItemContentProvider
|
||||
org.eclipse.emf.edit.provider.ITreeItemContentProvider
|
||||
org.eclipse.emf.edit.provider.IItemLabelProvider
|
||||
org.eclipse.emf.edit.provider.IItemPropertySource"/>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
@@ -0,0 +1,257 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.ActivityInstance;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolFactory;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.ActivityInstance} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class ActivityInstanceItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ActivityInstanceItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addInstidPropertyDescriptor(object);
|
||||
addIterationIDPropertyDescriptor(object);
|
||||
addParentWorkflowPropertyDescriptor(object);
|
||||
addParentInstancePropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstance_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstance_oid_feature", "_UI_ActivityInstance_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Instid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addInstidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstance_instid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstance_instid_feature", "_UI_ActivityInstance_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE__INSTID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Iteration ID feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addIterationIDPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstance_iterationID_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstance_iterationID_feature", "_UI_ActivityInstance_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE__ITERATION_ID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Parent Workflow feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addParentWorkflowPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstance_parentWorkflow_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstance_parentWorkflow_feature", "_UI_ActivityInstance_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE__PARENT_WORKFLOW,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
null,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Parent Instance feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addParentInstancePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstance_parentInstance_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstance_parentInstance_feature", "_UI_ActivityInstance_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE__PARENT_INSTANCE,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
null,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns ActivityInstance.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivityInstance"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
ActivityInstance activityInstance = (ActivityInstance)object;
|
||||
return getString("_UI_ActivityInstance_type") + " " + activityInstance.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(ActivityInstance.class)) {
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE__OID:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE__INSTID:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE__ITERATION_ID:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE__STATUS_EVENTS:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.ACTIVITY_INSTANCE__STATUS_EVENTS,
|
||||
PerftoolFactory.eINSTANCE.createActivityInstanceStatusEvent()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class ActivityInstanceStatusEventItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ActivityInstanceStatusEventItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addNewStatusPropertyDescriptor(object);
|
||||
addOldStatusPropertyDescriptor(object);
|
||||
addTimestampPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstanceStatusEvent_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstanceStatusEvent_oid_feature", "_UI_ActivityInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE_STATUS_EVENT__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the New Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNewStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstanceStatusEvent_newStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstanceStatusEvent_newStatus_feature", "_UI_ActivityInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Old Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOldStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstanceStatusEvent_oldStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstanceStatusEvent_oldStatus_feature", "_UI_ActivityInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Timestamp feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTimestampPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityInstanceStatusEvent_timestamp_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityInstanceStatusEvent_timestamp_feature", "_UI_ActivityInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns ActivityInstanceStatusEvent.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivityInstanceStatusEvent"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
ActivityInstanceStatusEvent activityInstanceStatusEvent = (ActivityInstanceStatusEvent)object;
|
||||
return getString("_UI_ActivityInstanceStatusEvent_type") + " " + activityInstanceStatusEvent.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(ActivityInstanceStatusEvent.class)) {
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OID:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__NEW_STATUS:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__OLD_STATUS:
|
||||
case PerftoolPackage.ACTIVITY_INSTANCE_STATUS_EVENT__TIMESTAMP:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,307 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.Activity;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolFactory;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.ecore.EStructuralFeature;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.Activity} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class ActivityItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ActivityItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addActidPropertyDescriptor(object);
|
||||
addNamePropertyDescriptor(object);
|
||||
addTypePropertyDescriptor(object);
|
||||
addBranchIDPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Activity_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Activity_oid_feature", "_UI_Activity_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Actid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addActidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Activity_actid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Activity_actid_feature", "_UI_Activity_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY__ACTID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Name feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNamePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Activity_name_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Activity_name_feature", "_UI_Activity_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY__NAME,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Type feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTypePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Activity_type_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Activity_type_feature", "_UI_Activity_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY__TYPE,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Branch ID feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addBranchIDPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Activity_branchID_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Activity_branchID_feature", "_UI_Activity_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY__BRANCH_ID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
|
||||
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
|
||||
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
|
||||
if (childrenFeatures == null) {
|
||||
super.getChildrenFeatures(object);
|
||||
childrenFeatures.add(PerftoolPackage.Literals.ACTIVITY__INSTANCES);
|
||||
childrenFeatures.add(PerftoolPackage.Literals.ACTIVITY__CHILDREN);
|
||||
}
|
||||
return childrenFeatures;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EStructuralFeature getChildFeature(Object object, Object child) {
|
||||
// Check the type of the specified child object and return the proper feature to use for
|
||||
// adding (see {@link AddCommand}) it as a child.
|
||||
|
||||
return super.getChildFeature(object, child);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns Activity.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/Activity"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
String label = ((Activity)object).getName();
|
||||
return label == null || label.length() == 0 ?
|
||||
getString("_UI_Activity_type") :
|
||||
getString("_UI_Activity_type") + " " + label;
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(Activity.class)) {
|
||||
case PerftoolPackage.ACTIVITY__OID:
|
||||
case PerftoolPackage.ACTIVITY__ACTID:
|
||||
case PerftoolPackage.ACTIVITY__NAME:
|
||||
case PerftoolPackage.ACTIVITY__TYPE:
|
||||
case PerftoolPackage.ACTIVITY__BRANCH_ID:
|
||||
case PerftoolPackage.ACTIVITY__STATUS_EVENTS:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
case PerftoolPackage.ACTIVITY__INSTANCES:
|
||||
case PerftoolPackage.ACTIVITY__CHILDREN:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.ACTIVITY__INSTANCES,
|
||||
PerftoolFactory.eINSTANCE.createActivityInstance()));
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.ACTIVITY__STATUS_EVENTS,
|
||||
PerftoolFactory.eINSTANCE.createActivityStatusEvent()));
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.ACTIVITY__CHILDREN,
|
||||
PerftoolFactory.eINSTANCE.createActivity()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.ActivityStatusEvent;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.ActivityStatusEvent} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class ActivityStatusEventItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ActivityStatusEventItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addNewStatusPropertyDescriptor(object);
|
||||
addOldStatusPropertyDescriptor(object);
|
||||
addTimestampPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityStatusEvent_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityStatusEvent_oid_feature", "_UI_ActivityStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_STATUS_EVENT__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the New Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNewStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityStatusEvent_newStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityStatusEvent_newStatus_feature", "_UI_ActivityStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_STATUS_EVENT__NEW_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Old Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOldStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityStatusEvent_oldStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityStatusEvent_oldStatus_feature", "_UI_ActivityStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_STATUS_EVENT__OLD_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Timestamp feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTimestampPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ActivityStatusEvent_timestamp_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ActivityStatusEvent_timestamp_feature", "_UI_ActivityStatusEvent_type"),
|
||||
PerftoolPackage.Literals.ACTIVITY_STATUS_EVENT__TIMESTAMP,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns ActivityStatusEvent.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivityStatusEvent"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
ActivityStatusEvent activityStatusEvent = (ActivityStatusEvent)object;
|
||||
return getString("_UI_ActivityStatusEvent_type") + " " + activityStatusEvent.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(ActivityStatusEvent.class)) {
|
||||
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OID:
|
||||
case PerftoolPackage.ACTIVITY_STATUS_EVENT__NEW_STATUS:
|
||||
case PerftoolPackage.ACTIVITY_STATUS_EVENT__OLD_STATUS:
|
||||
case PerftoolPackage.ACTIVITY_STATUS_EVENT__TIMESTAMP:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.ComponentStatusEvent;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.ComponentStatusEvent} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class ComponentStatusEventItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ComponentStatusEventItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addComponentTypePropertyDescriptor(object);
|
||||
addNewStatusPropertyDescriptor(object);
|
||||
addOldStatusPropertyDescriptor(object);
|
||||
addTimestampPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ComponentStatusEvent_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ComponentStatusEvent_oid_feature", "_UI_ComponentStatusEvent_type"),
|
||||
PerftoolPackage.Literals.COMPONENT_STATUS_EVENT__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Component Type feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addComponentTypePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ComponentStatusEvent_componentType_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ComponentStatusEvent_componentType_feature", "_UI_ComponentStatusEvent_type"),
|
||||
PerftoolPackage.Literals.COMPONENT_STATUS_EVENT__COMPONENT_TYPE,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the New Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNewStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ComponentStatusEvent_newStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ComponentStatusEvent_newStatus_feature", "_UI_ComponentStatusEvent_type"),
|
||||
PerftoolPackage.Literals.COMPONENT_STATUS_EVENT__NEW_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Old Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOldStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ComponentStatusEvent_oldStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ComponentStatusEvent_oldStatus_feature", "_UI_ComponentStatusEvent_type"),
|
||||
PerftoolPackage.Literals.COMPONENT_STATUS_EVENT__OLD_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Timestamp feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTimestampPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_ComponentStatusEvent_timestamp_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_ComponentStatusEvent_timestamp_feature", "_UI_ComponentStatusEvent_type"),
|
||||
PerftoolPackage.Literals.COMPONENT_STATUS_EVENT__TIMESTAMP,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns ComponentStatusEvent.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/ComponentStatusEvent"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
ComponentStatusEvent componentStatusEvent = (ComponentStatusEvent)object;
|
||||
return getString("_UI_ComponentStatusEvent_type") + " " + componentStatusEvent.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(ComponentStatusEvent.class)) {
|
||||
case PerftoolPackage.COMPONENT_STATUS_EVENT__OID:
|
||||
case PerftoolPackage.COMPONENT_STATUS_EVENT__COMPONENT_TYPE:
|
||||
case PerftoolPackage.COMPONENT_STATUS_EVENT__NEW_STATUS:
|
||||
case PerftoolPackage.COMPONENT_STATUS_EVENT__OLD_STATUS:
|
||||
case PerftoolPackage.COMPONENT_STATUS_EVENT__TIMESTAMP:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,346 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class DeviceInstanceStatusEventItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public DeviceInstanceStatusEventItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addDeviceTypePropertyDescriptor(object);
|
||||
addDeviceIDPropertyDescriptor(object);
|
||||
addNewStatusPropertyDescriptor(object);
|
||||
addOldStatusPropertyDescriptor(object);
|
||||
addTimestampPropertyDescriptor(object);
|
||||
addExecutedImplIDPropertyDescriptor(object);
|
||||
addDeviceSlotCountPropertyDescriptor(object);
|
||||
addExecutedInstancePropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_oid_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Device Type feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addDeviceTypePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_deviceType_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_deviceType_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Device ID feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addDeviceIDPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_deviceID_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_deviceID_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the New Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNewStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_newStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_newStatus_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Old Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOldStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_oldStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_oldStatus_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Timestamp feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTimestampPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_timestamp_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_timestamp_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Executed Impl ID feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addExecutedImplIDPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_executedImplID_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_executedImplID_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Device Slot Count feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addDeviceSlotCountPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_deviceSlotCount_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_deviceSlotCount_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Executed Instance feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addExecutedInstancePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_DeviceInstanceStatusEvent_executedInstance_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_executedInstance_feature", "_UI_DeviceInstanceStatusEvent_type"),
|
||||
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_INSTANCE,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
null,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns DeviceInstanceStatusEvent.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/DeviceInstanceStatusEvent"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
DeviceInstanceStatusEvent deviceInstanceStatusEvent = (DeviceInstanceStatusEvent)object;
|
||||
return getString("_UI_DeviceInstanceStatusEvent_type") + " " + deviceInstanceStatusEvent.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(DeviceInstanceStatusEvent.class)) {
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__EXECUTED_IMPL_ID:
|
||||
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SLOT_COUNT:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,367 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
import at.ac.uibk.wfr.perftool.util.PerftoolAdapterFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ChangeNotifier;
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IChangeNotifier;
|
||||
import org.eclipse.emf.edit.provider.IDisposable;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.INotifyChangedListener;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
|
||||
/**
|
||||
* This is the factory that is used to provide the interfaces needed to support Viewers.
|
||||
* The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
|
||||
* The adapters also support Eclipse property sheets.
|
||||
* Note that most of the adapters are shared among multiple instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class PerftoolItemProviderAdapterFactory extends PerftoolAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
|
||||
/**
|
||||
* This keeps track of the root adapter factory that delegates to this adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ComposedAdapterFactory parentAdapterFactory;
|
||||
|
||||
/**
|
||||
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected IChangeNotifier changeNotifier = new ChangeNotifier();
|
||||
|
||||
/**
|
||||
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Collection<Object> supportedTypes = new ArrayList<Object>();
|
||||
|
||||
/**
|
||||
* This constructs an instance.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PerftoolItemProviderAdapterFactory() {
|
||||
supportedTypes.add(IEditingDomainItemProvider.class);
|
||||
supportedTypes.add(IStructuredItemContentProvider.class);
|
||||
supportedTypes.add(ITreeItemContentProvider.class);
|
||||
supportedTypes.add(IItemLabelProvider.class);
|
||||
supportedTypes.add(IItemPropertySource.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.Workflow} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WorkflowItemProvider workflowItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.Workflow}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createWorkflowAdapter() {
|
||||
if (workflowItemProvider == null) {
|
||||
workflowItemProvider = new WorkflowItemProvider(this);
|
||||
}
|
||||
|
||||
return workflowItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.Activity} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ActivityItemProvider activityItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.Activity}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createActivityAdapter() {
|
||||
if (activityItemProvider == null) {
|
||||
activityItemProvider = new ActivityItemProvider(this);
|
||||
}
|
||||
|
||||
return activityItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.ActivityInstance} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ActivityInstanceItemProvider activityInstanceItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.ActivityInstance}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createActivityInstanceAdapter() {
|
||||
if (activityInstanceItemProvider == null) {
|
||||
activityInstanceItemProvider = new ActivityInstanceItemProvider(this);
|
||||
}
|
||||
|
||||
return activityInstanceItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WorkflowStatusEventItemProvider workflowStatusEventItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createWorkflowStatusEventAdapter() {
|
||||
if (workflowStatusEventItemProvider == null) {
|
||||
workflowStatusEventItemProvider = new WorkflowStatusEventItemProvider(this);
|
||||
}
|
||||
|
||||
return workflowStatusEventItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.ActivityStatusEvent} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ActivityStatusEventItemProvider activityStatusEventItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.ActivityStatusEvent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createActivityStatusEventAdapter() {
|
||||
if (activityStatusEventItemProvider == null) {
|
||||
activityStatusEventItemProvider = new ActivityStatusEventItemProvider(this);
|
||||
}
|
||||
|
||||
return activityStatusEventItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ActivityInstanceStatusEventItemProvider activityInstanceStatusEventItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.ActivityInstanceStatusEvent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createActivityInstanceStatusEventAdapter() {
|
||||
if (activityInstanceStatusEventItemProvider == null) {
|
||||
activityInstanceStatusEventItemProvider = new ActivityInstanceStatusEventItemProvider(this);
|
||||
}
|
||||
|
||||
return activityInstanceStatusEventItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected DeviceInstanceStatusEventItemProvider deviceInstanceStatusEventItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.DeviceInstanceStatusEvent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createDeviceInstanceStatusEventAdapter() {
|
||||
if (deviceInstanceStatusEventItemProvider == null) {
|
||||
deviceInstanceStatusEventItemProvider = new DeviceInstanceStatusEventItemProvider(this);
|
||||
}
|
||||
|
||||
return deviceInstanceStatusEventItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This keeps track of the one adapter used for all {@link at.ac.uibk.wfr.perftool.ComponentStatusEvent} instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ComponentStatusEventItemProvider componentStatusEventItemProvider;
|
||||
|
||||
/**
|
||||
* This creates an adapter for a {@link at.ac.uibk.wfr.perftool.ComponentStatusEvent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter createComponentStatusEventAdapter() {
|
||||
if (componentStatusEventItemProvider == null) {
|
||||
componentStatusEventItemProvider = new ComponentStatusEventItemProvider(this);
|
||||
}
|
||||
|
||||
return componentStatusEventItemProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the root adapter factory that contains this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ComposeableAdapterFactory getRootAdapterFactory() {
|
||||
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
|
||||
}
|
||||
|
||||
/**
|
||||
* This sets the composed adapter factory that contains this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
|
||||
this.parentAdapterFactory = parentAdapterFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean isFactoryForType(Object type) {
|
||||
return supportedTypes.contains(type) || super.isFactoryForType(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation substitutes the factory itself as the key for the adapter.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Adapter adapt(Notifier notifier, Object type) {
|
||||
return super.adapt(notifier, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object adapt(Object object, Object type) {
|
||||
if (isFactoryForType(type)) {
|
||||
Object adapter = super.adapt(object, type);
|
||||
if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
|
||||
return adapter;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a listener.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void addListener(INotifyChangedListener notifyChangedListener) {
|
||||
changeNotifier.addListener(notifyChangedListener);
|
||||
}
|
||||
|
||||
/**
|
||||
* This removes a listener.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void removeListener(INotifyChangedListener notifyChangedListener) {
|
||||
changeNotifier.removeListener(notifyChangedListener);
|
||||
}
|
||||
|
||||
/**
|
||||
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void fireNotifyChanged(Notification notification) {
|
||||
changeNotifier.fireNotifyChanged(notification);
|
||||
|
||||
if (parentAdapterFactory != null) {
|
||||
parentAdapterFactory.fireNotifyChanged(notification);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This disposes all of the item providers created by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void dispose() {
|
||||
if (workflowItemProvider != null) workflowItemProvider.dispose();
|
||||
if (activityItemProvider != null) activityItemProvider.dispose();
|
||||
if (activityInstanceItemProvider != null) activityInstanceItemProvider.dispose();
|
||||
if (workflowStatusEventItemProvider != null) workflowStatusEventItemProvider.dispose();
|
||||
if (activityStatusEventItemProvider != null) activityStatusEventItemProvider.dispose();
|
||||
if (activityInstanceStatusEventItemProvider != null) activityInstanceStatusEventItemProvider.dispose();
|
||||
if (deviceInstanceStatusEventItemProvider != null) deviceInstanceStatusEventItemProvider.dispose();
|
||||
if (componentStatusEventItemProvider != null) componentStatusEventItemProvider.dispose();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
import org.eclipse.emf.common.EMFPlugin;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
/**
|
||||
* This is the central singleton for the WFRperfToolModel edit plugin.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public final class WFRperfToolModelEditPlugin extends EMFPlugin {
|
||||
/**
|
||||
* Keep track of the singleton.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final WFRperfToolModelEditPlugin INSTANCE = new WFRperfToolModelEditPlugin();
|
||||
|
||||
/**
|
||||
* Keep track of the singleton.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static Implementation plugin;
|
||||
|
||||
/**
|
||||
* Create the instance.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WFRperfToolModelEditPlugin() {
|
||||
super
|
||||
(new ResourceLocator [] {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the Eclipse plugin.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the singleton instance.
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getPluginResourceLocator() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the Eclipse plugin.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the singleton instance.
|
||||
* @generated
|
||||
*/
|
||||
public static Implementation getPlugin() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actual implementation of the Eclipse <b>Plugin</b>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static class Implementation extends EclipsePlugin {
|
||||
/**
|
||||
* Creates an instance.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Implementation() {
|
||||
super();
|
||||
|
||||
// Remember the static instance.
|
||||
//
|
||||
plugin = this;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.PerftoolFactory;
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
import at.ac.uibk.wfr.perftool.Workflow;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.ecore.EStructuralFeature;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.Workflow} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WorkflowItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider,
|
||||
IStructuredItemContentProvider,
|
||||
ITreeItemContentProvider,
|
||||
IItemLabelProvider,
|
||||
IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WorkflowItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addWfidPropertyDescriptor(object);
|
||||
addUuidPropertyDescriptor(object);
|
||||
addNamePropertyDescriptor(object);
|
||||
addToplevelActivityPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Workflow_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Workflow_oid_feature", "_UI_Workflow_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Wfid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addWfidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Workflow_wfid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Workflow_wfid_feature", "_UI_Workflow_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW__WFID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Uuid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addUuidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Workflow_uuid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Workflow_uuid_feature", "_UI_Workflow_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW__UUID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Name feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNamePropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Workflow_name_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Workflow_name_feature", "_UI_Workflow_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW__NAME,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Toplevel Activity feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addToplevelActivityPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_Workflow_toplevelActivity_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_Workflow_toplevelActivity_feature", "_UI_Workflow_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW__TOPLEVEL_ACTIVITY,
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
null,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
|
||||
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
|
||||
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
|
||||
if (childrenFeatures == null) {
|
||||
super.getChildrenFeatures(object);
|
||||
childrenFeatures.add(PerftoolPackage.Literals.WORKFLOW__TOPLEVEL_ACTIVITY);
|
||||
}
|
||||
return childrenFeatures;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EStructuralFeature getChildFeature(Object object, Object child) {
|
||||
// Check the type of the specified child object and return the proper feature to use for
|
||||
// adding (see {@link AddCommand}) it as a child.
|
||||
|
||||
return super.getChildFeature(object, child);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns Workflow.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/Workflow"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
String label = ((Workflow)object).getName();
|
||||
return label == null || label.length() == 0 ?
|
||||
getString("_UI_Workflow_type") :
|
||||
getString("_UI_Workflow_type") + " " + label;
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(Workflow.class)) {
|
||||
case PerftoolPackage.WORKFLOW__OID:
|
||||
case PerftoolPackage.WORKFLOW__WFID:
|
||||
case PerftoolPackage.WORKFLOW__UUID:
|
||||
case PerftoolPackage.WORKFLOW__NAME:
|
||||
case PerftoolPackage.WORKFLOW__STATUS_EVENTS:
|
||||
case PerftoolPackage.WORKFLOW__DEVICE_EVENTS:
|
||||
case PerftoolPackage.WORKFLOW__COMPONENT_EVENTS:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.WORKFLOW__STATUS_EVENTS,
|
||||
PerftoolFactory.eINSTANCE.createWorkflowStatusEvent()));
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.WORKFLOW__DEVICE_EVENTS,
|
||||
PerftoolFactory.eINSTANCE.createDeviceInstanceStatusEvent()));
|
||||
|
||||
newChildDescriptors.add
|
||||
(createChildParameter
|
||||
(PerftoolPackage.Literals.WORKFLOW__COMPONENT_EVENTS,
|
||||
PerftoolFactory.eINSTANCE.createComponentStatusEvent()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
/**
|
||||
*/
|
||||
package at.ac.uibk.wfr.perftool.provider;
|
||||
|
||||
|
||||
import at.ac.uibk.wfr.perftool.PerftoolPackage;
|
||||
import at.ac.uibk.wfr.perftool.WorkflowStatusEvent;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.notify.AdapterFactory;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.common.util.ResourceLocator;
|
||||
|
||||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
||||
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
||||
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
||||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
||||
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
|
||||
import org.eclipse.emf.edit.provider.ViewerNotification;
|
||||
|
||||
/**
|
||||
* This is the item provider adapter for a {@link at.ac.uibk.wfr.perftool.WorkflowStatusEvent} object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WorkflowStatusEventItemProvider
|
||||
extends ItemProviderAdapter
|
||||
implements
|
||||
IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
|
||||
/**
|
||||
* This constructs an instance from a factory and a notifier.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WorkflowStatusEventItemProvider(AdapterFactory adapterFactory) {
|
||||
super(adapterFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the property descriptors for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
|
||||
if (itemPropertyDescriptors == null) {
|
||||
super.getPropertyDescriptors(object);
|
||||
|
||||
addOidPropertyDescriptor(object);
|
||||
addNewStatusPropertyDescriptor(object);
|
||||
addOldStatusPropertyDescriptor(object);
|
||||
addTimestampPropertyDescriptor(object);
|
||||
}
|
||||
return itemPropertyDescriptors;
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Oid feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOidPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_WorkflowStatusEvent_oid_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_WorkflowStatusEvent_oid_feature", "_UI_WorkflowStatusEvent_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW_STATUS_EVENT__OID,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the New Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addNewStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_WorkflowStatusEvent_newStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_WorkflowStatusEvent_newStatus_feature", "_UI_WorkflowStatusEvent_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW_STATUS_EVENT__NEW_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Old Status feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addOldStatusPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_WorkflowStatusEvent_oldStatus_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_WorkflowStatusEvent_oldStatus_feature", "_UI_WorkflowStatusEvent_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW_STATUS_EVENT__OLD_STATUS,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds a property descriptor for the Timestamp feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected void addTimestampPropertyDescriptor(Object object) {
|
||||
itemPropertyDescriptors.add
|
||||
(createItemPropertyDescriptor
|
||||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
||||
getResourceLocator(),
|
||||
getString("_UI_WorkflowStatusEvent_timestamp_feature"),
|
||||
getString("_UI_PropertyDescriptor_description", "_UI_WorkflowStatusEvent_timestamp_feature", "_UI_WorkflowStatusEvent_type"),
|
||||
PerftoolPackage.Literals.WORKFLOW_STATUS_EVENT__TIMESTAMP,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns WorkflowStatusEvent.gif.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getImage(Object object) {
|
||||
return overlayImage(object, getResourceLocator().getImage("full/obj16/WorkflowStatusEvent"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the label text for the adapted class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object object) {
|
||||
WorkflowStatusEvent workflowStatusEvent = (WorkflowStatusEvent)object;
|
||||
return getString("_UI_WorkflowStatusEvent_type") + " " + workflowStatusEvent.getOid();
|
||||
}
|
||||
|
||||
/**
|
||||
* This handles model notifications by calling {@link #updateChildren} to update any cached
|
||||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void notifyChanged(Notification notification) {
|
||||
updateChildren(notification);
|
||||
|
||||
switch (notification.getFeatureID(WorkflowStatusEvent.class)) {
|
||||
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OID:
|
||||
case PerftoolPackage.WORKFLOW_STATUS_EVENT__NEW_STATUS:
|
||||
case PerftoolPackage.WORKFLOW_STATUS_EVENT__OLD_STATUS:
|
||||
case PerftoolPackage.WORKFLOW_STATUS_EVENT__TIMESTAMP:
|
||||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
||||
return;
|
||||
}
|
||||
super.notifyChanged(notification);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
|
||||
* that can be created under this object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
|
||||
super.collectNewChildDescriptors(newChildDescriptors, object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the resource locator for this item provider's resources.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ResourceLocator getResourceLocator() {
|
||||
return WFRperfToolModelEditPlugin.INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getColumnImage(Object object, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return getImage(object);
|
||||
} else {
|
||||
return super.getColumnText(object, columnIndex);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getColumnText(Object object, int columnIndex) {
|
||||
return getText(object);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||