Re: svn commit: r1187947 - in /jakarta/jmeter/trunk: bin/ src/core/org/apache/jmeter/gui/ src/core/org/apache/jmeter/gui/action/ src/core/org/apache/jmeter/gui/util/ src/core/org/apache/jmeter/images/toolbar/ src/core/org/apache/jmeter/resources/ xdo
Philippe Mouawad <[email protected]> Sun, 23 Oct 2011 21:02:47 +0200
| Newsgroups | gmane.comp.jakarta.cactus.devel |
|---|---|
| Message-ID | <CAH9fUpbxpCQ=SM-Y+NEjecgV-cM=HZfms4qdnknm+TER1StYKA@mail.gmail.com> |
--000e0cd28788b5b67804affbf3f6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, Is there a reason for making IconToolbarBean getter methods synchronized ? Regards Philippe On Sun, Oct 23, 2011 at 8:41 PM, <[email protected]> wrote: > Author: milamber > Date: Sun Oct 23 18:41:08 2011 > New Revision: 1187947 > > URL: http://svn.apache.org/viewvc?rev=3D1187947&view=3Drev > Log: > Bug 52040 - Add a toolbar in JMeter main window > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.jav= a > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean= .java > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.j= ava > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clear.p= ng > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clearall.= png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/close.p= ng > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/collapse.= png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/copy.pn= g > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/cut.png > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/expand.pn= g > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/function.= png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/help.pn= g > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-too= lbar.properties > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/new.png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/open.pn= g > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/paste.p= ng > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/save.pn= g > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/saveastp.= png > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/search.pn= g > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/searchres= et.png > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdown.= png > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdownr= emoteall.png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/start.p= ng > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/startremo= teall.png > (with props) > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stop.pn= g > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stopremot= eall.png > (with props) > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/toggle.pn= g > (with props) > Modified: > jakarta/jmeter/trunk/bin/jmeter.properties > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.j= ava > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterMenuBar.j= ava > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.prope= rties > > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.pr= operties > jakarta/jmeter/trunk/xdocs/changes.xml > > Modified: jakarta/jmeter/trunk/bin/jmeter.properties > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/jmeter.properties?r= ev=3D1187947&r1=3D1187946&r2=3D1187947&view=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- jakarta/jmeter/trunk/bin/jmeter.properties (original) > +++ jakarta/jmeter/trunk/bin/jmeter.properties Sun Oct 23 18:41:08 2011 > @@ -115,6 +115,12 @@ jmeter.laf.mac=3DSystem > # See https://issues.apache.org/bugzilla/show_bug.cgi?id=3D52026 for > details > # N.B. the laf can be defined in user.properties. > > +# Toolbar display > +# default: > +#jmeter.toolbar.display=3Dtrue > +# Toolbar icon definitions > > +#jmeter.toolbar.icons=3Dorg/apache/jmeter/images/toolbar/icons-toolbar.p= roperties > + > # Icon definitions > # default: > #jmeter.icons=3Dorg/apache/jmeter/images/icon.properties > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/GuiPackage.java?rev=3D1187947&r1=3D1187946&r2=3D1187947&view=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java > (original) > +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java S= un > Oct 23 18:41:08 2011 > @@ -29,8 +29,10 @@ import java.util.Iterator; > import java.util.List; > import java.util.Map; > > +import javax.swing.JCheckBoxMenuItem; > import javax.swing.JOptionPane; > import javax.swing.JPopupMenu; > +import javax.swing.JToolBar; > import javax.swing.SwingUtilities; > > import org.apache.jmeter.engine.util.ValueReplacer; > @@ -103,7 +105,13 @@ public final class GuiPackage implements > > /** The main JMeter frame. */ > private MainFrame mainFrame; > + > + /** The main JMeter toolbar. */ > + private JToolBar toolbar; > > + /** The menu item toolbar. */ > + private JCheckBoxMenuItem menuToolBar; > + > /** > * Private constructor to permit instantiation only from within this > class. > * Use {@link #getInstance()} to retrieve a singleton instance. > @@ -513,6 +521,44 @@ public final class GuiPackage implements > public JMeterTreeListener getTreeListener() { > return treeListener; > } > + > + /** > + * Set the main JMeter toolbar. > + * > + * @param newToolbar > + * the new JMeter main toolbar > + */ > + public void setMainToolbar(JToolBar newToolbar) { > + toolbar =3D newToolbar; > + } > + > + /** > + * Get the main JMeter toolbar. > + * > + * @return the main JMeter toolbar > + */ > + public JToolBar getMainToolbar() { > + return toolbar; > + } > + > + /** > + * Set the menu item toolbar. > + * > + * @param newMenuToolBar > + * the new menu item toolbar > + */ > + public void setMenuItemToolbar(JCheckBoxMenuItem newMenuToolBar) { > + menuToolBar =3D newMenuToolBar; > + } > + > + /** > + * Get the menu item toolbar. > + * > + * @return the menu item toolbar > + */ > + public JCheckBoxMenuItem getMenuItemToolbar() { > + return menuToolBar; > + } > > /** > * Display the specified popup menu with the source component and > location > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/MainFrame.java?rev=3D1187947&r1=3D1187946&r2=3D1187947&view=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java > (original) > +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java Su= n > Oct 23 18:41:08 2011 > @@ -45,6 +45,7 @@ import javax.swing.JPanel; > import javax.swing.JPopupMenu; > import javax.swing.JScrollPane; > import javax.swing.JSplitPane; > +import javax.swing.JToolBar; > import javax.swing.JTree; > import javax.swing.MenuElement; > import javax.swing.SwingUtilities; > @@ -60,6 +61,7 @@ import org.apache.jmeter.gui.action.Acti > import org.apache.jmeter.gui.tree.JMeterCellRenderer; > import org.apache.jmeter.gui.tree.JMeterTreeListener; > import org.apache.jmeter.gui.util.JMeterMenuBar; > +import org.apache.jmeter.gui.util.JMeterToolBar; > import org.apache.jmeter.samplers.Remoteable; > import org.apache.jmeter.testelement.TestElement; > import org.apache.jmeter.testelement.TestListener; > @@ -83,6 +85,10 @@ public class MainFrame extends JFrame im > // The default title for the Menu bar > private static final String DEFAULT_TITLE =3D > "Apache JMeter ("+JMeterUtils.getJMeterVersion()+")"; // > $NON-NLS-1$ $NON-NLS-2$ > + > + // Allow display/hide toolbar > + private static final boolean DISPLAY_TOOLBAR =3D > + JMeterUtils.getPropDefault("jmeter.toolbar.display", true); = // > $NON-NLS-1$ > > /** The menu bar. */ > private JMeterMenuBar menuBar; > @@ -428,6 +434,13 @@ public class MainFrame extends JFrame im > */ > private Component createToolBar() { > Box toolPanel =3D new Box(BoxLayout.X_AXIS); > + // add the toolbar > + JToolBar toolbar =3D JMeterToolBar.createToolbar(DISPLAY_TOOLBAR= ); > + GuiPackage guiInstance =3D GuiPackage.getInstance(); > + guiInstance.setMainToolbar(toolbar); > + > guiInstance.getMenuItemToolbar().getModel().setSelected(DISPLAY_TOOLBAR)= ; > + toolPanel.add(toolbar); > + > toolPanel.add(Box.createRigidArea(new Dimension(10, 15))); > toolPanel.add(Box.createGlue()); > toolPanel.add(activeThreads); > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.ja= va > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/action/ActionNames.java?rev=3D1187947&r1=3D1187946&r2=3D1187947&vie= w=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.ja= va > (original) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.ja= va > Sun Oct 23 18:41:08 2011 > @@ -83,6 +83,7 @@ public class ActionNames { > public static final String SUB_TREE_MERGED =3D "sub_tree_merged"; // > $NON-NLS-1$ > public static final String SUB_TREE_SAVED =3D "sub_tree_saved"; // > $NON-NLS-1$ > public static final String TOGGLE =3D "toggle"; // $NON-NLS= -1$ > enable/disable > + public static final String TOOLBAR =3D "toolbar"; // > $NON-NLS-1$ > public static final String WHAT_CLASS =3D "what_class"; // > $NON-NLS-1$ > public static final String SEARCH_TREE =3D "search_tree"; // > $NON-NLS-1$ > public static final String SEARCH_RESET =3D "search_reset"; // > $NON-NLS-1$ > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/action/ToolBar.java?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.ja= va > (added) > +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.ja= va > Sun Oct 23 18:41:08 2011 > @@ -0,0 +1,70 @@ > +/* > + * Licensed to the Apache Software Foundation (ASF) under one or more > + * contributor license agreements. See the NOTICE file distributed with > + * this work for additional information regarding copyright ownership. > + * The ASF licenses this file to You under the Apache License, Version 2= .0 > + * (the "License"); you may not use this file except in compliance with > + * the License. You may obtain a copy of the License at > + * > + * http://www.apache.org/licenses/LICENSE-2.0 > + * > + * Unless required by applicable law or agreed to in writing, software > + * distributed under the License is distributed on an "AS IS" BASIS, > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > + * See the License for the specific language governing permissions and > + * limitations under the License. > + * > + */ > + > +package org.apache.jmeter.gui.action; > + > +import java.awt.event.ActionEvent; > +import java.util.HashSet; > +import java.util.Set; > + > +import org.apache.jmeter.gui.GuiPackage; > + > +/** > + * Hide / unhide toolbar. > + * > + */ > +public class ToolBar implements Command { > + > + private static final Set<String> commands =3D new HashSet<String>(); > + > + static { > + commands.add(ActionNames.TOOLBAR); > + } > + > + /** > + * Constructor for object. > + */ > + public ToolBar() { > + } > + > + /** > + * Gets the ActionNames attribute of the action > + * > + * @return the ActionNames value > + */ > + public Set<String> getActionNames() { > + return commands; > + } > + > + /** > + * This method performs the actual command processing. > + * > + * @param e > + * the generic UI action event > + */ > + public void doAction(ActionEvent e) { > + if (ActionNames.TOOLBAR.equals(e.getActionCommand())) { > + GuiPackage guiInstance =3D GuiPackage.getInstance(); > + if (guiInstance.getMenuItemToolbar().getModel().isSelected()= ) > { > + guiInstance.getMainToolbar().setVisible(true); > + } else { > + guiInstance.getMainToolbar().setVisible(false); > + } > + } > + } > +} > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java > > -------------------------------------------------------------------------= ----- > svn:eol-style =3D native > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ToolBar.java > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D text/plain > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean.= java > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/util/IconToolbarBean.java?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean.= java > (added) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean.= java > Sun Oct 23 18:41:08 2011 > @@ -0,0 +1,103 @@ > +/* > + * Licensed to the Apache Software Foundation (ASF) under one or more > + * contributor license agreements. See the NOTICE file distributed with > + * this work for additional information regarding copyright ownership. > + * The ASF licenses this file to You under the Apache License, Version 2= .0 > + * (the "License"); you may not use this file except in compliance with > + * the License. You may obtain a copy of the License at > + * > + * http://www.apache.org/licenses/LICENSE-2.0 > + * > + * Unless required by applicable law or agreed to in writing, software > + * distributed under the License is distributed on an "AS IS" BASIS, > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > + * implied. > + * > + * See the License for the specific language governing permissions and > + * limitations under the License. > + */ > + > +package org.apache.jmeter.gui.util; > + > +import org.apache.jmeter.gui.action.ActionNames; > +import org.apache.jorphan.logging.LoggingManager; > +import org.apache.jorphan.util.JMeterException; > +import org.apache.log.Logger; > + > +public final class IconToolbarBean { > + > + private static final Logger log =3D LoggingManager.getLoggerForClass= (); > + > + private final String i18nKey; > + > + private final String actionName; > + > + private final String iconPath; > + > + private final String iconPathPressed; > + > + /** > + * Constructor to transform a line value (from icon set file) to a > icon bean for toolbar. > + * @param strToSplit - the line value (i18n key, ActionNames ID, ico= n > path, optional icon pressed path) > + * @throws JMeterException if error in parsing. > + */ > + public IconToolbarBean(final String strToSplit) throws JMeterExcepti= on > { > + if (strToSplit =3D=3D null) { > + throw new JMeterException("No icon definition"); //$NON-NLS-= 1$ > + } > + final String tmp[] =3D strToSplit.split(";"); //$NON-NLS-1$ > + if (tmp.length > 2) { > + this.i18nKey =3D tmp[0]; > + this.actionName =3D tmp[1]; > + final String icons[] =3D tmp[2].split(" "); //$NON-NLS-1$ > + this.iconPath =3D icons[0]; > + this.iconPathPressed =3D (icons.length > 1) ? icons[1] : > icons[0]; > + } else { > + throw new JMeterException(); > + } > + } > + > + /** > + * Resolve action name ID declared in icon set file to ActionNames > value > + * @return the resolve actionName > + */ > + public synchronized String getActionNameResolve() { > + final String aName; > + try { > + aName =3D (String) > (ActionNames.class.getField(this.actionName).get(null)); > + } catch (Exception e) { > + log.warn("Toolbar icon Action names error: " + this.actionNa= me > + ", use unknown action."); //$NON-NLS-1$ > + return this.actionName; // return unknown action names for > display error msg > + } > + return aName; > + } > + > + /** > + * @return the i18nKey > + */ > + public synchronized String getI18nKey() { > + return i18nKey; > + } > + > + /** > + * @return the actionName > + */ > + public synchronized String getActionName() { > + return actionName; > + } > + > + /** > + * @return the iconPath > + */ > + public synchronized String getIconPath() { > + return iconPath; > + } > + > + /** > + * @return the iconPathPressed > + */ > + public synchronized String getIconPathPressed() { > + return iconPathPressed; > + } > + > +} > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean.= java > > -------------------------------------------------------------------------= ----- > svn:eol-style =3D native > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/IconToolbarBean.= java > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D text/plain > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterMenuBar.ja= va > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/util/JMeterMenuBar.java?rev=3D1187947&r1=3D1187946&r2=3D1187947&vie= w=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterMenuBar.ja= va > (original) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterMenuBar.ja= va > Sun Oct 23 18:41:08 2011 > @@ -26,6 +26,8 @@ import java.util.Iterator; > import java.util.LinkedList; > import java.util.List; > import java.util.Locale; > + > +import javax.swing.JCheckBoxMenuItem; > import javax.swing.JComponent; > import javax.swing.JMenu; > import javax.swing.JMenuBar; > @@ -36,6 +38,7 @@ import javax.swing.MenuElement; > import javax.swing.UIManager; > import javax.swing.UIManager.LookAndFeelInfo; > > +import org.apache.jmeter.gui.GuiPackage; > import org.apache.jmeter.gui.action.ActionNames; > import org.apache.jmeter.gui.action.ActionRouter; > import org.apache.jmeter.gui.action.KeyStrokes; > @@ -44,8 +47,8 @@ import org.apache.jmeter.util.JMeterUtil > import org.apache.jmeter.util.LocaleChangeEvent; > import org.apache.jmeter.util.LocaleChangeListener; > import org.apache.jmeter.util.SSLManager; > -import org.apache.jorphan.util.JOrphanUtils; > import org.apache.jorphan.logging.LoggingManager; > +import org.apache.jorphan.util.JOrphanUtils; > import org.apache.log.Logger; > > public class JMeterMenuBar extends JMenuBar implements > LocaleChangeListener { > @@ -310,6 +313,14 @@ public class JMeterMenuBar extends JMenu > } > optionsMenu.add(functionHelper); > optionsMenu.add(lafMenu); > + > + JCheckBoxMenuItem menuToolBar =3D > makeCheckBoxMenuItemRes("menu_toolbar", ActionNames.TOOLBAR); //$NON-NLS-= 1$ > + GuiPackage guiInstance =3D GuiPackage.getInstance(); > + if (guiInstance !=3D null) { //avoid error in ant task tests (go= od > way?) > + guiInstance.setMenuItemToolbar(menuToolBar); > + } > + optionsMenu.add(menuToolBar); > + > if (SSLManager.isSSLSupported()) { > sslManager =3D makeMenuItemRes("sslmanager", 'S', > ActionNames.SSL_MANAGER, KeyStrokes.SSL_MANAGER); //$NON-NLS-1$ > optionsMenu.add(sslManager); > @@ -750,4 +761,18 @@ public class JMeterMenuBar extends JMenu > menuItem.addActionListener(ActionRouter.getInstance()); > return menuItem; > } > + > + private static JCheckBoxMenuItem makeCheckBoxMenuItemRes(String > resource, String actionCommand) { > + return makeCheckBoxMenuItemRes(resource, actionCommand, null); > + } > + > + private static JCheckBoxMenuItem makeCheckBoxMenuItemRes(String > resource, > + String actionCommand, KeyStroke keyStroke){ > + JCheckBoxMenuItem cbkMenuItem =3D new > JCheckBoxMenuItem(JMeterUtils.getResString(resource)); > + cbkMenuItem.setName(resource); > + cbkMenuItem.setActionCommand(actionCommand); > + cbkMenuItem.setAccelerator(keyStroke); > + cbkMenuItem.addActionListener(ActionRouter.getInstance()); > + return cbkMenuItem; > + } > } > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.ja= va > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/gui/util/JMeterToolBar.java?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.ja= va > (added) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.ja= va > Sun Oct 23 18:41:08 2011 > @@ -0,0 +1,134 @@ > +/* > + * Licensed to the Apache Software Foundation (ASF) under one or more > + * contributor license agreements. See the NOTICE file distributed with > + * this work for additional information regarding copyright ownership. > + * The ASF licenses this file to You under the Apache License, Version 2= .0 > + * (the "License"); you may not use this file except in compliance with > + * the License. You may obtain a copy of the License at > + * > + * http://www.apache.org/licenses/LICENSE-2.0 > + * > + * Unless required by applicable law or agreed to in writing, software > + * distributed under the License is distributed on an "AS IS" BASIS, > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > + * implied. > + * > + * See the License for the specific language governing permissions and > + * limitations under the License. > + */ > + > +package org.apache.jmeter.gui.util; > + > +import java.net.URL; > +import java.util.Collection; > +import java.util.LinkedHashMap; > +import java.util.Properties; > + > +import javax.swing.ImageIcon; > +import javax.swing.JButton; > +import javax.swing.JOptionPane; > +import javax.swing.JToolBar; > + > +import org.apache.jmeter.gui.action.ActionRouter; > +import org.apache.jmeter.util.JMeterUtils; > +import org.apache.jorphan.logging.LoggingManager; > +import org.apache.jorphan.util.JMeterException; > +import org.apache.log.Logger; > + > +/** > + * The JMeter main toolbar class > + * > + */ > +public class JMeterToolBar { > + > + private static final Logger log =3D LoggingManager.getLoggerForClass= (); > + > + // protected fields: JMeterToolBar class can be use to create anothe= r > toolbar (plugin, etc.) > + protected static final String defaultIconProp =3D > "org/apache/jmeter/images/toolbar/icons-toolbar.properties"; //$NON-NLS-1= $ > + > + protected static final String keyIconProp =3D "jmeter.toolbar.icons"= ; > //$NON-NLS-1$ > + > + /** > + * Create the default JMeter toolbar > + * @return the JMeter toolbar > + */ > + public static JToolBar createToolbar(boolean visible) { > + JToolBar toolBar =3D new JToolBar(); > + toolBar.setFloatable(false); > + toolBar.setVisible(visible); > + > + LinkedHashMap<String, IconToolbarBean> icons =3D getIconMappings= (); > + if (icons !=3D null) { > + Collection<IconToolbarBean> enumIcons =3D icons.values(); > + for (IconToolbarBean iconToolbarBean : enumIcons) { > + if (iconToolbarBean =3D=3D null) { > + toolBar.addSeparator(); > + } else { > + toolBar.add(makeButtonItemRes(iconToolbarBean)); > + } > + } > + } > + // implicit return empty toolbar if icons =3D=3D null > + return toolBar; > + } > + > + /** > + * Generate a button component from icon bean > + * @param iconBean contains I18N key, ActionNames, icon path, option= al > icon path pressed > + * @return a button for toolbar > + */ > + private static JButton makeButtonItemRes(IconToolbarBean iconBean) { > + final URL imageURL =3D > JMeterUtils.class.getClassLoader().getResource(iconBean.getIconPath()); > + JButton button =3D new JButton(new ImageIcon(imageURL)); > + > button.setToolTipText(JMeterUtils.getResString(iconBean.getI18nKey())); > + final URL imageURLPressed =3D > JMeterUtils.class.getClassLoader().getResource(iconBean.getIconPathPresse= d()); > + button.setPressedIcon(new ImageIcon(imageURLPressed)); > + button.addActionListener(ActionRouter.getInstance()); > + button.setActionCommand(iconBean.getActionNameResolve()); > + return button; > + } > + > + /** > + * Parse icon set file. > + * @return List of icons/action definition > + */ > + private static LinkedHashMap<String, IconToolbarBean> > getIconMappings() { > + String iconProp =3D JMeterUtils.getPropDefault(keyIconProp, > defaultIconProp); //$NON-NLS-1$ > + Properties p =3D JMeterUtils.loadProperties(iconProp); > + if (p =3D=3D null && !iconProp.equals(defaultIconProp)) { > + log.info(iconProp + " not found - using " + defaultIconProp)= ; > + iconProp =3D defaultIconProp; > + p =3D JMeterUtils.loadProperties(defaultIconProp); > + } > + if (p =3D=3D null) { > + JOptionPane.showMessageDialog(null, JMeterUtils > + .getResString("toolbar_icon_set_not_found"), // > $NON-NLS-1$ > + > JMeterUtils.getResString("toolbar_icon_set_not_found"), // $NON-NLS-1$ > + JOptionPane.WARNING_MESSAGE); > + return null; > + } > + log.info("Loading toolbar icons properties from " + iconProp); > //$NON-NLS-1$ > + > + String order =3D p.getProperty("toolbar"); //$NON-NLS-1$ > + p.remove("toolbar"); //$NON-NLS-1$ > + String[] oList =3D order.split(","); //$NON-NLS-1$ > + > + LinkedHashMap<String, IconToolbarBean> listIcons =3D new > LinkedHashMap<String, IconToolbarBean>(); > + int ctr =3D 1; > + for (String key : oList) { > + log.debug("Toolbar icon key: " + key); //$NON-NLS-1$ > + if (key.trim().equals("|")) { //$NON-NLS-1$ > + listIcons.put("space" + ctr++, null); //$NON-NLS-1$ > + } else { > + try { > + IconToolbarBean itb =3D new > IconToolbarBean(p.getProperty(key)); > + listIcons.put(key, itb); > + } catch (JMeterException je) { > + log.error("Toolbar icon loading error - key: " + key= ); > //$NON-NLS-1$ > + } > + } > + } > + return listIcons; > + } > + > +} > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.ja= va > > -------------------------------------------------------------------------= ----- > svn:eol-style =3D native > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterToolBar.ja= va > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D text/plain > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clear.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/clear.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clear.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clearall.p= ng > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/clearall.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/clearall.p= ng > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/close.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/close.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/close.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/collapse.p= ng > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/collapse.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/collapse.p= ng > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/copy.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/copy.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/copy.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/cut.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/cut.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/cut.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/expand.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/expand.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/expand.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/function.p= ng > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/function.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/function.p= ng > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/help.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/help.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/help.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-tool= bar.properties > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/icons-toolbar.properties?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-tool= bar.properties > (added) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-tool= bar.properties > Sun Oct 23 18:41:08 2011 > @@ -0,0 +1,44 @@ > +# Licensed to the Apache Software Foundation (ASF) under one or more > +# contributor license agreements. See the NOTICE file distributed wit= h > +# this work for additional information regarding copyright ownership. > +# The ASF licenses this file to You under the Apache License, Version > 2.0 > +# (the "License"); you may not use this file except in compliance with > +# the License. You may obtain a copy of the License at > +# > +# http://www.apache.org/licenses/LICENSE-2.0 > +# > +# Unless required by applicable law or agreed to in writing, software > +# distributed under the License is distributed on an "AS IS" BASIS, > +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > +# See the License for the specific language governing permissions and > +# limitations under the License. > + > +# Icons order. Keys separate by comma. Use a pipe | to have a space > between two icons. > > +toolbar=3Dnew,open,close,save,save_as_testplan,|,cut,copy,paste,|,expand= ,collapse,toggle,|,test_start,test_stop,test_shutdown,|,test_start_remote_a= ll,test_stop_remote_all,test_shutdown_remote_all,|,test_clear,test_clear_al= l,|,search,search_reset,|,function_helper,help > + > +# Icon / action definition file. > +# Key: button names > +# Value: I18N key in messages.properties; ActionNames key field; > icon path, optionally followed by space and then the pressed icon name > +new=3Dnew;CLOSE;org/apache/jmeter/images/toolbar/new.png > +open=3Dmenu_open;OPEN;org/apache/jmeter/images/toolbar/open.png > +close=3Dmenu_close;CLOSE;org/apache/jmeter/images/toolbar/close.png > +save=3Dsave;SAVE;org/apache/jmeter/images/toolbar/save.png > > +save_as_testplan=3Dsave_as;SAVE_AS;org/apache/jmeter/images/toolbar/save= astp.png > +cut=3Dcut;CUT;org/apache/jmeter/images/toolbar/cut.png > +copy=3Dcopy;COPY;org/apache/jmeter/images/toolbar/copy.png > +paste=3Dpaste;PASTE;org/apache/jmeter/images/toolbar/paste.png > +test_start=3Dstart;ACTION_START;org/apache/jmeter/images/toolbar/start.p= ng > +test_stop=3Dstop;ACTION_STOP;org/apache/jmeter/images/toolbar/stop.png > > +test_shutdown=3Dshutdown;ACTION_SHUTDOWN;org/apache/jmeter/images/toolba= r/shutdown.png > > +test_start_remote_all=3Dremote_start_all;REMOTE_START_ALL;org/apache/jme= ter/images/toolbar/startremoteall.png > > +test_stop_remote_all=3Dremote_stop_all;REMOTE_STOP_ALL;org/apache/jmeter= /images/toolbar/stopremoteall.png > > +test_shutdown_remote_all=3Dremote_shut_all;REMOTE_SHUT_ALL;org/apache/jm= eter/images/toolbar/shutdownremoteall.png > +test_clear=3Dclear;CLEAR;org/apache/jmeter/images/toolbar/clear.png > > +test_clear_all=3Dclear_all;CLEAR_ALL;org/apache/jmeter/images/toolbar/cl= earall.png > +toggle=3Dtoggle;TOGGLE;org/apache/jmeter/images/toolbar/toggle.png > > +expand=3Dmenu_expand_all;EXPAND_ALL;org/apache/jmeter/images/toolbar/exp= and.png > > +collapse=3Dmenu_collapse_all;COLLAPSE_ALL;org/apache/jmeter/images/toolb= ar/collapse.png > +search=3Dmenu_search;SEARCH_TREE;org/apache/jmeter/images/toolbar/search= .png > > +search_reset=3Dmenu_search_reset;SEARCH_RESET;org/apache/jmeter/images/t= oolbar/searchreset.png > > +function_helper=3Dfunction_dialog_menu_item;FUNCTIONS;org/apache/jmeter/= images/toolbar/function.png > +help=3Dhelp;HELP;org/apache/jmeter/images/toolbar/help.png > \ No newline at end of file > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-tool= bar.properties > > -------------------------------------------------------------------------= ----- > svn:eol-style =3D native > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/icons-tool= bar.properties > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D text/plain > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/new.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/new.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/new.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/open.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/open.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/open.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/paste.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/paste.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/paste.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/save.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/save.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/save.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/saveastp.p= ng > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/saveastp.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/saveastp.p= ng > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/search.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/search.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/search.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/searchrese= t.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/searchreset.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/searchrese= t.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdown.p= ng > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/shutdown.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdown.p= ng > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdownre= moteall.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/shutdownremoteall.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/shutdownre= moteall.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/start.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/start.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/start.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/startremot= eall.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/startremoteall.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/startremot= eall.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stop.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/stop.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stop.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stopremote= all.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/stopremoteall.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/stopremote= all.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Added: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/toggle.png > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/images/toolbar/toggle.png?rev=3D1187947&view=3Dauto > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Binary file - no diff available. > > Propchange: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/images/toolbar/toggle.png > > -------------------------------------------------------------------------= ----- > svn:mime-type =3D image/png > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.proper= ties > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/resources/messages.properties?rev=3D1187947&r1=3D1187946&r2=3D1187947&v= iew=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.proper= ties > (original) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.proper= ties > Sun Oct 23 18:41:08 2011 > @@ -512,6 +512,7 @@ menu_search_reset=3DReset Search > menu_tables=3DTable > menu_threads=3DThreads (Users) > menu_timer=3DTimer > +menu_toolbar=3DToolbar > metadata=3DMetaData > method=3DMethod\: > mimetype=3DMimetype > @@ -944,6 +945,7 @@ throughput_control_tplabel=3DThroughput > time_format=3DFormat string for SimpleDateFormat (optional) > timelim=3DTime limit > toggle=3DToggle > +toolbar_icon_set_not_found=3DThe file description of toolbar icon set is= not > found. See logs. > tr=3DTurkish > transaction_controller_include_timers=3DInclude timer duration in genera= ted > sample > transaction_controller_parent=3DGenerate parent sample > > Modified: > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.pro= perties > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jme= ter/resources/messages_fr.properties?rev=3D1187947&r1=3D1187946&r2=3D118794= 7&view=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.pro= perties > (original) > +++ > jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.pro= perties > Sun Oct 23 18:41:08 2011 > @@ -469,6 +469,7 @@ menu_search=3DRechercher > menu_search_reset=3DEffacer la recherche > menu_threads=3DMoteurs d'utilisateurs > menu_timer=3DCompteurs de temps > +menu_toolbar=3DBarre d'outils > metadata=3DM\u00E9ta-donn\u00E9es > method=3DM\u00E9thode \: > mimetype=3DType MIME > @@ -850,6 +851,7 @@ throughput_control_tplabel=3DD\u00E9bit \: > time_format=3DChaine de formatage sur le mod\u00E8le SimpleDateFormat > (optionnel) > timelim=3DLimiter le temps de r\u00E9ponses \u00E0 (ms) > toggle=3DPermuter > +toolbar_icon_set_not_found=3DLe fichier de description des ic\u00F4nes d= e la > barre d'outils n'est pas trouv\u00E9. Voir les journaux. > tr=3DTurc > transaction_controller_include_timers=3DInclure la dur\u00E9e des compte= urs > de temps dans le calcul du temps > transaction_controller_parent=3DG\u00E9n\u00E9rer en \u00E9chantillon pa= rent > > Modified: jakarta/jmeter/trunk/xdocs/changes.xml > URL: > http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev= =3D1187947&r1=3D1187946&r2=3D1187947&view=3Ddiff > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- jakarta/jmeter/trunk/xdocs/changes.xml (original) > +++ jakarta/jmeter/trunk/xdocs/changes.xml Sun Oct 23 18:41:08 2011 > @@ -178,6 +178,7 @@ Mirror server now uses default port 8081 > <li>Bug 52027 - Allow System or CrossPlatform LAF to be set from options > menu</li> > <li>Bug 52037 - Remember user-set LaF over restarts.</li> > <li>Bug 51861 - Improve HTTP Request GUI to better show parameters witho= ut > name (GWT RPC requests for example) (UNDER DEVELOPMENT)</li> > +<li>Bug 52040 - Add a toolbar in JMeter main window</li> > </ul> > > <h2>Non-functional changes</h2> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --=20 Cordialement. Philippe Mouawad. --000e0cd28788b5b67804affbf3f6--