ASF Bugzilla – Attachment 30541 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 BeanShellSamplerGui.java
BeanShellSamplerGui.java.diff (text/plain), 1.83 KB, created by
Marko
on 2013-07-05 17:56:44 UTC
(
hide
)
Description:
Patch for BeanShellSamplerGui.java
Filename:
MIME Type:
Creator:
Marko
Created:
2013-07-05 17:56:44 UTC
Size:
1.83 KB
patch
obsolete
>Index: src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java >=================================================================== >--- src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java (revision 1496951) >+++ src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java (working copy) >@@ -33,6 +33,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 BeanShellSamplerGui extends AbstractSamplerGui { > >@@ -44,7 +47,7 @@ > > private JTextField parameters;// parameters to pass to script file (or script) > >- private JTextArea scriptField;// script area >+ private RSyntaxTextArea scriptField;// script area > > public BeanShellSamplerGui() { > init(); >@@ -153,8 +156,9 @@ > } > > private JPanel createScriptPanel() { >- scriptField = new JTextArea(); >- scriptField.setRows(4); >+ scriptField = new RSyntaxTextArea(20,20); >+ scriptField.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); >+ scriptField.setCodeFoldingEnabled(true); > scriptField.setLineWrap(true); > scriptField.setWrapStyleWord(true); > >@@ -163,7 +167,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_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