1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed warnings.

Set Visibility of nested class to protected to help our friends in zOS.
This commit is contained in:
John Camelon 2005-07-14 01:51:41 +00:00
parent c683a357d4
commit 6b4de43eeb

View file

@ -482,12 +482,12 @@ public class SelectionParseAction extends Action {
break; break;
} }
case 'n': { // start of "new" case 'n': { // start of "new"
while (doc.getChar(++index) != 'w'); while (doc.getChar(++index) != 'w') {}
possibleEnd=++index; possibleEnd=++index;
break; break;
} }
case 'd': { // start of "delete" case 'd': { // start of "delete"
while (doc.getChar(++index) != 't' && doc.getChar(index+1) != 'e'); while (doc.getChar(++index) != 't' && doc.getChar(index+1) != 'e'){}
index+=2; index+=2;
possibleEnd=index; possibleEnd=index;
break; break;
@ -536,7 +536,7 @@ public class SelectionParseAction extends Action {
return sel; return sel;
} }
class SelSearchNode{ protected class SelSearchNode{
protected String selText; protected String selText;
protected int selStart; protected int selStart;
protected int selEnd; protected int selEnd;
@ -635,7 +635,7 @@ public class SelectionParseAction extends Action {
} else if (locatable instanceof ILineLocatable){ } else if (locatable instanceof ILineLocatable){
int tempstartOffset = ((ILineLocatable)locatable).getStartLine(); int tempstartOffset = ((ILineLocatable)locatable).getStartLine();
IDocument doc = ((AbstractTextEditor) part).getDocumentProvider().getDocument(part.getEditorInput());; IDocument doc = ((AbstractTextEditor) part).getDocumentProvider().getDocument(part.getEditorInput());
try { try {
//NOTE: Subtract 1 from the passed in line number because, even though the editor is 1 based, the line //NOTE: Subtract 1 from the passed in line number because, even though the editor is 1 based, the line
//resolver doesn't take this into account and is still 0 based //resolver doesn't take this into account and is still 0 based