Bug 102821 - Exclude single file from externalization
Summary: Exclude single file from externalization
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 05:23 EDT by Erwin Tratar CLA
Modified: 2006-03-30 08:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Tratar CLA 2005-07-06 05:23:04 EDT
When you are using generated files mixed into your sources while enabling
warnings for non externalized strings you get lots of warning/errors in the
generated sources. Most often it is not possible to tweak the generation process
to add a //$NON-NLS-1$ after every generated string. However, the class comment
will probably be configurable, so having something like

//$NON-NLS$
/**
 * or
 * $NON-NLS$
 * or
 * @NON-NLS
 */
class AGeneratedClass {
...
}

could be possible to exclude single files from 
a) the warnings for non externalized strings and 
b) from the "Externalize String" Wizard
Comment 1 Philipe Mulet CLA 2005-07-06 09:28:58 EDT
Once migrating to 1.5 source level, you can specify an annotation:

@SuppressWarnings("nls")
class AGeneratedClass {
...
}
Comment 2 Philipe Mulet CLA 2006-03-30 08:19:03 EST
Closing, nothing more planned.