Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraradermache2013-06-27 18:00:50 -0400
committeraradermache2013-06-27 18:00:50 -0400
commitba92569262621055cdc47b81614e7635b441a879 (patch)
tree962983e7038730d4db006ccb8bcbcff071313dbf /extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src
parentb18f7093144776a6820e891d2b2cb32f93006682 (diff)
downloadorg.eclipse.papyrus-ba92569262621055cdc47b81614e7635b441a879.tar.gz
org.eclipse.papyrus-ba92569262621055cdc47b81614e7635b441a879.tar.xz
org.eclipse.papyrus-ba92569262621055cdc47b81614e7635b441a879.zip
- Cleaner logging
- Fixed extended port issues
Diffstat (limited to 'extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src')
-rw-r--r--extraplugins/qompass-designer/tracing/org.eclipse.papyrus.qompass.modellibs.tracing/src/org/eclipse/papyrus/qompass/modellibs/tracing/QompassTraceMechanism.java9
1 files changed, 6 insertions, 3 deletions
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 9fd96bb8ad0..c299e89e3de 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
@@ -5,6 +5,7 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Status;
import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
@@ -21,6 +22,7 @@ import org.eclipse.papyrus.infra.services.tracepoints.MarkerUtils;
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.qompass.designer.core.Utils;
import org.eclipse.uml2.uml.Class;
@@ -143,7 +145,7 @@ public class QompassTraceMechanism implements ITraceMechanism {
return Utils.getAllRules((Package)contents.get(0));
}
} catch (ServiceException e) {
- System.err.println(e);
+ Log.log(Status.ERROR, Log.TRAFO_CONTAINER, e.getMessage());
}
return new BasicEList<ContainerRule>();
} else {
@@ -153,7 +155,8 @@ public class QompassTraceMechanism implements ITraceMechanism {
}
public boolean configureTraceMechanisms() {
- String config = "";
+ String config = ""; //$NON-NLS-1$
+ // TODO: config is never evaluated
try {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
@@ -172,8 +175,8 @@ public class QompassTraceMechanism implements ITraceMechanism {
}
}
} catch (CoreException e) {
+ Log.log(Status.ERROR, Log.TRAFO_CONTAINER, e.getMessage());
}
- System.err.println(config);
return true;
}

Back to the top