[108853] Add Properties action to context menu
diff --git a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
index 67f4bfe..b03f764 100644
--- a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
+++ b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
@@ -29,10 +29,10 @@
viewDateFormat=h:mm.s.S a
# Actions
-actionSortByResponseTime=Sort by response time
+actionSortByResponseTime=Sort By Response Time
actionClearToolTip=Clear
-actionShowHeader=Show header
-actionProperties=Properties...
+actionShowHeader=Show Header
+actionProperties=Properties
# --------------- RequestResponse Viewers ---------------
diff --git a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/view/MonitorView.java b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/view/MonitorView.java
index 859bf79..078e699 100644
--- a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/view/MonitorView.java
+++ b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/view/MonitorView.java
@@ -60,6 +60,7 @@
protected static final String DEFAULT_VIEWER = "org.eclipse.wst.internet.monitor.viewers.byte";
protected IAction httpHeaderAction;
+ protected IAction preferenceAction;
public static MonitorView view;
@@ -380,8 +381,9 @@
MenuManager menuManager = new MenuManager();
menuManager.setRemoveAllWhenShown(true);
menuManager.addMenuListener(new IMenuListener() {
- public void menuAboutToShow(IMenuManager mgr) {
- mgr.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ public void menuAboutToShow(IMenuManager menu) {
+ menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ menu.add(preferenceAction);
}
});
@@ -459,7 +461,7 @@
httpHeaderAction.setChecked(vm.getDisplayHeaderInfo());
httpHeaderAction.setText(Messages.actionShowHeader);
- IAction preferenceAction = new Action() {
+ preferenceAction = new Action() {
public void run() {
showPreferencePage();
}
@@ -479,6 +481,7 @@
FilterAction action = new FilterAction(vm, filters[i]);
menuManager.add(action);
}
+ menuManager.add(new Separator());
menuManager.add(preferenceAction);
}