Skip to content

Commit

Permalink
Conclude decoupling of EditorPane from TextEditor
Browse files Browse the repository at this point in the history
Important if EditorPane should be used outside of the TextEditor.

Signed-off-by: squareys <squareys@googlemail.com>
  • Loading branch information
Squareys committed Aug 20, 2015
1 parent 5fb39ab commit de83ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions src/main/java/net/imagej/ui/swing/script/EditorPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@
*/
public class EditorPane extends RSyntaxTextArea implements DocumentListener {

private final TextEditor frame;

private String fallBackBaseName;
private File curFile;
private File gitDirectory;
Expand All @@ -104,17 +102,8 @@ public class EditorPane extends RSyntaxTextArea implements DocumentListener {

/**
* Constructor.
*
* @param frame TextEditor this {@link EditorPane} should belong to. Never
* <code>null</code>.
*/
public EditorPane(final TextEditor frame) {
if (frame == null) {
throw new IllegalArgumentException("frame cannot be null");
}

this.frame = frame;

public EditorPane() {
setLineWrap(false);
setTabSize(8);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public TextEditorTab(final TextEditor textEditor) {
super.setResizeWeight(350.0 / 430.0);

this.textEditor = textEditor;
editorPane = new EditorPane(textEditor);
editorPane = new EditorPane();

screen.setEditable(false);
screen.setLineWrap(true);
Expand Down

0 comments on commit de83ff0

Please sign in to comment.