Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2013-10-08 12:31:03 +0000
committerAnsgar Radermacher2013-10-08 12:37:31 +0000
commit3e2bf7f6dab3baa0b074ce1a613f1077613b7a13 (patch)
tree643ffbbf8eb4f2c48c8a7efdac4225beb71e1da2 /extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse
parentebc0edcde9d81e8483366be8ef6a1127a01918ae (diff)
downloadorg.eclipse.papyrus-3e2bf7f6dab3baa0b074ce1a613f1077613b7a13.tar.gz
org.eclipse.papyrus-3e2bf7f6dab3baa0b074ce1a613f1077613b7a13.tar.xz
org.eclipse.papyrus-3e2bf7f6dab3baa0b074ce1a613f1077613b7a13.zip
Minor modifications
Diffstat (limited to 'extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse')
-rw-r--r--extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java6
-rw-r--r--extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java b/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java
index 9e33f4bda66..7c76623710f 100644
--- a/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java
+++ b/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java
@@ -9,9 +9,9 @@ import org.eclipse.uml2.uml.Property;
public class IConfiguratorTrace implements IInstanceConfigurator {
- static final String PROP_PORT_NAME = "portName";
+ static final String PROP_PORT_NAME = "portName"; //$NON-NLS-1$
- static final String PROP_INSTANCE_NAME = "instanceName";
+ static final String PROP_INSTANCE_NAME = "instanceName"; //$NON-NLS-1$
/**
* Configure the passed trace instance
@@ -22,7 +22,7 @@ public class IConfiguratorTrace implements IInstanceConfigurator {
// The tracing code needs informations about the component instance and port.
String instanceName = instance.getName();
- int index = instanceName.lastIndexOf(".");
+ int index = instanceName.lastIndexOf("."); //$NON-NLS-1$
if(index != -1) {
String lastSegment = instanceName.substring(index + 1);
if(lastSegment.startsWith(ContainerTrafo.interceptorName)) {
diff --git a/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java b/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java
index c299e89e3de..e9593ba3cd2 100644
--- a/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java
+++ b/extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java
@@ -23,7 +23,7 @@ import org.eclipse.papyrus.infra.services.tracepoints.TraceActions.TAOperation;
import org.eclipse.papyrus.infra.services.tracepoints.TracepointConstants;
import org.eclipse.papyrus.qompass.designer.core.Description;
import org.eclipse.papyrus.qompass.designer.core.Log;
-import org.eclipse.papyrus.qompass.designer.core.StUtils;
+import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil;
import org.eclipse.papyrus.qompass.designer.core.Utils;
import org.eclipse.uml2.uml.Class;
import org.eclipse.uml2.uml.Element;
@@ -88,7 +88,7 @@ public class QompassTraceMechanism implements ITraceMechanism {
if(traceOption == TAOperation.OnlyCall.ordinal()) {
// yes => what do we then (i.e. how is mapping done??)
}
- RuleApplication ruleApplication = StUtils.applyApp(clazzContext, RuleApplication.class);
+ RuleApplication ruleApplication = StereotypeUtil.applyApp(clazzContext, RuleApplication.class);
if((ruleApplication != null) && !ruleApplication.getContainerRule().contains(containerRule)) {
ruleApplication.getContainerRule().add(containerRule);
return true;

Back to the top