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

Create an advanced refactoring wizard #10

Open
GoogleCodeExporter opened this issue Jun 4, 2015 · 5 comments
Open

Create an advanced refactoring wizard #10

GoogleCodeExporter opened this issue Jun 4, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

The EnumerizationComputer only returns the absolute minimal sets corresponding 
to how the 
enums should be grouped. It may be possible that the developer wants to group 
these groups into 
larger groups. For example, the computer may return two sets consisting of the 
program elements 
((RED, GREEN, BLUE),(ORANGE, color)) where the capitalized names are constants 
and color a local 
variable. The developer may wish to group these two sets together to make a 
COLOR enum type.

Original issue reported on code.google.com by raffi.t.khatchadourian on 25 Aug 2009 at 7:07

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by raffi.t.khatchadourian on 28 Aug 2009 at 1:13

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Contributor Author

Each time the grouping is altered, the pre-conditions for the refactoring 
should be rechecked. I don't know, 
however, if this should be done by the wizard or the refactoring itself.

Original comment by raffi.t.khatchadourian on 1 Sep 2009 at 12:36

@GoogleCodeExporter
Copy link
Contributor Author

Issue 23 has been merged into this issue.

Original comment by raffi.t.khatchadourian on 21 Apr 2010 at 3:49

@GoogleCodeExporter
Copy link
Contributor Author

As I'm looking over this stuff now, the reason why we have been having so much 
trouble making head way with the refactoring wizard is that, unlike the "new 
enum" wizard, this wizard can result in the creation of multiple enum types. 
That is, the refactoring groups the input constants into their minimal type 
dependent sets (where changing one member of the set requires refactoring all 
other members) and proceeds to refactor each of these sets into its own enum 
type. An alternative thing to do would be to group the constants into their 
maximal sets instead and let the user break them down. In either case, the 
wizard should allow the user to:

1. Merge and split the constant grouping, checking the initial preconditions 
each time.
2. Specify the names and packages for multiple enum types to be created.

Original comment by raffi.t.khatchadourian on 10 Oct 2010 at 11:54

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by raffi.t.khatchadourian on 10 Oct 2010 at 11:55

  • Changed title: Create an advanced refactoring wizard

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