Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete implementations of overriding methods #4

Open
1 of 2 tasks
keskiju opened this issue Dec 27, 2015 · 2 comments
Open
1 of 2 tasks

Autocomplete implementations of overriding methods #4

keskiju opened this issue Dec 27, 2015 · 2 comments

Comments

@keskiju
Copy link
Owner

keskiju commented Dec 27, 2015

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:

  • Add information about inheritance to dictionary: JavaClassReader.readClassesByName() and JavaClassLoader._addClass()
  • Snippets as suggestions: AtomAutocompleteProvider.getSuggestions()
@keskiju
Copy link
Owner Author

keskiju commented Dec 28, 2015

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
Copy link
Owner Author

keskiju commented Dec 28, 2015

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

@keskiju keskiju changed the title Autocomplete implementations of inherited methods Autocomplete implementations of overriding methods Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant