• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision9e1b6fe609c53166c39913064663f5b75bccc585 (tree)
Time2015-12-25 16:05:57
AuthorMirrgie Riana @ Kurilab ASUS
CommiterMirrgie Riana @ Kurilab ASUS

Log Message

FrameFormula: use: rsyntaxtextarea

Change Summary

Incremental Difference

diff -r cc6ab3f9bcc1 -r 9e1b6fe609c5 projects/mirrg.game.math.wulfenite/build.gradle
--- a/projects/mirrg.game.math.wulfenite/build.gradle Tue Nov 17 18:13:07 2015 +0900
+++ b/projects/mirrg.game.math.wulfenite/build.gradle Fri Dec 25 16:05:57 2015 +0900
@@ -20,6 +20,7 @@
2020 testCompile group: 'junit', name: 'junit', version: '4.+'
2121
2222 compile 'org.eclipse.jdt:org.eclipse.jdt.annotation:2.0.0'
23+ compile group: 'com.fifesoft', name: 'rsyntaxtextarea', version: 'r239'
2324
2425 compile group: 'mirrg', name: 'mirrg.struct.hydrogen-1.0', version: '+'
2526 compile group: 'mirrg', name: 'mirrg.swing.neon-1.1', version: '+'
diff -r cc6ab3f9bcc1 -r 9e1b6fe609c5 projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/FrameFormula.java
--- a/projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/FrameFormula.java Tue Nov 17 18:13:07 2015 +0900
+++ b/projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/FrameFormula.java Fri Dec 25 16:05:57 2015 +0900
@@ -2,6 +2,7 @@
22
33 import java.awt.CardLayout;
44 import java.awt.Color;
5+import java.awt.Font;
56 import java.io.BufferedReader;
67 import java.io.ByteArrayOutputStream;
78 import java.io.File;
@@ -25,6 +26,9 @@
2526 import javax.swing.event.DocumentListener;
2627 import javax.swing.filechooser.FileNameExtensionFilter;
2728
29+import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
30+import org.fife.ui.rsyntaxtextarea.SyntaxConstants;
31+
2832 import mirrg.event.nitrogen.api.v1_0.INitrogenEventRegistry;
2933 import mirrg.game.math.wulfenite.v0_1.events.NitrogenEventWulfenite;
3034 import mirrg.game.math.wulfenite.v0_1.events.NitrogenEventWulfeniteFrameFormula;
@@ -39,7 +43,7 @@
3943 private static final long serialVersionUID = -69686069227706495L;
4044
4145 protected INitrogenEventRegistry eventRegistry;
42- protected JTextArea textAreaSource;
46+ protected RSyntaxTextArea textAreaSource;
4347 protected JTextArea textAreaShow;
4448
4549 protected String titleBase;
@@ -213,7 +217,18 @@
213217 splitPane.setResizeWeight(0.5);
214218
215219 {
216- textAreaSource = new JTextArea();
220+ textAreaSource = new RSyntaxTextArea();
221+ textAreaSource.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT);
222+ textAreaSource.setText("");
223+ textAreaSource.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
224+ textAreaSource.setWhitespaceVisible(false);
225+ textAreaSource.setMarginLineEnabled(false);
226+ textAreaSource.setEOLMarkersVisible(false);
227+ textAreaSource.setFadeCurrentLineHighlight(false);
228+ textAreaSource.setHighlightCurrentLine(false);
229+ textAreaSource.setMarkOccurrences(true);
230+ textAreaSource.setRoundedSelectionEdges(true);
231+
217232 splitPane.add(new JScrollPane(textAreaSource));
218233 textAreaSource.getDocument().addDocumentListener(new DocumentListener() {
219234