diff options
author | relves | 2006-07-28 22:55:13 +0000 |
---|---|---|
committer | relves | 2006-07-28 22:55:13 +0000 |
commit | 95bb9382f8dca1a16c3af58d1a2f28c7cbaf1dcf (patch) | |
tree | 2149129c230188a27aeb18e48e9fb8cde6260179 /org.eclipse.mylyn.bugzilla.tests | |
parent | c6405ae121b75cce2f91e250fae83ffbc9f3c463 (diff) | |
download | org.eclipse.mylyn.tasks-95bb9382f8dca1a16c3af58d1a2f28c7cbaf1dcf.tar.gz org.eclipse.mylyn.tasks-95bb9382f8dca1a16c3af58d1a2f28c7cbaf1dcf.tar.xz org.eclipse.mylyn.tasks-95bb9382f8dca1a16c3af58d1a2f28c7cbaf1dcf.zip |
Progress on: 150430: add Bugzilla repository templates
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150430
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java | 9 |
1 files changed, 6 insertions, 3 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 44093f5cd..9dc81e85b 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 @@ -20,6 +20,7 @@ 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.NewBugEditorInput; import org.eclipse.mylar.internal.tasks.ui.TaskUiUtil; +import org.eclipse.mylar.internal.tasks.ui.editors.MylarTaskEditor; import org.eclipse.mylar.tasks.core.TaskRepository; import org.eclipse.mylar.tasks.ui.TasksUiPlugin; import org.eclipse.ui.IWorkbenchPage; @@ -50,8 +51,9 @@ public class DuplicateDetetionTest extends TestCase { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); NewBugEditorInput input = new NewBugEditorInput(repository, model); TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page); - - NewBugEditor editor = (NewBugEditor) page.getActiveEditor(); + + MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor(); + NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance(); assertTrue(editor.searchForDuplicates()); editor.markDirty(false); @@ -68,7 +70,8 @@ public class DuplicateDetetionTest extends TestCase { NewBugEditorInput input = new NewBugEditorInput(repository, model); TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page); - NewBugEditor editor = (NewBugEditor) page.getActiveEditor(); + MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor(); + NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance(); assertNull(editor.getStackTraceFromDescription()); editor.markDirty(false); |