Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-05-18 23:26:30 +0000
committerspingel2010-05-18 23:26:30 +0000
commit1831092a51ea7c753d7d764a2d715fcd5be0c99f (patch)
tree21eefc8970da246723fd94964d91d9e2f51769ae /org.eclipse.mylyn.sandbox.ui
parent7078ee6059c2587932b4e23ab5d726a8ee2de0a9 (diff)
downloadorg.eclipse.mylyn.incubator-1831092a51ea7c753d7d764a2d715fcd5be0c99f.tar.gz
org.eclipse.mylyn.incubator-1831092a51ea7c753d7d764a2d715fcd5be0c99f.tar.xz
org.eclipse.mylyn.incubator-1831092a51ea7c753d7d764a2d715fcd5be0c99f.zip
NEW - bug 267693: ClassCircularityError with Error Reports when crash on startup
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267693
Diffstat (limited to 'org.eclipse.mylyn.sandbox.ui')
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SandboxUiPlugin.java6
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SharedDataDirectoryManager.java71
2 files changed, 0 insertions, 77 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SandboxUiPlugin.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SandboxUiPlugin.java
index 619f582e..f0f75ae6 100644
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SandboxUiPlugin.java
+++ b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SandboxUiPlugin.java
@@ -35,8 +35,6 @@ public class SandboxUiPlugin extends AbstractUIPlugin {
private static SandboxUiPlugin plugin;
- private final SharedDataDirectoryManager sharedDataDirectoryManager = new SharedDataDirectoryManager();
-
public static final String OVERLAYS_INCOMING_TIGHT = "org.eclipse.mylyn.tasks.ui.overlays.incoming.tight";
private final ActiveSearchViewTracker activeSearchViewTracker = new ActiveSearchViewTracker();
@@ -122,8 +120,4 @@ public class SandboxUiPlugin extends AbstractUIPlugin {
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.mylyn.internal.sandbox", path);
}
- public SharedDataDirectoryManager getSharedDataDirectoryManager() {
- return sharedDataDirectoryManager;
- }
-
}
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SharedDataDirectoryManager.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SharedDataDirectoryManager.java
deleted file mode 100644
index 67493451..00000000
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/SharedDataDirectoryManager.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Tasktop Technologies and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.sandbox.ui;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.mylyn.commons.core.StatusHandler;
-
-/**
- * @author Wesley Coelho
- * @author Mik Kersten
- */
-public class SharedDataDirectoryManager {
-
- /**
- * True if the shared data directory has been temporarily set for reporting purposes
- */
- private boolean sharedDataDirectoryInUse = false;
-
- private String sharedDataDirectory = null;
-
- /**
- * Sets the path of a shared data directory to be temporarily used (for reporting). Call useMainDataDirectory() to
- * return to using the main data directory.
- */
- public void setSharedDataDirectory(String dirPath) {
- sharedDataDirectory = dirPath;
- }
-
- /**
- * Returns the shared data directory path if one has been set. If not, the empty string is returned. Note that the
- * directory may not currently be in use.
- */
- public String getSharedDataDirectory() {
- if (sharedDataDirectory != null) {
- return sharedDataDirectory;
- } else {
- return "";
- }
- }
-
- /**
- * Set to true to use the shared data directory set with setSharedDataDirectory(String) Set to false to return to
- * using the main data directory
- */
- public void setSharedDataDirectoryEnabled(boolean enable) {
- if (enable && sharedDataDirectory == null) {
- StatusHandler.fail(new Status(IStatus.ERROR, SandboxUiPlugin.ID_PLUGIN,
- "Could not enable shared data directory because no shared data directory was specifed.",
- new Exception("EnableDataDirectoryException")));
- return;
- }
- sharedDataDirectoryInUse = enable;
- }
-
- /**
- * True if a shared data directory rather than the main data directory is currently in use
- */
- public boolean isSharedDataDirectoryEnabled() {
- return sharedDataDirectoryInUse;
- }
-}

Back to the top