From 3e2bf7f6dab3baa0b074ce1a613f1077613b7a13 Mon Sep 17 00:00:00 2001 From: Ansgar Radermacher Date: Tue, 8 Oct 2013 14:31:03 +0200 Subject: Minor modifications --- .../papyrus/qompass/modellibs/tracing/IConfiguratorTrace.java | 6 +++--- .../papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse') 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; -- cgit v1.2.3