ASF Bugzilla – Attachment 30540 Details for
Bug 55202
Add syntax color for scripts elements (BeanShell, BSF, and JSR223) and JDBC elements with RSyntaxTextArea
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for BeanShellAssertionGui
BeanShellAssertionGui.java.diff (text/plain), 1.85 KB, created by
Marko
on 2013-07-05 17:54:31 UTC
(
hide
)
Description:
Patch for BeanShellAssertionGui
Filename:
MIME Type:
Creator:
Marko
Created:
2013-07-05 17:54:31 UTC
Size:
1.85 KB
patch
obsolete
>Index: src/components/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java >=================================================================== >--- src/components/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java (revision 1496951) >+++ src/components/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java (working copy) >@@ -32,6 +32,9 @@ > import org.apache.jmeter.testelement.TestElement; > import org.apache.jmeter.testelement.property.BooleanProperty; > import org.apache.jmeter.util.JMeterUtils; >+import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; >+import org.fife.ui.rsyntaxtextarea.SyntaxConstants; >+import org.fife.ui.rtextarea.RTextScrollPane; > > public class BeanShellAssertionGui extends AbstractAssertionGui { > >@@ -43,7 +46,7 @@ > > private JTextField parameters;// parameters to pass to script file (or script) > >- private JTextArea scriptField;// script area >+ private RSyntaxTextArea scriptField;// script area > > public BeanShellAssertionGui() { > init(); >@@ -139,8 +142,10 @@ > } > > private JPanel createScriptPanel() { >- scriptField = new JTextArea(); >- scriptField.setRows(4); >+ scriptField = new RSyntaxTextArea(20,20); >+ scriptField.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); >+ scriptField.setCodeFoldingEnabled(true); >+ scriptField.setAntiAliasingEnabled(true); > scriptField.setLineWrap(true); > scriptField.setWrapStyleWord(true); > >@@ -149,7 +154,7 @@ > > JPanel panel = new JPanel(new BorderLayout()); > panel.add(label, BorderLayout.NORTH); >- panel.add(new JScrollPane(scriptField), BorderLayout.CENTER); >+ panel.add(new RTextScrollPane(scriptField), BorderLayout.CENTER); > > JTextArea explain = new JTextArea(JMeterUtils.getResString("bsh_assertion_script_variables")); //$NON-NLS-1$ > explain.setLineWrap(true);
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 55202
:
30540
|
30541
|
30542
|
30543
|
30544
|
30545
|
30546
|
30547
|
30548
|
30549
|
30550