jdt-core-home/tools/jdtcoretools/index.html
Parent Directory
|
Revision Log
Revision 1.3 - (view) (download) (as text)
| 1 : | oliviert | 1.1 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| 2 : | <html> | ||
| 3 : | <head> | ||
| 4 : | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
| 5 : | <title>JDT Core Component Development Resources</title> | ||
| 6 : | <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css"> | ||
| 7 : | </head> | ||
| 8 : | <body text="#000000" bgcolor="#FFFFFF"> | ||
| 9 : | Back to <a href="../../dev.html">JDT Core Component Development Resources page</a>. | ||
| 10 : | <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" > | ||
| 11 : | <tr> | ||
| 12 : | <td ALIGN=LEFT VALIGN=TOP COLSPAN="2" BGCOLOR="#0080C0"><b><font face="Arial,Helvetica"><font color="#FFFFFF">JDT/Core Tools</font></font></b></td> | ||
| 13 : | </tr> | ||
| 14 : | |||
| 15 : | <tr> | ||
| 16 : | <td ALIGN=RIGHT VALIGN=TOP WIDTH="2%"><img src="http://dev.eclipse.org/images/Adarrow.gif" border=0 height=16 width=16></td> | ||
| 17 : | |||
| 18 : | <td WIDTH="98%"><b>Purpose</b> | ||
| 19 : | <p>Unnecessary NLS tag remover:</p> | ||
| 20 : | <blockquote>This tool can be used remove unnecessary nls tags. It works on a java project, java package fragment root, java package fragment, | ||
| 21 : | or a compilation unit.</blockquote> | ||
| 22 : | <p>Position of DOM/AST nodes:</p> | ||
| 23 : | <blockquote>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, | ||
| 24 : | or a compilation unit.</blockquote> | ||
| 25 : | </td> | ||
| 26 : | </tr> | ||
| 27 : | |||
| 28 : | <tr> | ||
| 29 : | <td ALIGN=RIGHT VALIGN=TOP WIDTH="2%"><img src="http://dev.eclipse.org/images/Adarrow.gif" border=0 height=16 width=16></td> | ||
| 30 : | |||
| 31 : | <td WIDTH="98%"><b>What's new</b> | ||
| 32 : | <ul> | ||
| 33 : | <li>It handles nls tags within commented code</li> | ||
| 34 : | <li>It handles multiple nls tags</li> | ||
| 35 : | oliviert | 1.3 | <li>nls tags are ignored in isolated line comments like:<br> |
| 36 : | <pre> | ||
| 37 : | <code> ... | ||
| 38 : | // System.out.println(""); //$NON-NLS-1$ | ||
| 39 : | ...</code> | ||
| 40 : | </pre> | ||
| 41 : | </li> | ||
| 42 : | <li>Other nls comments are reported as unnecessary if they don't match a corresponding string literal</li> | ||
| 43 : | <li>The tool removes the unnecessary nls tags even if the line comment is used for another comment: | ||
| 44 : | <pre> | ||
| 45 : | <code>String s = "Hello, World"; //$NON-NLS-1$ This won't be removed //$NON-NLS-2$ at all</code> | ||
| 46 : | </pre> | ||
| 47 : | becomes: | ||
| 48 : | <pre> | ||
| 49 : | <code>String s = "Hello, World"; //$NON-NLS-1$ This won't be removed at all</code> | ||
| 50 : | </pre> | ||
| 51 : | </li> | ||
| 52 : | <li>It also removes the trailing whitespace when the nls tag is the only comment on a line. | ||
| 53 : | <pre> | ||
| 54 : | <code>String s = null; //$NON-NLS-1$<end of line></code> | ||
| 55 : | </pre> | ||
| 56 : | becomes: | ||
| 57 : | <pre> | ||
| 58 : | <code>String s = null;<end of line></code> | ||
| 59 : | </pre> | ||
| 60 : | </li> | ||
| 61 : | oliviert | 1.1 | </ul> |
| 62 : | |||
| 63 : | </td> | ||
| 64 : | </tr> | ||
| 65 : | |||
| 66 : | <tr> | ||
| 67 : | <td ALIGN=RIGHT VALIGN=TOP WIDTH="2%"><img src="http://dev.eclipse.org/images/Adarrow.gif" border=0 height=16 width=16></td> | ||
| 68 : | |||
| 69 : | <td WIDTH="98%"><b>Install</b> | ||
| 70 : | <p> | ||
| 71 : | oliviert | 1.2 | Use this update site.<br> |
| 72 : | <blockquote>http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core-home/tools/jdtcoretools/update-site | ||
| 73 : | </blockquote | ||
| 74 : | oliviert | 1.1 | </p> |
| 75 : | </td> | ||
| 76 : | </tr> | ||
| 77 : | </table> | ||
| 78 : | |||
| 79 : | </body> | ||
| 80 : | </html> |
| help@eclipse.org | ViewVC Help |
| Powered by ViewVC 1.0.3 |
