pos= fBuffer.indexOfStatementCharacter(node.getStartPosition() + node.getLength()); if (pos != -1 && pos <= selection.getInclusiveEnd()) invalidSelection(RefactoringCoreMessages.getString("StatementAnalyzer.end_of_selection"));
pos= fBuffer.indexOfNextToken(node.getStartPosition() + node.getLength(), false); if (pos != -1 && pos <= getSelection().getInclusiveEnd()) { ISourceRange range= new SourceRange(ASTNodes.getExclusiveEnd(node), pos - ASTNodes.getExclusiveEnd(node)); invalidSelection( RefactoringCoreMessages.getString("StatementAnalyzer.end_of_selection"), JavaSourceContext.create(fCUnit, range)); }
	protected void checkSelectedNodes() {		ASTNode[] nodes= getSelectedNodes();		Selection selection= getSelection();		int pos= fBuffer.indexOfStatementCharacter(selection.getOffset());		ASTNode node= nodes[0];		if (node.getStartPosition() != pos) {			invalidSelection(RefactoringCoreMessages.getString("StatementAnalyzer.doesNotCover")); //$NON-NLS-1$			return;		}					node= nodes[nodes.length - 1];		pos= fBuffer.indexOfStatementCharacter(node.getStartPosition() + node.getLength());		if (pos != -1 && pos <= selection.getInclusiveEnd())			invalidSelection(RefactoringCoreMessages.getString("StatementAnalyzer.end_of_selection")); //$NON-NLS-1$	}