Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 22:30:24 -0400
committermkersten2007-06-22 22:30:24 -0400
commitf62348bfe50d32f3af3e5054ff9481da9bf7e86b (patch)
treee37867f9bb3aa04662744c30ef7e6c21f3c5c152 /org.eclipse.mylyn.bugzilla.ui
parenta4907cc0d72cdc9e6eb7c1e62234edd01214b072 (diff)
downloadorg.eclipse.mylyn.tasks-f62348bfe50d32f3af3e5054ff9481da9bf7e86b.tar.gz
org.eclipse.mylyn.tasks-f62348bfe50d32f3af3e5054ff9481da9bf7e86b.tar.xz
org.eclipse.mylyn.tasks-f62348bfe50d32f3af3e5054ff9481da9bf7e86b.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.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java28
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java4
2 files changed, 3 insertions, 29 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
index e202e05fb..8eaace14f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
@@ -30,6 +30,7 @@ import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_OPER
import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.tasks.ui.TaskListColorsAndFonts;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages;
+import org.eclipse.mylyn.internal.tasks.ui.editors.RepositoryTaskSelection;
import org.eclipse.mylyn.tasks.core.AbstractTask;
import org.eclipse.mylyn.tasks.core.RepositoryOperation;
import org.eclipse.mylyn.tasks.core.RepositoryTaskAttribute;
@@ -39,7 +40,6 @@ import org.eclipse.mylyn.tasks.ui.DatePicker;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.tasks.ui.editors.AbstractRepositoryTaskEditor;
-import org.eclipse.mylyn.tasks.ui.editors.RepositoryTaskSelection;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.mylyn.tasks.ui.search.SearchHitCollector;
import org.eclipse.swt.SWT;
@@ -686,32 +686,6 @@ public class BugzillaTaskEditor extends AbstractRepositoryTaskEditor {
}
- /**
- * A listener for selection of a comment.
- */
- protected class CommentListener implements Listener {
-
- /** The comment that this listener is for. */
- private TaskComment taskComment;
-
- /**
- * Creates a new <code>CommentListener</code>.
- *
- * @param taskComment
- * The comment that this listener is for.
- */
- public CommentListener(TaskComment taskComment) {
- this.taskComment = taskComment;
- }
-
- public void handleEvent(Event event) {
- fireSelectionChanged(new SelectionChangedEvent(
- selectionProvider,
- new StructuredSelection(new RepositoryTaskSelection(taskData.getId(), taskData.getRepositoryUrl(),
- taskData.getRepositoryKind(), taskComment.getCreated(), taskComment, taskData.getSummary()))));
- }
- }
-
@Override
protected void validateInput() {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index b4ca1bf4a..ab0266174 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -717,7 +717,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
// TODO: avoid overriding?
public boolean performAction() {
if (restoreQueryOptions) {
- saveWidgetValues();
+ saveState();
}
getPatternData(summaryPattern, summaryOperation, previousSummaryPatterns);
@@ -1538,7 +1538,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
emailPattern.setText(settings.get(STORE_EMAILADDRESS_ID + repoId));
}
- public void saveWidgetValues() {
+ public void saveState() {
String repoId = "." + repository.getUrl();
IDialogSettings settings = getDialogSettings();
settings.put(STORE_PRODUCT_ID + repoId, product.getSelection());

Back to the top