Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-10-23 20:28:10 -0400
committermkersten2005-10-23 20:28:10 -0400
commitc1c8d541b7ab9f96cb1de42703d7f8bb609dc307 (patch)
tree6f58f4c8fa792d712b2ef673430340e0cfdfcfe1
parentcc52a4f9b454adc3af0a3c0c644d6d89d8a9fe9a (diff)
downloadorg.eclipse.mylyn.tasks-c1c8d541b7ab9f96cb1de42703d7f8bb609dc307.tar.gz
org.eclipse.mylyn.tasks-c1c8d541b7ab9f96cb1de42703d7f8bb609dc307.tar.xz
org.eclipse.mylyn.tasks-c1c8d541b7ab9f96cb1de42703d7f8bb609dc307.zip
Fixed Bugzilla Bug 113461: allow mylar monitor to be disabled
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTaskPreferencePage.java)28
2 files changed, 8 insertions, 22 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index b4d1e6ada..683085587 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -89,7 +89,7 @@
<extension point="org.eclipse.ui.preferencePages">
<page
name="Task List"
- class="org.eclipse.mylar.tasklist.ui.preferences.MylarTaskPreferencePage"
+ class="org.eclipse.mylar.tasklist.ui.preferences.MylarTasklistPreferencePage"
id="org.eclipse.mylar.tasklist.ui.preferences"
category="org.eclipse.mylar.ui.preferences">
</page>
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTaskPreferencePage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java
index 942cabe5a..985b98d35 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTaskPreferencePage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java
@@ -18,7 +18,6 @@ import org.eclipse.mylar.tasklist.MylarTasklistPlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.RowLayout;
@@ -33,23 +32,24 @@ import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
/**
- * @author Ken Sueda and Mik Kersten
+ * @author Mik Kersten
+ * @author Ken Sueda
*/
-public class MylarTaskPreferencePage extends PreferencePage implements
- IWorkbenchPreferencePage, SelectionListener {
+public class MylarTasklistPreferencePage extends PreferencePage implements
+ IWorkbenchPreferencePage {
private Text taskDirectoryText;
private Button browse;
-
private Button reportEditor = null;
private Button reportInternal = null;
private Button reportExternal = null;
private Button multipleActive = null;
- public MylarTaskPreferencePage() {
+ public MylarTasklistPreferencePage() {
super();
setPreferenceStore(MylarTasklistPlugin.getPrefs());
}
+
@Override
protected Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
@@ -110,6 +110,7 @@ public class MylarTaskPreferencePage extends PreferencePage implements
getPreferenceStore().setValue(MylarTasklistPlugin.MULTIPLE_ACTIVE_TASKS, multipleActive.getSelection());
return true;
}
+
@Override
public boolean performCancel() {
// closeEditors.setSelection(getPreferenceStore().getBoolean(MylarPlugin.TASKLIST_EDITORS_CLOSE));
@@ -187,22 +188,7 @@ public class MylarTaskPreferencePage extends PreferencePage implements
Button button = new Button(parent, SWT.TRAIL);
button.setText(text);
button.setVisible(true);
- button.addSelectionListener(this);
return button;
}
-
- /**
- * Handle selection of an item in the menu.
- */
- public void widgetDefaultSelected(SelectionEvent se) {
- widgetSelected(se);
- }
-
- /**
- * Handle selection of an item in the menu.
- */
- public void widgetSelected(SelectionEvent se) {
- // don't care when the widget is selected
- }
}

Back to the top