You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/10/10 16:24:15 UTC
svn commit: r583485 -
/jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
Author: sebb
Date: Wed Oct 10 07:24:14 2007
New Revision: 583485
URL: http://svn.apache.org/viewvc?rev=583485&view=rev
Log:
Suppress Cut if item is not removable
Add new Paste Menu (for TestPlan)
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java?rev=583485&r1=583484&r2=583485&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java Wed Oct 10 07:24:14 2007
@@ -137,24 +137,19 @@
private MenuFactory() {
}
- public static String doNothing() {
- return "doing nothing";
- }
-
public static void addEditMenu(JPopupMenu menu, boolean removable) {
addSeparator(menu);
- menu.add(makeMenuItem(JMeterUtils.getResString("cut"), //$NON-NLS-1$
+ if (removable) {
+ menu.add(makeMenuItem(JMeterUtils.getResString("cut"), //$NON-NLS-1$
"Cut", ActionNames.CUT, //$NON-NLS-1$
KeyStrokes.CUT));
+ }
menu.add(makeMenuItem(JMeterUtils.getResString("copy"), //$NON-NLS-1$
"Copy", ActionNames.COPY, //$NON-NLS-1$
KeyStrokes.COPY));
menu.add(makeMenuItem(JMeterUtils.getResString("paste"), //$NON-NLS-1$
"Paste", ActionNames.PASTE, //$NON-NLS-1$
KeyStrokes.PASTE));
-// Does not appear to be any different to Paste
-// menu.add(makeMenuItem(JMeterUtils.getResString("paste_insert"), //$NON-NLS-1$
-// "Paste Insert", ActionNames.PASTE)); //$NON-NLS-1$
menu.add(makeMenuItem(JMeterUtils.getResString("reset_gui"), //$NON-NLS-1$
"Reset", ActionNames.RESET_GUI //$NON-NLS-1$
));
@@ -163,6 +158,13 @@
"Remove", ActionNames.REMOVE, //$NON-NLS-1$
KeyStrokes.REMOVE));
}
+ }
+
+ public static void addPasteMenu(JPopupMenu menu) {
+ addSeparator(menu);
+ menu.add(makeMenuItem(JMeterUtils.getResString("paste"), //$NON-NLS-1$
+ "Paste", ActionNames.PASTE, //$NON-NLS-1$
+ KeyStrokes.PASTE));
}
public static void addFileMenu(JPopupMenu menu) {
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org