PBDT with basic refactoring

PBDT RefactoringPBDT has a new feature which is basic refactoring. Simply select the variable you want to rename and press Alt+Shift+R or select “Rename” from the context menu. There are currently two issues with refactoring. If the refactoring entry in the context menu is disabled please select the variable and try again. The same for the shortcut. If you want to refactor something, just select it first in the text. Once I figure out how Eclipse handles changes of the caret position I will fix that.

The second is about scopes. If you redefine a variable in a different scope the refactoring is not correct. But I guess 99% of the developers will not get in touch with this issue.
In this example i would be refactored in the outer and inner scope which is not correct.

void evaluatePixel()
{
        int i;
        
        {
        	int i;
        	i;
        }
        
        i;

        out = sampleNearest(src,outCoord());
}

One Comment

  1. Posted May 17, 2009 at 5:02 am | Permalink

    Over my head a bit, but def a good challange!
    http://www.noisydesign.com

2 Trackbacks

  1. [...] Verweis auf unser englischsprachiges FDT-Blog und das von Joa – der hat sich nämlich ein eigenes PixelBlender Development Tool geschrieben. Sein Blog besuchen, [...]

  2. By Powerflasher Blog » Die erste FDT-Erweiterung on Jul 30, 2009 at 12:37 pm

    [...] Verweis auf unser englischsprachiges FDT-Blog und das von Joa – der hat sich nämlich ein eigenes PixelBlender Development Tool geschrieben. Sein Blog [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*