Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-09-28 12:38:24 -0400
committerSteffen Pingel2011-09-28 12:38:24 -0400
commit278ebf55185a90a1558ebe1d0cdca38f5ac9a3c0 (patch)
tree82bd4b50a215be508624a22a5495f463f526aed4 /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks
parenta9e13a2bf347490c604901e31693194ed3a63564 (diff)
downloadorg.eclipse.mylyn.tasks-278ebf55185a90a1558ebe1d0cdca38f5ac9a3c0.tar.gz
org.eclipse.mylyn.tasks-278ebf55185a90a1558ebe1d0cdca38f5ac9a3c0.tar.xz
org.eclipse.mylyn.tasks-278ebf55185a90a1558ebe1d0cdca38f5ac9a3c0.zip
NEW - bug 357052: "Open with Web Browser" action missing in drop-down
menu of button https://bugs.eclipse.org/bugs/show_bug.cgi?id=357052
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
index 3b8a80516..b06a0aae7 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
@@ -36,6 +36,7 @@ import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuCreator;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
@@ -63,6 +64,7 @@ import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.actions.ClearOutgoingAction;
import org.eclipse.mylyn.internal.tasks.ui.actions.DeleteTaskEditorAction;
import org.eclipse.mylyn.internal.tasks.ui.actions.NewSubTaskAction;
+import org.eclipse.mylyn.internal.tasks.ui.actions.OpenWithBrowserAction;
import org.eclipse.mylyn.internal.tasks.ui.actions.SynchronizeEditorAction;
import org.eclipse.mylyn.internal.tasks.ui.editors.AbstractTaskEditorSection;
import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
@@ -1031,6 +1033,10 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
getEditor().openWithBrowserAction.setMenuCreator(new MenuCreator() {
@Override
protected void initialize(MenuManager menuManager) {
+ OpenWithBrowserAction openWithBrowserAction = new OpenWithBrowserAction();
+ openWithBrowserAction.selectionChanged(new StructuredSelection(task));
+ menuManager.add(openWithBrowserAction);
+ menuManager.add(new Separator());
menuManager.add(historyAction);
};
});

Back to the top