if (snippet.length() == 0) { selectLineForEvaluation(selection); selection= (ITextSelection) getSelectionProvider().getSelection(); snippet= selection.getText(); }
	public void evalSelection(final int resultMode) {		if (!isInJavaProject()) {			reportNotInJavaProjectError();			return;		}		if (isEvaluating()) {			return;		}		evaluationStarts();		fResultMode= resultMode;		buildAndLaunch();				if (fVM == null) {			evaluationEnds();			return;		}		fireEvalStateChanged();		ITextSelection selection= (ITextSelection) getSelectionProvider().getSelection();		String snippet= selection.getText();		if (snippet.length() == 0) {			selectLineForEvaluation(selection);			selection= (ITextSelection) getSelectionProvider().getSelection();			snippet= selection.getText();		}		fSnippetStart= selection.getOffset();		fSnippetEnd= fSnippetStart + selection.getLength();				evaluate(snippet);				}	