Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2015-05-29 16:22:23 -0400
committerSam Davis2015-06-02 18:42:18 -0400
commit5d60e74a42d6e55dd1e94ab90f97efb37ce3f952 (patch)
tree2cb287e423be86598636cc528ffbb84cbb4458a7
parentf59937ca20402419dcd3caf4e52e58353fec1cac (diff)
downloadorg.eclipse.mylyn.tasks-5d60e74a42d6e55dd1e94ab90f97efb37ce3f952.tar.gz
org.eclipse.mylyn.tasks-5d60e74a42d6e55dd1e94ab90f97efb37ce3f952.tar.xz
org.eclipse.mylyn.tasks-5d60e74a42d6e55dd1e94ab90f97efb37ce3f952.zip
468700: Missing org.eclipse.mylyn.preferencePages.Mylyn preference
category Change-Id: Id1d1a7d6fbb1e6ba76c0bfbbeb77ea5db70b688f Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=468700
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.properties4
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml9
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/Messages.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/NotificationsLinkPreferencesPage.java58
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/messages.properties2
5 files changed, 76 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.properties b/org.eclipse.mylyn.tasks.ui/plugin.properties
index 184336743..0c68c23b3 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.properties
+++ b/org.eclipse.mylyn.tasks.ui/plugin.properties
@@ -222,4 +222,6 @@ commands.task.clearContext.label = Clear
commands.attachment.retrieveContext.label = Retrieve Context
TaskRepositoryWizard.name = Task Repository
-TaskRepositoryWizard.description = Connects to task repositories \ No newline at end of file
+TaskRepositoryWizard.description = Connects to task repositories
+
+Notifications.name = Notifications
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index ca687cdd9..de7de8ebe 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -595,6 +595,15 @@
id="org.eclipse.mylyn.tasks.ui.keywords"/>
</page>
</extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ category="org.eclipse.mylyn.preferencePages.Mylyn"
+ class="org.eclipse.mylyn.internal.tasks.ui.preferences.NotificationsLinkPreferencesPage"
+ id="org.eclipse.mylyn.commons.notifications.preferencePages.LinkNotifications"
+ name="%Notifications.name">
+ </page>
+ </extension>
<extension point="org.eclipse.ui.bindings">
<key
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/Messages.java
index 1a01b2dc9..8fd690a8a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/Messages.java
@@ -29,6 +29,10 @@ public class Messages extends NLS {
public static String MylynPreferencePage_Mylyn_Title;
+ public static String NotificationsLinkPreferencesPage_LinkText;
+
+ public static String NotificationsLinkPreferencesPage_Mylyn_Notifications;
+
public static String TasksUiPreferencePage_Advanced;
public static String TasksUiPreferencePage_Browse_;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/NotificationsLinkPreferencesPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/NotificationsLinkPreferencesPage.java
new file mode 100644
index 000000000..572b62629
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/NotificationsLinkPreferencesPage.java
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Frank Becker and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Frank Becker - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.tasks.ui.preferences;
+
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+
+/**
+ * @author Frank Becker
+ */
+public class NotificationsLinkPreferencesPage extends PreferencePage implements IWorkbenchPreferencePage {
+
+ public NotificationsLinkPreferencesPage() {
+ super(Messages.NotificationsLinkPreferencesPage_Mylyn_Notifications);
+ noDefaultAndApplyButton();
+ }
+
+ public void init(IWorkbench workbench) {
+ }
+
+ @Override
+ protected Control createContents(Composite parent) {
+ final Shell shell = parent.getShell();
+ String text = Messages.NotificationsLinkPreferencesPage_LinkText;
+ Link link = new Link(parent, SWT.PUSH);
+ link.setText(text);
+ link.setEnabled(true);
+ link.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ PreferencesUtil.createPreferenceDialogOn(shell,
+ "org.eclipse.mylyn.commons.notifications.preferencePages.Notifications", null, null); //$NON-NLS-1$
+ }
+ });
+ link.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true));
+
+ return parent;
+ }
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/messages.properties
index 8c2614b79..e84db63a1 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/messages.properties
@@ -10,6 +10,8 @@
###############################################################################
MylynPreferencePage_General_settings_Description=See sub-pages for settings.
MylynPreferencePage_Mylyn_Title=Mylyn
+NotificationsLinkPreferencesPage_LinkText=This page has moved to <a>General Notifications</a>.
+NotificationsLinkPreferencesPage_Mylyn_Notifications=Mylyn Notifications
TasksUiPreferencePage_Advanced=Advanced
TasksUiPreferencePage_Browse_=Browse...
TasksUiPreferencePage_Change_data_directory=Change data directory

Back to the top