struct replace and auto import

I want to change the following code

with


I can do the structure replace but the new code requires the BManager to be imported. Is there a way to do auto-import of the BManager? I do not want to use FQN for BManager since that violates the coding guidelines.

1 comment
Comment actions Permalink

Hi,

Use fully qualified name of BManager (e.g. via class name completion)
and have selected Shorten fully qualified names option (set by the default)

Vinay Moharil wrote:

I want to change the following code


with



I can do the structure replace but the new code requires the BManager to be imported. Is there a way to do auto-import of the BManager? I do not want to use FQN for BManager since that violates the coding guidelines.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.