Skip to content

Commit c447129

Browse files
committed
Enable autocompletion.
1 parent 156d16b commit c447129

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scijava/ui/swing/script/EditorPane.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import javax.swing.text.DefaultEditorKit;
5555

5656
import org.fife.rsta.ac.LanguageSupport;
57+
import org.fife.ui.autocomplete.AutoCompletion;
5758
import org.fife.ui.rsyntaxtextarea.RSyntaxDocument;
5859
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
5960
import org.fife.ui.rsyntaxtextarea.Style;
@@ -124,6 +125,8 @@ public EditorPane() {
124125
wordMovement(-1, true));
125126
ToolTipManager.sharedInstance().registerComponent(this);
126127
getDocument().addDocumentListener(this);
128+
129+
new AutoCompletion(new AutocompletionProvider(this)).install(this);
127130
}
128131

129132
@Override

0 commit comments

Comments
 (0)