File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 35
35
* @author Patrick Slagle
36
36
* @since 2016-12-03
37
37
*/
38
- public class JavaAutoComplete
38
+ public class AutoComplete
39
39
implements DocumentListener {
40
40
41
41
private ArrayList <String > brackets = new ArrayList <>();
@@ -60,7 +60,7 @@ private enum Mode {
60
60
private int pos ;
61
61
private String content ;
62
62
63
- public JavaAutoComplete (UI ui , ArrayList <String > al ) {
63
+ public AutoComplete (UI ui , ArrayList <String > al ) {
64
64
//Set the keywords
65
65
words = al ;
66
66
kw = new SupportedKeywords ();
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public class UI extends JFrame implements ActionListener {
68
68
private final ImageIcon aboutMeIcon = new ImageIcon ("icons/about_me.png" );
69
69
private final ImageIcon aboutIcon = new ImageIcon ("icons/about.png" );
70
70
71
- JavaAutoComplete autocomplete ;
71
+ AutoComplete autocomplete ;
72
72
private boolean hasListener = false ;
73
73
74
74
public UI () {
@@ -312,14 +312,14 @@ else if(e.getSource() == saveFile || e.getSource() == saveButton) {
312
312
case 0 :
313
313
String [] jk = kw .getJavaKeywords ();
314
314
arrayList = kw .setKeywords (jk );
315
- autocomplete = new JavaAutoComplete (this , arrayList );
315
+ autocomplete = new AutoComplete (this , arrayList );
316
316
textArea .getDocument ().addDocumentListener (autocomplete );
317
317
hasListener = true ;
318
318
break ;
319
319
case 1 :
320
320
String [] ck = kw .getCppKeywords ();
321
321
arrayList = kw .setKeywords (ck );
322
- autocomplete = new JavaAutoComplete (this , arrayList );
322
+ autocomplete = new AutoComplete (this , arrayList );
323
323
textArea .getDocument ().addDocumentListener (autocomplete );
324
324
hasListener = true ;
325
325
break ;
You can’t perform that action at this time.
0 commit comments