Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java4
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java16
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java10
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractAttachmentHandler.java6
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AttributeContainer.java16
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java6
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java8
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java8
8 files changed, 37 insertions, 37 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java
index 0041b4e69..181a7c73b 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java
@@ -22,8 +22,8 @@ import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.stream.StreamResult;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.monitor.core.util.XmlStringConverter;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.xml.sax.ContentHandler;
import org.xml.sax.DTDHandler;
@@ -61,7 +61,7 @@ public class SaxRepositoriesWriter {
new SAXSource(new RepositoriesWriter(), new TaskRepositoriesInputSource(repositories)),
new StreamResult(outputStream));
} catch (TransformerException e) {
- StatusManager.fail(e, "could not write repositories", false);
+ StatusHandler.fail(e, "could not write repositories", false);
throw new IOException(e.getMessage());
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
index b0340d103..3058d5ff0 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
@@ -18,7 +18,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Set;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.AbstractAttributeFactory;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.RepositoryTaskAttribute;
@@ -69,7 +69,7 @@ public class TaskDataManager {
if (state != null) {
state.setOldTaskData(data);
} else {
- StatusManager.log("Attempt to save old data when no new data exists.", this);
+ StatusHandler.log("Attempt to save old data when no new data exists.", this);
}
saveState(state);
}
@@ -133,7 +133,7 @@ public class TaskDataManager {
clone = (RepositoryTaskData) ObjectCloner.deepCopy(state.getNewTaskData());
updateAttributeFactory(clone);
} catch (Exception e) {
- StatusManager.fail(e, "Error constructing modifiable task", false);
+ StatusHandler.fail(e, "Error constructing modifiable task", false);
return null;
}
if (clone != null) {
@@ -179,7 +179,7 @@ public class TaskDataManager {
try {
storage.put(state);
} catch (Exception e) {
- StatusManager.fail(e, "Error saving edits", false);
+ StatusHandler.fail(e, "Error saving edits", false);
}
}
@@ -207,7 +207,7 @@ public class TaskDataManager {
try {
storage.put(state);
} catch (Exception e) {
- StatusManager.fail(e, "Discard edits failed.", false);
+ StatusHandler.fail(e, "Discard edits failed.", false);
}
}
@@ -281,7 +281,7 @@ public class TaskDataManager {
try {
storage.start();
} catch (Exception e) {
- StatusManager.fail(e, "Offline storage start failed", false);
+ StatusHandler.fail(e, "Offline storage start failed", false);
}
}
@@ -289,7 +289,7 @@ public class TaskDataManager {
try {
storage.stop();
} catch (Exception e) {
- StatusManager.fail(e, "Offline storage stop failed", false);
+ StatusHandler.fail(e, "Offline storage stop failed", false);
}
}
@@ -316,7 +316,7 @@ public class TaskDataManager {
}
} catch (Exception e) {
e.printStackTrace();
- StatusManager.fail(e, "Error saving offline data", false);
+ StatusHandler.fail(e, "Error saving offline data", false);
}
return state;
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java
index 9b734dabd..2d31c09ed 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java
@@ -22,7 +22,7 @@ import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.TaskRepositoryManager;
import org.xml.sax.InputSource;
@@ -63,13 +63,13 @@ public class TaskRepositoriesExternalizer {
outputStream.close();
} catch (IOException e) {
- StatusManager.fail(e, "Could not write: " + file.getAbsolutePath(), true);
+ StatusHandler.fail(e, "Could not write: " + file.getAbsolutePath(), true);
} finally {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
- StatusManager.fail(e, "Unable to terminate output stream to repositories file.", false);
+ StatusHandler.fail(e, "Unable to terminate output stream to repositories file.", false);
}
}
}
@@ -90,14 +90,14 @@ public class TaskRepositoriesExternalizer {
return contentHandler.getRepositories();
} catch (Throwable e) {
file.renameTo(new File(file.getAbsolutePath() + "-save"));
- StatusManager.log(e, "Error while reading context file");
+ StatusHandler.log(e, "Error while reading context file");
return null;
} finally {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e) {
- StatusManager.fail(e, "Failed to close repositories input stream.", false);
+ StatusHandler.fail(e, "Failed to close repositories input stream.", false);
}
}
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractAttachmentHandler.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractAttachmentHandler.java
index bc21ca0b6..16f637415 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractAttachmentHandler.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractAttachmentHandler.java
@@ -24,8 +24,8 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.mylyn.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.tasks.core.TaskDataManager;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.AbstractTask.RepositoryTaskSyncState;
/**
@@ -92,7 +92,7 @@ public abstract class AbstractAttachmentHandler {
try {
in.close();
} catch (IOException e) {
- StatusManager.fail(e, "Error closing attachment stream", false);
+ StatusHandler.fail(e, "Error closing attachment stream", false);
}
}
} finally {
@@ -193,7 +193,7 @@ public abstract class AbstractAttachmentHandler {
try {
out.close();
} catch (IOException e) {
- StatusManager.fail(e, "Could not close context file", false);
+ StatusHandler.fail(e, "Could not close context file", false);
}
}
} catch (FileNotFoundException e) {
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AttributeContainer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AttributeContainer.java
index c54a2c40b..63e0ca743 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AttributeContainer.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AttributeContainer.java
@@ -17,7 +17,7 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
/**
* Encapsulates attributes for task data.
@@ -51,12 +51,12 @@ public class AttributeContainer implements Serializable {
public void addAttribute(String key, RepositoryTaskAttribute attribute) {
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return;
}
String mapped = attributeFactory.mapCommonAttributeKey(key);
if(mapped == null) {
- StatusManager.log("Mylar Error: mapped value for "+key+" returned null.", this);
+ StatusHandler.log("Mylar Error: mapped value for "+key+" returned null.", this);
return;
} if (!attributes.containsKey(mapped)) {
attributeKeys.add(mapped);
@@ -66,7 +66,7 @@ public class AttributeContainer implements Serializable {
public RepositoryTaskAttribute getAttribute(String key) {
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return null;
}
String mapped = attributeFactory.mapCommonAttributeKey(key);
@@ -96,7 +96,7 @@ public class AttributeContainer implements Serializable {
public void addAttributeValue(String key, String value) {
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return;
}
RepositoryTaskAttribute attrib = getAttribute(key);
@@ -115,7 +115,7 @@ public class AttributeContainer implements Serializable {
*/
public void setAttributeValue(String key, String value) {
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return;
}
RepositoryTaskAttribute attrib = getAttribute(key);
@@ -128,7 +128,7 @@ public class AttributeContainer implements Serializable {
public String getAttributeValue(String key) {
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return "";
}
String returnValue = "";
@@ -142,7 +142,7 @@ public class AttributeContainer implements Serializable {
public List<String> getAttributeValues(String key) {
List<String> returnValue = new ArrayList<String>();
if (attributeFactory == null) {
- StatusManager.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
+ StatusHandler.log(ERROR_NO_ATTRIBUTE_FACTORY, this);
return returnValue;
}
RepositoryTaskAttribute attrib = getAttribute(key);
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
index f2dc540a4..4154c479e 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
@@ -22,12 +22,12 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.tasks.core.LocalTask;
import org.eclipse.mylyn.internal.tasks.core.RepositoryTaskHandleUtil;
import org.eclipse.mylyn.internal.tasks.core.TaskArchive;
import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
import org.eclipse.mylyn.internal.tasks.core.UnfiledCategory;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
/**
* Stores and manages task list elements and their containment hierarchy.
@@ -620,7 +620,7 @@ public class TaskList {
delta.add(new TaskContainerDelta(task, kind));
listener.containersChanged(delta);
} catch (Throwable t) {
- StatusManager.fail(t, "Notification failed for: " + listener, false);
+ StatusHandler.fail(t, "Notification failed for: " + listener, false);
}
}
}
@@ -638,7 +638,7 @@ public class TaskList {
try {
listener.containersChanged(delta);
} catch (Throwable t) {
- StatusManager.fail(t, "notification failed for: " + listener, false);
+ StatusHandler.fail(t, "notification failed for: " + listener, false);
}
}
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
index 362eb04be..b691fb869 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
@@ -22,8 +22,8 @@ import java.util.TimeZone;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.web.core.WebClientUtil;
/**
@@ -239,7 +239,7 @@ public class TaskRepository {
}
isCachedUserName = false;
} catch (CoreException e) {
- StatusManager.fail(e, "could not flush authorization credentials", true);
+ StatusHandler.fail(e, "could not flush authorization credentials", true);
}
}
}
@@ -259,7 +259,7 @@ public class TaskRepository {
headlessCreds.putAll(map);
}
} catch (CoreException e) {
- StatusManager.fail(e, "Could not set authorization credentials", true);
+ StatusHandler.fail(e, "Could not set authorization credentials", true);
}
}
}
@@ -273,7 +273,7 @@ public class TaskRepository {
} catch (MalformedURLException ex) {
return Platform.getAuthorizationInfo(DEFAULT_URL, getUrl(), AUTH_SCHEME);
} catch (Exception e) {
- StatusManager.fail(e, "Could not retrieve authentication credentials", false);
+ StatusHandler.fail(e, "Could not retrieve authentication credentials", false);
}
} else {
Map<String, String> headlessCreds = credentials.get(getUrl());
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java
index 848f7c9ba..a9c327948 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java
@@ -22,8 +22,8 @@ import java.util.Map;
import java.util.Set;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoriesExternalizer;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
/**
* Provides facilities for managing the lifecycle of and access to task repositories.
@@ -236,7 +236,7 @@ public class TaskRepositoryManager {
try {
listener.repositoriesRead();
} catch (Throwable t) {
- StatusManager.fail(t, "repository listener failed", false);
+ StatusHandler.fail(t, "repository listener failed", false);
}
}
return repositoryMap;
@@ -278,7 +278,7 @@ public class TaskRepositoryManager {
}
}
} catch (Throwable t) {
- StatusManager.fail(t, "could not load repositories", false);
+ StatusHandler.fail(t, "could not load repositories", false);
}
}
@@ -356,7 +356,7 @@ public class TaskRepositoryManager {
File repositoriesFile = new File(destinationPath);
externalizer.writeRepositoriesToXML(repositoriesToWrite, repositoriesFile);
} catch (Throwable t) {
- StatusManager.fail(t, "could not save repositories", false);
+ StatusHandler.fail(t, "could not save repositories", false);
return false;
}
return true;

Back to the top