-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from rememberber/develop
Develop
- Loading branch information
Showing
24 changed files
with
280 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
...ol/ui/component/RegexRTextScrollPane.java → ...ent/textviewer/CommonRTextScrollPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/HostRTextScrollPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
public class HostRTextScrollPane extends CommonRTextScrollPane { | ||
// constructor | ||
public HostRTextScrollPane(HostRSyntaxTextViewer textArea) { | ||
super(textArea); | ||
|
||
updateTheme(); | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/JavaRSyntaxTextViewer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
import com.luoboduner.moo.tool.util.SystemUtil; | ||
|
||
import java.awt.*; | ||
|
||
public class JavaRSyntaxTextViewer extends CommonRSyntaxTextViewer { | ||
public JavaRSyntaxTextViewer() { | ||
|
||
setDoubleBuffered(true); | ||
|
||
updateTheme(); | ||
} | ||
|
||
@Override | ||
public void updateTheme() { | ||
super.updateTheme(); | ||
// Consolas is not available on Linux | ||
if (SystemUtil.isLinuxOs()) { | ||
setFont(new Font("Monospaced", Font.PLAIN, 14)); | ||
} else { | ||
setFont(new Font("Consolas", Font.PLAIN, 14)); | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/JavaRTextScrollPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
public class JavaRTextScrollPane extends CommonRTextScrollPane { | ||
// constructor | ||
public JavaRTextScrollPane(JavaRSyntaxTextViewer textArea) { | ||
super(textArea); | ||
|
||
updateTheme(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/JsonRTextScrollPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
public class JsonRTextScrollPane extends CommonRTextScrollPane { | ||
// constructor | ||
public JsonRTextScrollPane(JsonRSyntaxTextViewer textArea) { | ||
super(textArea); | ||
|
||
updateTheme(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...oo/tool/ui/component/PlainTextViewer.java → ...component/textviewer/PlainTextViewer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/RegexRSyntaxTextViewer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
public class RegexRSyntaxTextViewer extends CommonRSyntaxTextViewer { | ||
public RegexRSyntaxTextViewer() { | ||
|
||
setDoubleBuffered(true); | ||
|
||
updateTheme(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/luoboduner/moo/tool/ui/component/textviewer/RegexRTextScrollPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.luoboduner.moo.tool.ui.component.textviewer; | ||
|
||
public class RegexRTextScrollPane extends CommonRTextScrollPane { | ||
// constructor | ||
public RegexRTextScrollPane(RegexRSyntaxTextViewer textArea) { | ||
super(textArea); | ||
|
||
updateTheme(); | ||
} | ||
} |
Oops, something went wrong.