Replace Constructor with Factory Method

Hi,

The, Replace Constructor with Factory Method, refactor uses a method name with 'create' as a prefix to the class name.  Does anyone know if it's possible to change this default name - I want to use 'getInstance' insteand?

2 comments
Comment actions Permalink

Hi Paul,

"getInstance" is one of the suggestions when you open the combo box with proposals - see attached screenshot.
Did you mean you want to be preselected by default? If so, this is not currently possible.
replaceConstructor.png
Hope that helps,
Ivaylo

0
Comment actions Permalink

Hi Ivaylo,

Yeah, I knew it was in the dialog, and I did mean for it to be the defualt option.

Thanks anyway.
Paul

0

Please sign in to leave a comment.