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

Key: IDEA-17772
Type: New Feature New Feature
Status: Open Open
Assignee: Unassigned
Reporter: Eugene Kirpichov
Votes: 0
Watchers: 1
Operations

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

"Convert constant to field" intention

Created: 15 Apr 08 19:29   Updated: 15 Apr 08 19:29
Component/s: Editor. Intention Actions, Refactoring

Build: 8,280


 Description  « Hide
Sometimes I have private static final constants that I'd like to make configurable.
I have to do this by hand, t.i. rename them from uppercase to camelcase, remove the 'static final' modifiers and introduce setters for them.

Would be nice to have an intention for that over constant fields: it should prompt:

  • whether I'd like to introduce a setter, constructor argument or none
  • whether I'd like to initialize the field in its declaration, initializer or constructor
  • name of the field, default is original name camelcased


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