ASF Bugzilla – Attachment 30137 Details for
Bug 54789
XPath Assertion - GUI enhancements to increase readability and ease of use
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff file with enhancements
XPathPanel.java.diff (text/plain), 2.17 KB, created by
Bruno Antunes
on 2013-04-02 17:58:39 UTC
(
hide
)
Description:
Diff file with enhancements
Filename:
MIME Type:
Creator:
Bruno Antunes
Created:
2013-04-02 17:58:39 UTC
Size:
2.17 KB
patch
obsolete
>Index: src/components/org/apache/jmeter/assertions/gui/XPathPanel.java >=================================================================== >--- src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (revision 1463517) >+++ src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (working copy) >@@ -20,13 +20,12 @@ > > import java.awt.event.ActionEvent; > import java.awt.event.ActionListener; >+import java.awt.BorderLayout; > >-import javax.swing.Box; > import javax.swing.JButton; > import javax.swing.JCheckBox; > import javax.swing.JOptionPane; > import javax.swing.JPanel; >-import javax.swing.JTextField; > import javax.xml.parsers.ParserConfigurationException; > import javax.xml.transform.TransformerException; > >@@ -37,6 +36,8 @@ > import org.w3c.dom.Document; > import org.w3c.dom.Element; > >+import org.apache.jorphan.gui.JLabeledTextArea; >+ > public class XPathPanel extends JPanel { > private static final long serialVersionUID = 240L; > >@@ -44,7 +45,7 @@ > > private JCheckBox negated; > >- private JTextField xpath; >+ private JLabeledTextArea xpath; > > private JButton checkXPath; > >@@ -52,24 +53,15 @@ > * > */ > public XPathPanel() { >- super(); >+ super(new BorderLayout(5, 0)); > init(); > } > > private void init() { >- Box hbox = Box.createHorizontalBox(); >- hbox.add(Box.createHorizontalGlue()); >- hbox.add(getXPathTextField()); >- hbox.add(Box.createHorizontalGlue()); >- hbox.add(getCheckXPathButton()); >- >- Box vbox = Box.createVerticalBox(); >- vbox.add(hbox); >- vbox.add(Box.createVerticalGlue()); >- vbox.add(getNegatedCheckBox()); >- >- add(vbox); >- >+ add(getXPathTextField(),BorderLayout.CENTER); >+ add(getCheckXPathButton(),BorderLayout.EAST); >+ add(getNegatedCheckBox(), BorderLayout.SOUTH); >+ > setDefaultValues(); > } > >@@ -145,9 +137,9 @@ > return checkXPath; > } > >- public JTextField getXPathTextField() { >+ public JLabeledTextArea getXPathTextField() { > if (xpath == null) { >- xpath = new JTextField(50); >+ xpath = new JLabeledTextArea(); > } > return xpath; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54789
: 30137