Eclipse中$nl$标记作用

$nl$标记表示不需要本地化,例如:
public static final IPath ICONS_PATH = new Path("$nl$/icons/full"); //$NON-NLS-1$
public static final IPath ICONS_PATH = new Path("icons/full"); //$NON-NLS-1$
上面两句代码的效果一样。
注释//$NON-NLS-1$作用上网搜索了下,表示:The string $NON-NLS-1$ is a hint for both the compiler and the Externalization wizard that the first character string on this line is a tag or keyword of some sort and should not be localized.

你可能感兴趣的:(eclipse,Path,character,compiler,icons,wizard)