Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 21:45:19 -0400
committermkersten2007-06-22 21:45:19 -0400
commita4907cc0d72cdc9e6eb7c1e62234edd01214b072 (patch)
treed00f7d5cc76c67787a47ae1b9db301faa2cbd1d4 /org.eclipse.mylyn.trac.ui
parent8104b39adcbc0fa7cc24c841fa897b73f430d0a3 (diff)
downloadorg.eclipse.mylyn.tasks-a4907cc0d72cdc9e6eb7c1e62234edd01214b072.tar.gz
org.eclipse.mylyn.tasks-a4907cc0d72cdc9e6eb7c1e62234edd01214b072.tar.xz
org.eclipse.mylyn.tasks-a4907cc0d72cdc9e6eb7c1e62234edd01214b072.zip
NEW - bug 193842: [api] review Mylyn 2.0 APIs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193842
Diffstat (limited to 'org.eclipse.mylyn.trac.ui')
-rw-r--r--org.eclipse.mylyn.trac.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java (renamed from org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java)9
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskListFactory.java6
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracQueryWizard.java2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracTaskPage.java2
6 files changed, 9 insertions, 14 deletions
diff --git a/org.eclipse.mylyn.trac.ui/plugin.xml b/org.eclipse.mylyn.trac.ui/plugin.xml
index 424279077..cebac63d4 100644
--- a/org.eclipse.mylyn.trac.ui/plugin.xml
+++ b/org.eclipse.mylyn.trac.ui/plugin.xml
@@ -12,7 +12,7 @@
type="trac"/>
<connectorUi
brandingIcon="icons/eview16/trac-icon.gif"
- class="org.eclipse.mylyn.internal.trac.ui.TracRepositoryUi"
+ class="org.eclipse.mylyn.internal.trac.ui.TracConnectorUi"
id="Trac Repository UI"
overlayIcon="icons/eview16/overlay-trac.gif"/>
<taskListFactory
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
index 027a0be18..df347d264 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
@@ -40,7 +40,7 @@ import org.eclipse.mylyn.tasks.ui.wizards.NewWebTaskWizard;
* @author Mik Kersten
* @author Steffen Pingel
*/
-public class TracRepositoryUi extends AbstractRepositoryConnectorUi {
+public class TracConnectorUi extends AbstractRepositoryConnectorUi {
@Override
public IHyperlink[] findHyperlinks(TaskRepository repository, String text, int lineOffset, int regionOffset) {
@@ -62,11 +62,6 @@ public class TracRepositoryUi extends AbstractRepositoryConnectorUi {
}
@Override
- public boolean hasRichEditor() {
- return true;
- }
-
- @Override
public WizardPage getSearchPage(TaskRepository repository, IStructuredSelection selection) {
return new TracCustomQueryPage(repository);
}
@@ -95,7 +90,7 @@ public class TracRepositoryUi extends AbstractRepositoryConnectorUi {
}
@Override
- public String getRepositoryType() {
+ public String getConnectorKind() {
return TracCorePlugin.REPOSITORY_KIND;
}
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskListFactory.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskListFactory.java
index e51f0742e..89ff1be50 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskListFactory.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskListFactory.java
@@ -14,12 +14,12 @@ package org.eclipse.mylyn.internal.trac.ui;
import java.util.HashSet;
import java.util.Set;
+import org.eclipse.mylyn.internal.tasks.core.TaskExternalizationException;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryQuery;
import org.eclipse.mylyn.internal.trac.core.TracTask;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryQuery;
import org.eclipse.mylyn.tasks.core.AbstractTask;
import org.eclipse.mylyn.tasks.core.AbstractTaskListFactory;
-import org.eclipse.mylyn.tasks.core.TaskExternalizationException;
import org.w3c.dom.Element;
/**
@@ -59,12 +59,12 @@ public class TracTaskListFactory extends AbstractTaskListFactory {
}
@Override
- public AbstractTask createTask(String repositoryUrl, String taskId, String summary, Element element) throws TaskExternalizationException {
+ public AbstractTask createTask(String repositoryUrl, String taskId, String summary, Element element) {
return new TracTask(repositoryUrl, taskId, summary);
}
@Override
- public AbstractRepositoryQuery createQuery(String repositoryUrl, String queryString, String label, Element element) throws TaskExternalizationException {
+ public AbstractRepositoryQuery createQuery(String repositoryUrl, String queryString, String label, Element element) {
return new TracRepositoryQuery(repositoryUrl, queryString, label);
}
}
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 7cc0b428e..e8c58df93 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
@@ -37,7 +37,7 @@ public class TracTaskEditorFactory extends AbstractTaskEditorFactory {
if (input instanceof RepositoryTaskEditorInput) {
RepositoryTaskEditorInput taskInput = (RepositoryTaskEditorInput) input;
return taskInput.getTaskData() != null
- && TracCorePlugin.REPOSITORY_KIND.equals(taskInput.getRepository().getKind());
+ && TracCorePlugin.REPOSITORY_KIND.equals(taskInput.getRepository().getConnectorKind());
} else if (input instanceof TaskEditorInput) {
TaskEditorInput taskInput = (TaskEditorInput) input;
return taskInput.getTask() instanceof TracTask;
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracQueryWizard.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracQueryWizard.java
index fdc9c8f90..8665097c6 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracQueryWizard.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracQueryWizard.java
@@ -55,7 +55,7 @@ public class NewTracQueryWizard extends Wizard {
if (query != null) {
TasksUiPlugin.getTaskListManager().getTaskList().addQuery(query);
AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(
- repository.getKind());
+ repository.getConnectorKind());
if (connector != null) {
TasksUiPlugin.getSynchronizationManager().synchronize(connector, query, null, true);
}
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracTaskPage.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracTaskPage.java
index 93ad80cc6..8a0f878d2 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracTaskPage.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/NewTracTaskPage.java
@@ -132,7 +132,7 @@ public class NewTracTaskPage extends WizardPage {
}
TracTaskDataHandler offlineHandler = (TracTaskDataHandler) connector.getTaskDataHandler();
- AbstractAttributeFactory attributeFactory = offlineHandler.getAttributeFactory(taskRepository.getUrl(), taskRepository.getKind(), AbstractTask.DEFAULT_TASK_KIND);
+ AbstractAttributeFactory attributeFactory = offlineHandler.getAttributeFactory(taskRepository.getUrl(), taskRepository.getConnectorKind(), AbstractTask.DEFAULT_TASK_KIND);
this.taskData = new RepositoryTaskData(attributeFactory, TracCorePlugin.REPOSITORY_KIND,
taskRepository.getUrl(), TasksUiPlugin.getDefault().getNextNewRepositoryTaskId());
this.taskData.setNew(true);

Back to the top