summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-10-11 14:59:59 (EDT)
committer bkolb2007-10-11 14:59:59 (EDT)
commite40ad7cc4a11f1aa40ae41114a63c7282fb81f93 (patch)
tree499dd0ed8cd74c0c5805f1bfdcd1206143b6d6a2
parent9f76a1e56c393e182ec07d7b32611d59d2fded48 (diff)
downloadorg.eclipse.mwe-e40ad7cc4a11f1aa40ae41114a63c7282fb81f93.zip
org.eclipse.mwe-e40ad7cc4a11f1aa40ae41114a63c7282fb81f93.tar.gz
org.eclipse.mwe-e40ad7cc4a11f1aa40ae41114a63c7282fb81f93.tar.bz2
fixed some copy paste problems in the issues impl
-rw-r--r--plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/issues/IssuesImpl.java18
1 files changed, 3 insertions, 15 deletions
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 600d7ce..fd018c8 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
@@ -38,7 +38,7 @@ public class IssuesImpl implements Issues {
}
public void addError(final String msg, final Object element) {
- add(createError(msg, element));
+ addError(null, msg, element, null, Collections.emptyList());
}
public void addError(final String msg) {
@@ -58,7 +58,7 @@ public class IssuesImpl implements Issues {
}
public void addWarning(final String msg, final Object element) {
- add(createWarning(msg, element));
+ addWarning(null, msg, element, null, Collections.emptyList());
}
public void addWarning(final WorkflowComponent ctx, final String msg,
@@ -83,7 +83,7 @@ public class IssuesImpl implements Issues {
}
public void addInfo(final String msg, final Object element) {
- add(createInfo(msg, element));
+ addInfo(null, msg, element, null, Collections.emptyList());
}
public void addInfo(final WorkflowComponent ctx, final String msg,
@@ -140,10 +140,6 @@ public class IssuesImpl implements Issues {
return diagnostic;
}
- private static MWEDiagnostic createInfo(final String msg, final Object element) {
- return createWarning(null, msg, element, null, Collections.emptyList());
- }
-
private static MWEDiagnostic createWarning(final WorkflowComponent ctx,
final String msg, final Object element, final Throwable t, final List<Object> additionalData) {
MWEDiagnostic diagnostic = createDiagnostic(Diagnostic.WARNING, ctx,
@@ -152,10 +148,6 @@ public class IssuesImpl implements Issues {
return diagnostic;
}
- private static MWEDiagnostic createWarning(final String msg, final Object element) {
- return createWarning(null, msg, element, null, Collections.emptyList());
- }
-
private static MWEDiagnostic createError(final WorkflowComponent ctx, final String msg,
final Object element, final Throwable t, final List<Object> additionalData) {
MWEDiagnostic diagnostic = createDiagnostic(Diagnostic.ERROR, ctx, msg,
@@ -163,10 +155,6 @@ public class IssuesImpl implements Issues {
return diagnostic;
}
- private static MWEDiagnostic createError(final String msg, final Object element) {
- return createError(null, msg, element, null, Collections.emptyList());
- }
-
private Diagnostic[] filterIssues(final int severity) {
List<Diagnostic>result = new ArrayList<Diagnostic>();
for (Diagnostic diagnostic : issues) {