History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17742
Type: New Feature New Feature
Status: Open Open
Assignee: Unassigned
Reporter: Mark Derricutt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Add a new "Introduce Enum" refactoring

Created: 14 Apr 08 08:07   Updated: 14 Apr 08 08:07
Component/s: Editor. Intention Actions, Refactoring

Build: 8,291
Severity: Low


 Description  « Hide
Given some code:
guardParty("CORPORATION", (String) attributes.get("partyId"));

it would be nice to be able to select "CORPORATION" and invoke "Introduce enum" to simply create a new (or append to an existing/imported) enum with the selected value.

The new enum should be created with the selected content as a constructor argument, automatically bound to the contents type - in this instance a String.

When appending to an already imported enum, only those enums with a matching signature should be offered as viable targets.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.