Community
Participate
Working Groups
When you have large blocks of Strings which you do not want to externalize, you currently have to mark each and every String separately. Like this: private String STRING_A = "string a"; //$NON-NLS-1$ private String STRING_B = "string b"; //$NON-NLS-1$ private String STRING_C = "string c"; //$NON-NLS-1$ Would it be possible to add support for a $NON-NLS-START$ and $NON-NLS-END$ tag (or something similar) so whole blocks can be marked, like this: // $NON-NLS-START$ private String STRING_A = "string a"; private String STRING_B = "string b"; private String STRING_C = "string c"; // $NON-NLS-END$
@Vikas, are you sure support for $NON-NLS is provided by JDT/UI? I know we have code in JDT/Core that implements this :)
Oops, I thought I triaged this to JDT UI, then saw it back in JDT Core. I thought I had made a mistake and triaged it back to JDT UI :-) Now moving back by JDT Core.
(In reply to Vikas Chandra from comment #2) > Oops, I thought I triaged this to JDT UI, then saw it back in JDT Core. I > thought I had made a mistake and triaged it back to JDT UI :-) > > Now moving back by JDT Core. :) You should have received a bugzilla email revealing that I did the change, didn't you? For cases of doubt, I'm sure you also know about the History link in the bugzilla header, right?
Sorry to bump this ticket, but it had no substantive reply in 4 months.
(In reply to Roel van Nuland from comment #4) > Sorry to bump this ticket, but it had no substantive reply in 4 months. Frankly, we have no plans for this atm. @SuppressWarnings("nls") could be used on the enclosing scope. Is that too broad?
For my current setup, that would be too broad. I could move all strings i do not want to externalize into a different class so i can use @SuppressWarnings("nls") and still be able to use the "externalize strings"-wizard on the original class. But having to change my class structure just to be this flexible seems a bit weird too me. Not sure what to do with this ticket now. I would like to keep it open so i can get notified when plans for such a feature are introduced if that is ok.