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

Add support for trait, script, etc. in New Type Wizard #782

Closed
eric-milles opened this issue Dec 24, 2018 · 2 comments
Closed

Add support for trait, script, etc. in New Type Wizard #782

eric-milles opened this issue Dec 24, 2018 · 2 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

JDT has separate wizards for creating classes, interfaces, etc. If GDT follows this pattern, there will be a lot of items in the New context menu. Instead, the "New Groovy Class" wizard could be enhanced to support selection of other Groovy archetypes.

It may also be nicer to have lesser-used options on the second page of the wizard. This could reduce clutter and make room for additional Groovy-specific controls.

New Groovy Class wizard

@eric-milles eric-milles self-assigned this Dec 24, 2018
@eric-milles eric-milles added this to the v3.2.0 milestone Dec 24, 2018
@eric-milles
Copy link
Member Author

Current work in progress:

newgroovytype1

newgroovytype2

newgroovytype3

newgroovytype4

newgroovytype5

newgroovytype6

newgroovytype7

A trait created with package visibility and self type java.lang.Number:

newgroovytype8

@eric-milles
Copy link
Member Author

eric-milles commented Dec 24, 2018

TODO:

  1. Add controls for common AST Transforms like @Canonical, @EqualsAndHashCode, @InheritConstructors, @ToString, etc.
  2. Base script should only search for types that extend groovy.lang.Script
  3. Add controls for adding Inferencing Suggestions for expected script bindings
  4. Remove unused or redundant imports in created type

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