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 getter and setter methods #3

Open
3 tasks
keskiju opened this issue Dec 27, 2015 · 1 comment
Open
3 tasks

Autocomplete implementations of getter and setter methods #3

keskiju opened this issue Dec 27, 2015 · 1 comment

Comments

@keskiju
Copy link
Owner

keskiju commented Dec 27, 2015

User writes 'get' or 'set' while editing a class and autocomplete provides getter/setter implementation snippets for fields of a class. Also include "get/set all fields" suggestions and suggestions for constructor implementation. Maybe reuse some implementation logic from java-generator package?

Implement:

  • AtomAutocompleteProvider.getSuggestions(): Implement constructor suggestions (empty constructor, constructor with class fields as parameters).
  • AtomAutocompleteProvider.getSuggestions(): Implement getter/setter suggestions.
  • AtomAutocompleteProvider.getSuggestions(): Implement suggestion that adds getter/setter for all fields that don't have one yet.
@keskiju keskiju changed the title Autocomplete getter and setter method implementations Autocomplete implementations of getter and setter methods Dec 27, 2015
@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.

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