Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-10-24 03:07:12 -0400
committerrelves2006-10-24 03:07:12 -0400
commit967190fe6010143759fd89be88edbca6490c0ebc (patch)
tree6f02674351a8ff13b934d4d81c45001c5fb76eda /org.eclipse.mylyn.bugzilla.tests
parenta34c29cf05816bfaa63c9f2f701039494c2be89d (diff)
downloadorg.eclipse.mylyn.tasks-967190fe6010143759fd89be88edbca6490c0ebc.tar.gz
org.eclipse.mylyn.tasks-967190fe6010143759fd89be88edbca6490c0ebc.tar.xz
org.eclipse.mylyn.tasks-967190fe6010143759fd89be88edbca6490c0ebc.zip
NEW - bug 161903: Extend ITaskFactory to create editors for new tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161903
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java40
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskEditorTest.java4
2 files changed, 22 insertions, 22 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
index b178dc142..ad490ea8a 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
@@ -16,8 +16,8 @@ import junit.framework.TestCase;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.core.NewBugzillaReport;
-import org.eclipse.mylar.internal.bugzilla.ui.BugzillaUiPlugin;
-import org.eclipse.mylar.internal.bugzilla.ui.editor.NewBugEditor;
+import org.eclipse.mylar.internal.bugzilla.ui.editor.NewBugzillaTaskEditor;
+import org.eclipse.mylar.internal.tasks.ui.TaskListPreferenceConstants;
import org.eclipse.mylar.internal.tasks.ui.TaskUiUtil;
import org.eclipse.mylar.internal.tasks.ui.editors.MylarTaskEditor;
import org.eclipse.mylar.internal.tasks.ui.editors.NewBugEditorInput;
@@ -50,10 +50,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertTrue(editor.searchForDuplicates());
editor.markDirty(false);
@@ -68,10 +68,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertNull(editor.getStackTraceFromDescription());
editor.markDirty(false);
@@ -89,10 +89,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -118,10 +118,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -146,10 +146,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -170,10 +170,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -193,10 +193,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -218,10 +218,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
@@ -242,10 +242,10 @@ public class DuplicateDetetionTest extends TestCase {
model.setHasLocalChanges(true);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
NewBugEditorInput input = new NewBugEditorInput(repository, model);
- TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(input, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
- NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
+ NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
editor.markDirty(false);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskEditorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskEditorTest.java
index e7ee15587..573bf5bef 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskEditorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskEditorTest.java
@@ -14,7 +14,7 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.core.NewBugzillaReport;
-import org.eclipse.mylar.internal.bugzilla.ui.BugzillaUiPlugin;
+import org.eclipse.mylar.internal.tasks.ui.TaskListPreferenceConstants;
import org.eclipse.mylar.internal.tasks.ui.TaskUiUtil;
import org.eclipse.mylar.internal.tasks.ui.editors.AbstractRepositoryTaskEditor;
import org.eclipse.mylar.internal.tasks.ui.editors.MylarTaskEditor;
@@ -59,7 +59,7 @@ public class TaskEditorTest extends TestCase {
.getOfflineReportsFile().getNextOfflineBugId());
NewBugEditorInput editorInput = new NewBugEditorInput(repository, model);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- TaskUiUtil.openEditor(editorInput, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page);
+ TaskUiUtil.openEditor(editorInput, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
assertTrue(page.getActiveEditor() instanceof MylarTaskEditor);
MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor();
assertTrue(taskEditor.getActivePageInstance() instanceof AbstractRepositoryTaskEditor);

Back to the top