I want to replace a general parameter - ui - by a more specific 
parameter - ui.getStatusLine().

Progressing step by step, I will
    1/ introduce the more specific parameter, and
    2/ remove the too general parameter

I expected "Change Signature" to help me with step 1, but it didn't work 
(see below).

----------------------------------------------------------------------
start/from :
-----------
        Button b = new Button (this)
     with
         Button (JFrame i_frame)..

target/to :
-----------
         Button b = new Button (this, this.getStatusLine()).
     with
         Button (JFrame i_frame, StatusLine i_statusLine)..

(and later remove /i_frame/)



I asked "Change signature" to add the new parameter /

    type           name           default value 
---------------------------------------------------------------------- 

  StatusLine    i_statusLine    i_frame.getStatusLine()


I expected IDEA to replace /i_frame/ by its value, and produce

         Button b = new Button (this, this.getStatusLine()).
                                      ^^^^
                                      expected
but I got
         Button b = new Button (this, i_frame.getStatusLine()).
                                      ^^^^^^^^
                                      WRONG


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to