public class SCLCompletionAssistProcessor implements IContentAssistProcessor {
// private String lastPrefix = null;
- private String lastError = "";
+ private String lastError = ""; //$NON-NLS-1$
private SCLTextEditorEnvironment sclTextEditorEnvironment;
public SCLCompletionAssistProcessor(SCLTextEditorEnvironment sclTextEditorEnvironment) {
tmpOffset = selection.getOffset() + selection.getLength();
final int offset = tmpOffset;
IDocument document = viewer.getDocument();
- String tmpPrefix = "";
+ String tmpPrefix = ""; //$NON-NLS-1$
try {
tmpPrefix = getPrefix(document, offset);
} catch (BadLocationException e) {
private static String getPrefix(IDocument doc, int offset) throws BadLocationException {
int docLen = doc.getLength();
if (doc == null || offset > docLen || docLen == 0)
- return "";
+ return ""; //$NON-NLS-1$
int length= 0;
while (--offset >= 0 && Character.isJavaIdentifierPart(doc.getChar(offset)) || doc.getChar(offset) == '.')