Back to JDT Core Component Development Resources page.
JDT/Core Tools
Purpose

Unnecessary NLS tag remover:

This tool can be used remove unnecessary nls tags. It works on a java project, java package fragment root, java package fragment, or a compilation unit.

Position of DOM/AST nodes:

This tool can be used to check the positions of each DOM/AST nodes and its children. It works on a java project, java package fragment root, java package fragment, or a compilation unit.
What's new
  • It handles nls tags within commented code
  • It handles multiple nls tags
  • nls tags are ignored in isolated line comments like:
    		...
    		// System.out.println(""); //$NON-NLS-1$
    		...
    
  • Other nls comments are reported as unnecessary if they don't match a corresponding string literal
  • The tool removes the unnecessary nls tags even if the line comment is used for another comment:
    String s = "Hello, World"; //$NON-NLS-1$ This won't be removed //$NON-NLS-2$ at all
    
    becomes:
    String s = "Hello, World"; //$NON-NLS-1$ This won't be removed  at all
    
  • It also removes the trailing whitespace when the nls tag is the only comment on a line.
    String s = null; //$NON-NLS-1$<end of line>
    
    becomes:
    String s = null;<end of line>
    
Install

Use this update site.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core-home/tools/jdtcoretools/update-site