autocomplete-java icon indicating copy to clipboard operation
autocomplete-java copied to clipboard

Autocomplete implementations of overriding methods

Open keskiju opened this issue 9 years ago • 2 comments

e.g. super class has a method 'someMethod(String str)'. User writes 'som' while editing inherited class and autocomplete provides boilerplate implementation as a snippet. Snippet also includes the @Override annotation.

Dictionary does not currently contain information about inheritance. Implement:

  • [x] Add information about inheritance to dictionary: JavaClassReader.readClassesByName() and JavaClassLoader._addClass()
  • [ ] Snippets as suggestions: AtomAutocompleteProvider.getSuggestions()

keskiju avatar Dec 27 '15 22:12 keskiju

Additionally provide boilerplate implementation of constructor as a snippet: e.g. user writes 'MyCla..' in a class called 'MyClass' and autocomplete provides boilerplate implementation for constructor as a snippet. Constructor parameters are determined from superclass constructor and private fields of the class.

keskiju avatar Dec 28 '15 11:12 keskiju

#3 and #4 should return suggestions only if cursor position is in 'class SomeClass { ... }' scope.

keskiju avatar Dec 28 '15 12:12 keskiju