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

Should provide create types for unresolve types(class) quick fix #853

Closed
yaohaizh opened this issue Nov 16, 2018 · 3 comments
Closed

Should provide create types for unresolve types(class) quick fix #853

yaohaizh opened this issue Nov 16, 2018 · 3 comments

Comments

@yaohaizh
Copy link
Contributor

With new resource operation, this should be doable.

@fbricon
Copy link
Contributor

fbricon commented Mar 4, 2019

@yaohaizh can you start looking into this one?

@fbricon
Copy link
Contributor

fbricon commented May 16, 2019

@yaohaizh @testforstephen any chance you guys can work on this one for the next release?

@Eskibear
Copy link
Contributor

Eskibear commented Jul 4, 2019

I'm starting to work on this recently. I find there's only one NewCUUsingWizardProposal where the "create types" logic is coupled with the UI.

I think this can be done by two steps:

Use cases should cover:

  • create simple class/enum/interface/annotation in the same package.
    • e.g. create Person when fixing Person p = new Person()
  • create type in corresponding package.
    • e.g. create Person in package foo.bar when fixing foo.bar.Person p = new foo.bar.Person()
  • create inner type.
    • e.g. create inner type Person in CurrentClass when fixing `CurrentClass.Person p = new CurrentClass.Person()'

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

4 participants