Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-15 18:04:59 -0400
committermkersten2007-06-15 18:04:59 -0400
commit48b245f04e3ed60817b444f519a0bffee1dc5ad3 (patch)
tree4e2e88a2687698f85d1b357bd13679e121cfd956 /org.eclipse.mylyn.trac.ui
parentb3c452a26034ddb2ddd2a9ff61f3c02c6f826c93 (diff)
downloadorg.eclipse.mylyn.tasks-48b245f04e3ed60817b444f519a0bffee1dc5ad3.tar.gz
org.eclipse.mylyn.tasks-48b245f04e3ed60817b444f519a0bffee1dc5ad3.tar.xz
org.eclipse.mylyn.tasks-48b245f04e3ed60817b444f519a0bffee1dc5ad3.zip
NEW - bug 191780: [api] Refactor MylarStatusHandler and IStatusHandler
https://bugs.eclipse.org/bugs/show_bug.cgi?id=191780
Diffstat (limited to 'org.eclipse.mylyn.trac.ui')
-rw-r--r--org.eclipse.mylyn.trac.ui/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracUiPlugin.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryWizardPage.java4
7 files changed, 13 insertions, 13 deletions
diff --git a/org.eclipse.mylyn.trac.ui/META-INF/MANIFEST.MF b/org.eclipse.mylyn.trac.ui/META-INF/MANIFEST.MF
index 63e272452..007dca6c9 100644
--- a/org.eclipse.mylyn.trac.ui/META-INF/MANIFEST.MF
+++ b/org.eclipse.mylyn.trac.ui/META-INF/MANIFEST.MF
@@ -13,7 +13,7 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.mylyn.tasks.core,
org.eclipse.search,
org.eclipse.mylyn.trac.core,
- org.eclipse.mylyn,
+ org.eclipse.mylyn.monitor.core,
org.eclipse.ui.editors,
org.eclipse.jface.text,
org.eclipse.core.resources,
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
index 328280719..56623296c 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
@@ -18,7 +18,7 @@ import java.util.regex.Pattern;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
@@ -204,7 +204,7 @@ public class TracHyperlinkUtil {
url += "?new_path=" + URLEncoder.encode(new_path, "UTF-8");
url += "&old_path=" + URLEncoder.encode(old_path, "UTF-8");
} catch (UnsupportedEncodingException e) {
- MylarStatusHandler.fail(e, "Unexpected exception", false);
+ StatusManager.fail(e, "Unexpected exception", false);
continue;
}
if (new_rev != null) {
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
index 08a64bb91..249fa1c5d 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
@@ -11,7 +11,7 @@
package org.eclipse.mylyn.internal.trac.ui;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryQuery;
import org.eclipse.mylyn.internal.trac.core.TracTask;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryQuery;
@@ -109,7 +109,7 @@ public class TracTaskExternalizer extends DelegatingTaskExternalizer {
createQueryHitElement(hit, doc, node);
}
} catch (Exception e) {
- MylarStatusHandler.log(e, e.getMessage());
+ StatusManager.log(e, e.getMessage());
}
}
parent.appendChild(node);
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracUiPlugin.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracUiPlugin.java
index 02ff72a0e..cc31971c2 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracUiPlugin.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracUiPlugin.java
@@ -13,7 +13,7 @@ package org.eclipse.mylyn.internal.trac.ui;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -62,7 +62,7 @@ public class TracUiPlugin extends AbstractUIPlugin {
public static void handleTracException(IStatus status) {
if (status.getCode() == IStatus.ERROR) {
- MylarStatusHandler.log(status);
+ StatusManager.log(status);
ErrorDialog.openError(null, TITLE_MESSAGE_DIALOG, null, status);
} else if (status.getCode() == IStatus.INFO) {
ErrorDialog.openError(null, TITLE_MESSAGE_DIALOG, null, status);
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
index addac39b5..5e83c1c58 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
@@ -7,7 +7,7 @@
*******************************************************************************/
package org.eclipse.mylyn.internal.trac.ui.editor;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryConnector;
import org.eclipse.mylyn.internal.trac.core.TracTask;
@@ -71,7 +71,7 @@ public class TracTaskEditorFactory implements ITaskEditorFactory {
try {
return new RepositoryTaskEditorInput(repository, tracTask.getHandleIdentifier(), tracTask.getTaskUrl(), tracTask.getTaskId());
} catch (Exception e) {
- MylarStatusHandler.fail(e, "Could not create Trac editor input", true);
+ StatusManager.fail(e, "Could not create Trac editor input", true);
}
return null;
}
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java
index 9efac9f7c..3c5477eb5 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java
@@ -19,7 +19,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.internal.trac.core.TracException;
@@ -178,7 +178,7 @@ public class TracCustomQueryPage extends AbstractRepositoryQueryPage {
if (field != null) {
field.setFilter(filter);
} else {
- MylarStatusHandler.log("Ignoring invalid search filter: " + filter, this);
+ StatusManager.log("Ignoring invalid search filter: " + filter, this);
}
}
}
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryWizardPage.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryWizardPage.java
index 7d327795c..77c10c964 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryWizardPage.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryWizardPage.java
@@ -17,7 +17,7 @@ import java.util.List;
import java.util.Set;
import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.mylyn.core.MylarStatusHandler;
+import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryQuery;
import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
@@ -113,7 +113,7 @@ public class TracQueryWizardPage extends WizardPage {
if (field != null) {
showSearchField(field, filter);
} else {
- MylarStatusHandler.log("Ignoring invalid search filter: " + filter, this);
+ StatusManager.log("Ignoring invalid search filter: " + filter, this);
}
}
}

Back to the top