summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-10-12 06:03:59 (EDT)
committerbkolb2007-10-12 06:03:59 (EDT)
commit6ae586da4d0521236f9d4d6ddd9e6edcfaf73393 (patch)
treea721cab752837ce88b87de9f9ae287e7e4c13c6e
parent4ec98d1a2b118c33b65c7f63af895a498cd74dcb (diff)
downloadorg.eclipse.mwe-6ae586da4d0521236f9d4d6ddd9e6edcfaf73393.zip
org.eclipse.mwe-6ae586da4d0521236f9d4d6ddd9e6edcfaf73393.tar.gz
org.eclipse.mwe-6ae586da4d0521236f9d4d6ddd9e6edcfaf73393.tar.bz2
added utility methods
-rw-r--r--plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/Issues.java27
-rw-r--r--plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java12
2 files changed, 39 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/Issues.java b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/Issues.java
index 1136921..51842ab 100644
--- a/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/Issues.java
+++ b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/Issues.java
@@ -57,6 +57,15 @@ public interface Issues {
* Message text.
*/
public void addInfo(WorkflowComponent ctx, String msg, Object obj, Throwable t, List<Object> additionalData);
+
+ /**
+ * Adds an info message
+ *
+ * @param compnent
+ * @param string
+ * @param obj
+ */
+ public void addInfo(WorkflowComponent compnent, String msg, Object obj);
/**
* Adds a info message.
@@ -99,6 +108,15 @@ public interface Issues {
* Message text.
*/
public void addWarning(WorkflowComponent ctx, String msg, Object obj, Throwable t, List<Object> additionalData);
+
+ /**
+ * Adds an warn message
+ *
+ * @param compnent
+ * @param string
+ * @param obj
+ */
+ public void addWarning(WorkflowComponent compnent, String msg, Object obj);
/**
* Adds a warn message.
@@ -141,6 +159,15 @@ public interface Issues {
* Message text.
*/
public void addError(WorkflowComponent ctx, String msg, Object obj, Throwable t, List<Object> additionalData);
+
+ /**
+ * Adds an error message
+ *
+ * @param compnent
+ * @param string
+ * @param obj
+ */
+ public void addError(WorkflowComponent compnent, String msg, Object obj);
/**
* Adds an error message.
diff --git a/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java
index fd018c8..e9a8de2 100644
--- a/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java
+++ b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java
@@ -44,6 +44,10 @@ public class IssuesImpl implements Issues {
public void addError(final String msg) {
addError(msg, (Object) null);
}
+
+ public void addError(WorkflowComponent compnent, String msg, Object obj) {
+ addError(compnent,msg, obj, null, Collections.EMPTY_LIST);
+ }
public boolean hasErrors() {
return getErrors().length!=0;
@@ -69,6 +73,10 @@ public class IssuesImpl implements Issues {
public void addWarning(final String msg) {
addWarning(msg, null);
}
+
+ public void addWarning(WorkflowComponent compnent, String msg, Object obj) {
+ addWarning(compnent,msg, obj, null, Collections.EMPTY_LIST);
+ }
public Diagnostic[] getWarnings() {
return filterIssues(Diagnostic.WARNING);
@@ -90,6 +98,10 @@ public class IssuesImpl implements Issues {
final Object element, final Throwable t, final List<Object> additionalData) {
add(createInfo(ctx, msg, element, t, additionalData));
}
+
+ public void addInfo(WorkflowComponent compnent, String msg, Object obj) {
+ addInfo(compnent,msg, obj, null, Collections.EMPTY_LIST);
+ }
public void addInfo(final String msg) {
addInfo(msg, null);