Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-10-15 14:17:39 -0400
committerrelves2009-10-15 14:17:39 -0400
commit715afba7e46926fe99d4a81c231cff996ce1b655 (patch)
tree51941c8ef289a21a4820b9cd761a6a2626d4c2fc
parenta49c833b8b63547ccb9c137a04ad5a55d0c4c8da (diff)
downloadorg.eclipse.mylyn.tasks-715afba7e46926fe99d4a81c231cff996ce1b655.tar.gz
org.eclipse.mylyn.tasks-715afba7e46926fe99d4a81c231cff996ce1b655.tar.xz
org.eclipse.mylyn.tasks-715afba7e46926fe99d4a81c231cff996ce1b655.zip
RESOLVED - bug 280807: improve Mylyn welcome experience
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280807
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ShowTasksUiLegendAction.java47
2 files changed, 48 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index afaa0bf91..b5b588c8f 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -302,7 +302,7 @@
tooltip="%NewTaskAction.tooltip">
</action>-->
<action
- class="org.eclipse.mylyn.internal.tasks.ui.actions.WelcomeIntroAction"
+ class="org.eclipse.mylyn.internal.tasks.ui.actions.ShowTasksUiLegendAction"
icon="icons/etool16/icons-legend.gif"
id="org.eclipse.mylyn.doc.legend.show.action"
label="%ShowTasksUiLegendAction.label"
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ShowTasksUiLegendAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ShowTasksUiLegendAction.java
new file mode 100644
index 000000000..c68e1bc5d
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ShowTasksUiLegendAction.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2008 Tasktop Technologies 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.tasks.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.mylyn.internal.provisional.commons.ui.WorkbenchUtil;
+import org.eclipse.mylyn.internal.tasks.ui.dialogs.UiLegendDialog;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+/**
+ * @author Mik Kersten
+ * @author Leo Dos Santos
+ */
+public class ShowTasksUiLegendAction implements IWorkbenchWindowActionDelegate, IViewActionDelegate {
+
+ public void dispose() {
+ // ignore
+ }
+
+ public void init(IWorkbenchWindow window) {
+ }
+
+ public void run(IAction action) {
+ UiLegendDialog uiLegendDialog = new UiLegendDialog(WorkbenchUtil.getShell());
+ uiLegendDialog.open();
+ }
+
+ public void selectionChanged(IAction action, ISelection selection) {
+ // ignore
+ }
+
+ public void init(IViewPart view) {
+ }
+}

Back to the top