Skip to content

Commit fd53298

Browse files
Taking the word "Java" out of the auto complete class
1 parent 9222947 commit fd53298

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/simplejavatexteditor/JavaAutoComplete.java renamed to src/simplejavatexteditor/AutoComplete.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @author Patrick Slagle
3636
* @since 2016-12-03
3737
*/
38-
public class JavaAutoComplete
38+
public class AutoComplete
3939
implements DocumentListener {
4040

4141
private ArrayList<String> brackets = new ArrayList<>();
@@ -60,7 +60,7 @@ private enum Mode {
6060
private int pos;
6161
private String content;
6262

63-
public JavaAutoComplete(UI ui, ArrayList<String> al) {
63+
public AutoComplete(UI ui, ArrayList<String> al) {
6464
//Set the keywords
6565
words = al;
6666
kw = new SupportedKeywords();

src/simplejavatexteditor/UI.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class UI extends JFrame implements ActionListener {
6868
private final ImageIcon aboutMeIcon = new ImageIcon("icons/about_me.png");
6969
private final ImageIcon aboutIcon = new ImageIcon("icons/about.png");
7070

71-
JavaAutoComplete autocomplete;
71+
AutoComplete autocomplete;
7272
private boolean hasListener = false;
7373

7474
public UI() {
@@ -312,14 +312,14 @@ else if(e.getSource() == saveFile || e.getSource() == saveButton) {
312312
case 0:
313313
String[] jk = kw.getJavaKeywords();
314314
arrayList = kw.setKeywords(jk);
315-
autocomplete = new JavaAutoComplete(this, arrayList);
315+
autocomplete = new AutoComplete(this, arrayList);
316316
textArea.getDocument().addDocumentListener(autocomplete);
317317
hasListener = true;
318318
break;
319319
case 1:
320320
String[] ck = kw.getCppKeywords();
321321
arrayList = kw.setKeywords(ck);
322-
autocomplete = new JavaAutoComplete(this, arrayList);
322+
autocomplete = new AutoComplete(this, arrayList);
323323
textArea.getDocument().addDocumentListener(autocomplete);
324324
hasListener = true;
325325
break;

0 commit comments

Comments
 (0)