jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1615294 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java
Date Sat, 02 Aug 2014 09:53:33 GMT
Author: sebb
Date: Sat Aug  2 09:53:33 2014
New Revision: 1615294

URL: http://svn.apache.org/r1615294
Log:
Simplify

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java?rev=1615294&r1=1615293&r2=1615294&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java Sat Aug  2 09:53:33 2014
@@ -62,11 +62,8 @@ public class ToolBar implements Command 
     public void doAction(ActionEvent e) {
         if (ActionNames.TOOLBAR.equals(e.getActionCommand())) {
             GuiPackage guiInstance = GuiPackage.getInstance();
-            if (guiInstance.getMenuItemToolbar().getModel().isSelected()) {
-                guiInstance.getMainToolbar().setVisible(true);
-            } else {
-                guiInstance.getMainToolbar().setVisible(false);
-            }
+            final boolean isSelected = guiInstance.getMenuItemToolbar().getModel().isSelected();
+            guiInstance.getMainToolbar().setVisible(isSelected);
         }
     }
 }



Mime
View raw message