Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-ui-dev] releases 2.1


There's a new feature regarding templates. It's now possible to select a piece of code
and to wrap it with your favorite template, e.g. select the line

    System.out.println("hello");

and use code assist and select the 'if' template, you get

    if (condition)
        System.out.println("hello");        
    }

The requirement for the template is to include the ${cursor} variable, which will
be replaced by the selection content. In case there's no selection behaviour is
as before.

Thanks to Scott Rutledge for the nice feature idea.
http://dev.eclipse.org/bugs/show_bug.cgi?id=21825

-- Claude

Back to the top