This commit is contained in:
Matthias
2017-07-24 16:48:50 +02:00
parent 7c274da003
commit 0eb05455f5
137 changed files with 337 additions and 220 deletions
+1
View File
@@ -0,0 +1 @@
/.metadata/
Executable → Regular
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <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.8"/>
<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="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
Executable → Regular
+1 -1
View File
@@ -22,7 +22,7 @@
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures> </natures>
</projectDescription> </projectDescription>
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
+3 -3
View File
@@ -1,15 +1,15 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: %pluginName Bundle-Name: Edit
Bundle-SymbolicName: WFRperfTool.edit;singleton:=true Bundle-SymbolicName: WFRperfTool.edit;singleton:=true
Bundle-Version: 1.0.0.qualifier Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: . Bundle-ClassPath: .
Bundle-Activator: at.ac.uibk.wfr.perftool.provider.WFRperfToolModelEditPlugin$Implementation Bundle-Activator: at.ac.uibk.wfr.perftool.provider.WFRperfToolModelEditPlugin$Implementation
Bundle-Vendor: %providerName Bundle-Vendor: %providerName
Bundle-Localization: plugin Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Export-Package: at.ac.uibk.wfr.perftool.provider;version="1.0.0.qualifier"
Export-Package: at.ac.uibk.wfr.perftool.provider
Require-Bundle: org.eclipse.core.runtime, Require-Bundle: org.eclipse.core.runtime,
WFRperfTool;visibility:=reexport, WFRperfTool;visibility:=reexport,
org.eclipse.emf.edit;visibility:=reexport org.eclipse.emf.edit;visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy Bundle-ActivationPolicy: lazy
+1
View File
@@ -0,0 +1 @@
/at/
+1
View File
@@ -82,3 +82,4 @@ _UI_ComponentStatusEvent_timestamp_feature = Timestamp
_UI_ComponentStatusEvent_workflow_feature = Workflow _UI_ComponentStatusEvent_workflow_feature = Workflow
_UI_Unknown_feature = Unspecified _UI_Unknown_feature = Unspecified
_UI_DeviceInstanceStatusEvent_deviceSubID_feature = Device Sub ID
@@ -63,6 +63,7 @@ public class DeviceInstanceStatusEventItemProvider
addOidPropertyDescriptor(object); addOidPropertyDescriptor(object);
addDeviceTypePropertyDescriptor(object); addDeviceTypePropertyDescriptor(object);
addDeviceIDPropertyDescriptor(object); addDeviceIDPropertyDescriptor(object);
addDeviceSubIDPropertyDescriptor(object);
addNewStatusPropertyDescriptor(object); addNewStatusPropertyDescriptor(object);
addOldStatusPropertyDescriptor(object); addOldStatusPropertyDescriptor(object);
addTimestampPropertyDescriptor(object); addTimestampPropertyDescriptor(object);
@@ -139,6 +140,28 @@ public class DeviceInstanceStatusEventItemProvider
null)); null));
} }
/**
* This adds a property descriptor for the Device Sub ID feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addDeviceSubIDPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DeviceInstanceStatusEvent_deviceSubID_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_DeviceInstanceStatusEvent_deviceSubID_feature", "_UI_DeviceInstanceStatusEvent_type"),
PerftoolPackage.Literals.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SUB_ID,
true,
false,
false,
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
null,
null));
}
/** /**
* This adds a property descriptor for the New Status feature. * This adds a property descriptor for the New Status feature.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
@@ -309,6 +332,7 @@ public class DeviceInstanceStatusEventItemProvider
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OID:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_TYPE:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_ID:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__DEVICE_SUB_ID:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__NEW_STATUS:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__OLD_STATUS:
case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP: case PerftoolPackage.DEVICE_INSTANCE_STATUS_EVENT__TIMESTAMP:
Executable → Regular
+2 -3
View File
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <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.8"/>
<classpathentry exported="true" kind="lib" path="libs/sqlite-jdbc-3.7.2.jar"/>
<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="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
Executable → Regular
+1 -1
View File
@@ -22,7 +22,7 @@
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures> </natures>
</projectDescription> </projectDescription>
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
+20 -26
View File
@@ -1,34 +1,28 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: %pluginName Bundle-Name: Editor
Bundle-SymbolicName: WFRperfTool.editor;singleton:=true Bundle-SymbolicName: WFRperfTool.editor;singleton:=true
Bundle-Version: 1.0.0.qualifier Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: ., Bundle-ClassPath: .,
libs/sqlite-jdbc-3.7.2.jar libs/sqlite-jdbc-3.7.2.jar
Bundle-Activator: at.ac.uibk.wfr.perftool.presentation.WFRperfToolModelEditorPlugin$Implementation Bundle-Activator: at.ac.uibk.wfr.perftool.presentation.WFRperfToolModelEditorPlugin$Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Export-Package: at.ac.uibk.wfr.perftool.deviceeventstimeline,
Export-Package: at.ac.uibk.wfr.perftool.presentation at.ac.uibk.wfr.perftool.perftooleditor,
Require-Bundle: org.eclipse.core.runtime, at.ac.uibk.wfr.perftool.presentation,
WFRperfTool.edit;visibility:=reexport, at.ac.uibk.wfr.perftool.view,
org.eclipse.emf.ecore.xmi;visibility:=reexport, at.ac.uibk.wfr.perftool.wfreventview
org.eclipse.emf.edit.ui;visibility:=reexport, Require-Bundle: WFRperfTool.edit;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="2.0.1", org.eclipse.emf.edit.ui;visibility:=reexport,
org.hibernate;bundle-version="4.1.1", org.eclipse.emf.teneo.hibernate,
org.eclipse.birt;bundle-version="4.2.2", org.hibernate,
org.eclipse.birt.chart.engine;bundle-version="4.2.2", org.eclipse.birt.chart.engine.extension,
org.eclipse.birt.chart.device.swt;bundle-version="4.2.2", org.eclipse.birt.chart.ui,
org.eclipse.birt.chart.device.extension;bundle-version="4.2.2", org.eclipse.birt.data,
org.eclipse.birt.chart.device.pdf;bundle-version="4.2.2", org.eclipse.e4.ui.services;bundle-version="1.3.0",
org.eclipse.birt.chart.device.svg;bundle-version="4.2.2", org.eclipse.equinox.simpleconfigurator.manipulator;bundle-version="2.0.300",
org.eclipse.birt.chart.engine.extension;bundle-version="4.2.2", org.eclipse.e4.core.services;bundle-version="2.1.0",
org.eclipse.birt.chart.reportitem;bundle-version="4.2.2", org.eclipse.e4.ui.css.swt.theme;bundle-version="0.11.0",
org.eclipse.birt.chart.reportitem.ui;bundle-version="4.2.2", org.eclipse.e4.core.commands;bundle-version="0.12.100"
org.eclipse.birt.chart.ui;bundle-version="4.2.2", Bundle-RequiredExecutionEnvironment: JavaSE-1.8
org.eclipse.birt.chart.ui.extension;bundle-version="4.2.2",
org.eclipse.birt.core.script.function;bundle-version="4.2.2",
org.eclipse.birt.core.ui;bundle-version="4.2.2",
org.eclipse.birt.data;bundle-version="4.2.2",
org.eclipse.birt.data.aggregation;bundle-version="4.2.2"
Bundle-ActivationPolicy: lazy Bundle-ActivationPolicy: lazy
+1
View File
@@ -0,0 +1 @@
/at/
@@ -1,29 +0,0 @@
## Debug Settings
#hibernate.show_sql=true
#hibernate.format_sql=true
#hibernate.use_sql_comments=true
hibernate.connection.driver_class=org.sqlite.JDBC
#hibernate.connection.url=jdbc\:sqlite\:default.sqlite
## Database Creation Mode (validate | update | create | create-drop)
hibernate.hbm2ddl.auto=validate
hibernate.dialect=perftoolutils.SQLiteDialect
teneo.naming.join_column_naming_strategy=simple
## Teneo Settings
teneo.mapping.disable_econtainer=true
teneo.mapping.always_version=false
teneo.mapping.inheritance=JOINED
teneo.naming.sql_fk_name_prefix=fk_
teneo.naming.set_foreign_key_name=true
hibernate.jdbc.batch_size=30
## Teneo Cache Settings
#hibernate.cache.use_second_level_cache=false
#hibernate.cache.use_query_cache=false
#teneo.mapping.default_cache_strategy=NONE
#hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory
@@ -135,7 +135,9 @@ public class BirtChartCanvas extends Canvas implements Listener, ICallBackNotifi
if ( !isDisposed() ) { if ( !isDisposed() ) {
final Generator gr = Generator.instance( ); final Generator gr = Generator.instance( );
try { try {
gr.refresh( state ); if (state != null) {
gr.refresh( state );
}
} catch ( Exception ex ) { } catch ( Exception ex ) {
ex.printStackTrace( ); ex.printStackTrace( );
} }
@@ -138,10 +138,11 @@ public class DeviceEventsTimelineEditorPart extends EditorPart implements ISelec
class DeviceInstanceEntry { class DeviceInstanceEntry {
public long deviceID; public long deviceID;
public long deviceSubID;
public Vector<DeviceInstanceStatusEvent> events = new Vector<DeviceInstanceStatusEvent>(); public Vector<DeviceInstanceStatusEvent> events = new Vector<DeviceInstanceStatusEvent>();
} }
int totalDeviceInstanceCount = 0; int totalDeviceInstanceCount = 0;
HashMap<String, HashMap<Long, DeviceInstanceEntry>> deviceMap = new HashMap<String, HashMap<Long, DeviceInstanceEntry>>(); HashMap<String, HashMap<Long, HashMap<Long, DeviceInstanceEntry>>> deviceMap = new HashMap<String, HashMap<Long, HashMap<Long, DeviceInstanceEntry>>>();
List<?> componentEvents = null; List<?> componentEvents = null;
if (selectedWorkflow != null) { if (selectedWorkflow != null) {
HbDataStore hds = hResource.getEMFDataStore(); HbDataStore hds = hResource.getEMFDataStore();
@@ -166,25 +167,26 @@ public class DeviceEventsTimelineEditorPart extends EditorPart implements ISelec
DeviceInstanceStatusEvent e = (DeviceInstanceStatusEvent) rs.get(t); DeviceInstanceStatusEvent e = (DeviceInstanceStatusEvent) rs.get(t);
String type = e.getDeviceType(); String type = e.getDeviceType();
long deviceID = e.getDeviceID(); long deviceID = e.getDeviceID();
HashMap<Long, DeviceInstanceEntry> dm = deviceMap.get(type); long deviceSubID = e.getDeviceSubID();
HashMap<Long, HashMap<Long, DeviceInstanceEntry>> dm = deviceMap.get(type);
if (dm == null) { if (dm == null) {
dm = new HashMap<Long, DeviceInstanceEntry>(); dm = new HashMap<Long, HashMap<Long, DeviceInstanceEntry>>();
DeviceInstanceEntry de = new DeviceInstanceEntry();
de.deviceID = e.getDeviceID();
de.events.add(e);
dm.put(de.deviceID, de);
deviceMap.put(type, dm); deviceMap.put(type, dm);
totalDeviceInstanceCount++;
} else {
DeviceInstanceEntry de = dm.get(e.getDeviceID());
if (de == null) {
de = new DeviceInstanceEntry();
de.deviceID = e.getDeviceID();
dm.put(de.deviceID, de);
totalDeviceInstanceCount++;
}
de.events.add(e);
} }
HashMap<Long, DeviceInstanceEntry> dsm = dm.get(deviceID);
if (dsm == null) {
dsm = new HashMap<Long, DeviceInstanceEntry>();
dm.put(deviceID, dsm);
}
DeviceInstanceEntry de = dsm.get(deviceSubID);
if (de == null) {
de = new DeviceInstanceEntry();
dsm.put(deviceSubID, de);
de.deviceID = deviceID;
de.deviceSubID = deviceSubID;
totalDeviceInstanceCount++;
}
de.events.add(e);
} }
query = session.createQuery("from ComponentStatusEvent " + query = session.createQuery("from ComponentStatusEvent " +
"where workflow = :wf and componentType = :type"); "where workflow = :wf and componentType = :type");
@@ -244,11 +246,15 @@ public class DeviceEventsTimelineEditorPart extends EditorPart implements ISelec
// Data Set // Data Set
String[] deviceStringArray = new String[totalDeviceInstanceCount + 1]; String[] deviceStringArray = new String[totalDeviceInstanceCount + 1];
int i = 0; int i = totalDeviceInstanceCount - 1;
for (String s : deviceMap.keySet()) { for (String s : deviceMap.keySet()) {
for (Long l : deviceMap.get(s).keySet()) { HashMap<Long, HashMap<Long, DeviceInstanceEntry>> dm = deviceMap.get(s);
deviceStringArray[i] = s + "[" + l + "]"; for (Long l : dm.keySet()) {
i++; HashMap<Long, DeviceInstanceEntry> dsm = dm.get(l);
for (Long sl : dsm.keySet()) {
deviceStringArray[i] = s + "[" + l + "][" + sl + "]";
i--;
}
} }
} }
deviceStringArray[totalDeviceInstanceCount] = "Enactment Thread"; deviceStringArray[totalDeviceInstanceCount] = "Enactment Thread";
@@ -263,73 +269,76 @@ public class DeviceEventsTimelineEditorPart extends EditorPart implements ISelec
sdX.getSeriesPalette().shift(0); sdX.getSeriesPalette().shift(0);
SeriesDefinition sdY1 = SeriesDefinitionImpl.create(); SeriesDefinition sdY1 = SeriesDefinitionImpl.create();
//sdY1.getSeriesPalette().shift(0); sdY1.getSeriesPalette().shift(0);
yAxisPrimary.getSeriesDefinitions().add(sdY1); yAxisPrimary.getSeriesDefinitions().add(sdY1);
i = 0; i = totalDeviceInstanceCount - 1;
for (String s : deviceMap.keySet()) { for (String s : deviceMap.keySet()) {
HashMap<Long, DeviceInstanceEntry> dm = deviceMap.get(s); HashMap<Long, HashMap<Long, DeviceInstanceEntry>> dm1 = deviceMap.get(s);
for (Long l : deviceMap.get(s).keySet()) { for (Long l : dm1.keySet()) {
DeviceInstanceEntry de = dm.get(l); HashMap<Long, DeviceInstanceEntry> dsm = dm1.get(l);
DeviceInstanceStatusEvent lastEvent = null; for (Long sl : dsm.keySet()) {
for (DeviceInstanceStatusEvent e : de.events) { DeviceInstanceEntry de = dsm.get(sl);
if (e.getNewStatus().equalsIgnoreCase("FinishedTask")) { DeviceInstanceStatusEvent lastEvent = null;
if (!lastEvent.getNewStatus().equalsIgnoreCase("ExecutingTask")) { for (DeviceInstanceStatusEvent e : de.events) {
throw new Error("ERROR"); if (e.getNewStatus().equalsIgnoreCase("FinishedTask")) {
} if (!lastEvent.getNewStatus().equalsIgnoreCase("ExecutingTask")) {
GanttEntry[] ges = new GanttEntry[totalDeviceInstanceCount + 1]; throw new Error("ERROR");
for (int t = 0; t < totalDeviceInstanceCount + 1; t++) {
if (t == i) {
long lastTimeStamp = lastEvent.getTimestamp();
long startms = (lastTimeStamp - wfstarttime)/1000000; // timestamps are in nanoseconds
long endms = (e.getTimestamp() - wfstarttime)/1000000;
ges[t] = new GanttEntry( new CDateTime(startms),
new CDateTime(endms),
"");
} else {
//ges[t] = new GanttEntry(new CDateTime(0), new CDateTime(0), "");
ges[t] = new GanttEntry((CDateTime)null, (CDateTime)null, "");
} }
} GanttEntry[] ges = new GanttEntry[totalDeviceInstanceCount + 1];
GanttDataSet gds = GanttDataSetImpl.create( ges ); for (int t = 0; t < totalDeviceInstanceCount + 1; t++) {
GanttSeries gs = (GanttSeries) GanttSeriesImpl.create( ); if (t == i) {
gs.setDataSet( gds ); long lastTimeStamp = lastEvent.getTimestamp();
gs.getLabel( ).setVisible( false ); long startms = (lastTimeStamp - wfstarttime)/1000000; // timestamps are in nanoseconds
sdY1.getSeries().add(gs); long endms = (e.getTimestamp() - wfstarttime)/1000000;
ActivityInstance ei = e.getExecutedInstance(); ges[t] = new GanttEntry( new CDateTime(startms),
if (ei != null) { new CDateTime(endms),
long startTime = -1; "");
long stopTime = -1; } else {
long readyTime = -1; //ges[t] = new GanttEntry(new CDateTime(0), new CDateTime(0), "");
for (ActivityInstanceStatusEvent se : ei.getStatusEvents()) { ges[t] = new GanttEntry((CDateTime)null, (CDateTime)null, "");
if (se.getNewStatus().equalsIgnoreCase("Running")) {
startTime = se.getTimestamp();
} else if (se.getNewStatus().equalsIgnoreCase("Finished")) {
stopTime = se.getTimestamp();
} else if (se.getNewStatus().equalsIgnoreCase("ReadyForExecution")) {
readyTime = se.getTimestamp();
} }
} }
String text = ei.getBaseActivity().getName() + " (InstanceID " + ei.getInstid() + ", ImplementationID " + e.getExecutedImplID(); GanttDataSet gds = GanttDataSetImpl.create( ges );
if (readyTime >= 0 && startTime >= readyTime) { GanttSeries gs = (GanttSeries) GanttSeriesImpl.create( );
text += ", Waittime " + ((double)(startTime - readyTime)/1000000000.0) + " s"; gs.setDataSet( gds );
} gs.getLabel( ).setVisible( false );
if (startTime >= 0 && stopTime >= readyTime) { sdY1.getSeries().add(gs);
text += ", Runtime " + ((double)(stopTime - startTime)/1000000000.0) + " s"; ActivityInstance ei = e.getExecutedInstance();
} if (ei != null) {
text += ")"; long startTime = -1;
gs.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOVER_LITERAL, long stopTime = -1;
ActionImpl.create( ActionType.CALL_BACK_LITERAL, long readyTime = -1;
CallBackValueImpl.create( text ) ) ) ); for (ActivityInstanceStatusEvent se : ei.getStatusEvents()) {
gs.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOUT_LITERAL, if (se.getNewStatus().equalsIgnoreCase("Running")) {
ActionImpl.create( ActionType.CALL_BACK_LITERAL, startTime = se.getTimestamp();
CallBackValueImpl.create( null ) ) ) ); } else if (se.getNewStatus().equalsIgnoreCase("Finished")) {
} stopTime = se.getTimestamp();
} else if (se.getNewStatus().equalsIgnoreCase("ReadyForExecution")) {
readyTime = se.getTimestamp();
}
}
String text = ei.getBaseActivity().getName() + " (InstanceID " + ei.getInstid() + ", ImplementationID " + e.getExecutedImplID();
if (readyTime >= 0 && startTime >= readyTime) {
text += ", Waittime " + ((double)(startTime - readyTime)/1000000000.0) + " s";
}
if (startTime >= 0 && stopTime >= readyTime) {
text += ", Runtime " + ((double)(stopTime - startTime)/1000000000.0) + " s";
}
text += ")";
gs.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOVER_LITERAL,
ActionImpl.create( ActionType.CALL_BACK_LITERAL,
CallBackValueImpl.create( text ) ) ) );
gs.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOUT_LITERAL,
ActionImpl.create( ActionType.CALL_BACK_LITERAL,
CallBackValueImpl.create( null ) ) ) );
}
}
lastEvent = e;
} }
lastEvent = e; i--;
} }
i++;
} }
} }
ComponentStatusEvent lastEvent = null; ComponentStatusEvent lastEvent = null;
Executable → Regular
+1 -2
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry exported="true" kind="lib" path="libs/sqlite-jdbc-3.7.2.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<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="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
Executable → Regular
+1
View File
@@ -22,6 +22,7 @@
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.sirius.nature.modelingproject</nature>
<nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
</natures> </natures>
@@ -1,3 +0,0 @@
eclipse.preferences.version=1
encoding//dbmodel/WFRperfToolModel.ecore=UTF-8
encoding//dbmodel/WFRperfToolModel.ecorediag=UTF-8
+3 -3
View File
@@ -1,7 +1,7 @@
eclipse.preferences.version=1 eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6 org.eclipse.jdt.core.compiler.source=1.8
+7 -5
View File
@@ -1,12 +1,17 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: %pluginName Bundle-Name: WFRperfTool
Bundle-SymbolicName: WFRperfTool;singleton:=true Bundle-SymbolicName: WFRperfTool;singleton:=true
Bundle-Version: 1.0.0.qualifier Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: ., Bundle-ClassPath: .,
libs/sqlite-jdbc-3.7.2.jar libs/sqlite-jdbc-3.7.2.jar
Bundle-Vendor: %providerName Bundle-Vendor: %providerName
Bundle-Localization: plugin Bundle-Localization: plugin
Export-Package: at.ac.uibk.wfr.perftool,
at.ac.uibk.wfr.perftool.impl,
at.ac.uibk.wfr.perftool.util,
at.ac.uibk.wfr.perftool.validation,
perftoolutils
Require-Bundle: org.eclipse.core.runtime, Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport, org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.teneo;bundle-version="2.0.1", org.eclipse.emf.teneo;bundle-version="2.0.1",
@@ -14,8 +19,5 @@ Require-Bundle: org.eclipse.core.runtime,
org.hibernate;bundle-version="4.1.1", org.hibernate;bundle-version="4.1.1",
org.apache.commons.logging;bundle-version="1.1.1", org.apache.commons.logging;bundle-version="1.1.1",
javax.persistence;bundle-version="2.0.1" javax.persistence;bundle-version="2.0.1"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: at.ac.uibk.wfr.perftool,
at.ac.uibk.wfr.perftool.impl,
at.ac.uibk.wfr.perftool.util
+1
View File
@@ -0,0 +1 @@
/at/

Some files were not shown because too many files have changed in this diff Show More