2483 simplified adding newline to end of current keyword list when paste

This commit is contained in:
William Schaefer 2017-04-13 14:19:08 -04:00
parent 5d4681335e
commit ad5ae3e21b
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="keywordTextAreaMouseClicked"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new JTextArea() {&#xa; //Override the paste action for this jtext area to always insert a new line before the pasted text&#xa; @Override&#xa; public void paste() {&#xa; keywordTextArea.setText(keywordTextArea.getText() + &quot;\n&quot;);&#xa; super.paste();&#xa; }&#xa;}"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new JTextArea() {&#xa; //Override the paste action for this jtext area to always insert a new line before the pasted text&#xa; @Override&#xa; public void paste() {&#xa; keywordTextArea.append(&quot;\n&quot;);&#xa; super.paste();&#xa; }&#xa;}"/>
</AuxValues>
</Component>
</SubComponents>

View File

@ -154,7 +154,7 @@ class AddKeywordsDialog extends javax.swing.JDialog {
//Override the paste action for this jtext area to always insert a new line before the pasted text
@Override
public void paste() {
keywordTextArea.setText(keywordTextArea.getText() + "\n");
keywordTextArea.append("\n");
super.paste();
}
};