Community
Participate
Working Groups
Build ID: I20080330-1350 Steps To Reproduce: 1.run ImplementMethod refacotoring on the following code: class X { bool xy(const X*& x, int**** i, int = 100); }; 2. Apply it and look at the created implementation. Pointer references and const gets lost in the parameters More information: solves the following problems: * Return value doesn't lose the pointer anymore. * Parameters don't lose const reference/pointers anymore. * Refactoring now works when caret is behind semicolon of method declaration. To solve these things the way to create the method implementation had to be adapted (especially the parameter). Parameters are not anymore newly generated (synthetic) but are reused. This means that I had to use several sub-rewrites to prevent node recycling. The preview on the page became too slow by that process (was generated with every key-press-event). So I had to introduce a delay-component (getDisplay.asyncExec() wasn't enough). The DelayedJobRunner does this by delaying the execution of a job by a given time (so the generation of the preview will only be triggered when the parameter-name-typing is over).
Created attachment 102822 [details] solution for the problems desribed in the ticket description
Patch applied for 5.0 > 20080530.
assigning
done