Community
Participate
Working Groups
in addition to offerring to open the nls wizard qf should also offer marking a string as non-nls (very often, i do not want to open the wizard - just want to mark as non-nls) it should figure out which tag to put: non-nls-x (value of x should be determined - reuse nls scanner stuff)
can you help me on this one (maybe refactor the method that evaluates position and text for a nls-string to an edit?!)
workaround define a non-nls macro
Adam, I would also like NON-NLS to code assist for single line comments and therefore support Martin's wish for getting access (internal API) to the NLS scanner e.g. getNonNlsString(int offset, int length) or getNonNlsString(String line)
*** Bug 20201 has been marked as a duplicate of this bug. ***
added NLSScanner.scanCurrentLine(ICompilationUnit, int) it gives you back an obhect that has the information that you need to create a 'non-nls' string and position it correctly
Could I have util method? TextEdit getNonNlsString(int strigStart, int stringLength) returns null if string is NLS'd already or the edit that appends a NON-NLS string
see NLSUtil.createNLSEdit(ICompilationUnit cu, int position)
new quick fix added > 20021022