Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditorPartDescriptor.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditorPartDescriptor.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditorPartDescriptor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditorPartDescriptor.java
deleted file mode 100644
index 3619f8418..000000000
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditorPartDescriptor.java
+++ /dev/null
@@ -1,86 +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.tasks.ui.editors;
-
-import org.eclipse.core.runtime.Assert;
-
-/**
- * @author Steffen Pingel
- * @since 3.0
- */
-public abstract class TaskEditorPartDescriptor {
-
- private final String id;
-
- private String path;
-
-// public AbstractTaskEditorPart createPart() {
-// final AbstractTaskEditorPart[] result = new AbstractTaskEditorPart[1];
-// SafeRunnable.run(new ISafeRunnable() {
-//
-// public void handleException(Throwable exception) {
-// StatusHandler.log(new Status(IStatus.ERROR, TasksUiPlugin.ID_PLUGIN,
-// "Unable to create instance of class \"" + getClassName() + "\" for task editor part \""
-// + getId() + "\""));
-// }
-//
-// public void run() throws Exception {
-// Class<?> clazz = Class.forName(getClassName());
-// result[0] = (AbstractTaskEditorPart) clazz.newInstance();
-// }
-//
-// });
-// return result[0];
-// }
-
- public TaskEditorPartDescriptor(String id) {
- Assert.isNotNull(id);
- this.id = id;
- setPath(AbstractTaskEditorPage.PATH_COMMENTS);
- }
-
- public abstract AbstractTaskEditorPart createPart();
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- TaskEditorPartDescriptor other = (TaskEditorPartDescriptor) obj;
- return id.equals(other.id);
- }
-
- public String getId() {
- return id;
- }
-
- public String getPath() {
- return path;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + id.hashCode();
- return result;
- }
-
- public TaskEditorPartDescriptor setPath(String path) {
- this.path = path;
- return this;
- }
-
-}

Back to the top