if (document == null) document= new Document(RefactoringMessages.JavaStatusContextViewer_no_source_available);
	public void setInput(RefactoringStatusContext context) {		if (context instanceof JavaStatusContext) {			JavaStatusContext jsc= (JavaStatusContext)context;			IDocument document= null;			if (jsc.isBinary()) {				IClassFile file= jsc.getClassFile();				IEditorInput editorInput= new InternalClassFileEditorInput(file);				document= getDocument(JavaPlugin.getDefault().getClassFileDocumentProvider(), editorInput);				if (document.getLength() == 0)					document= new Document(Messages.format(RefactoringMessages.JavaStatusContextViewer_no_source_found0, getPackageFragmentRoot(file).getElementName()));				updateTitle(file);			} else {				ICompilationUnit cunit= jsc.getCompilationUnit();				if (cunit.isWorkingCopy()) {					try {						document= newJavaDocument(cunit.getSource());					} catch (JavaModelException e) {						// document is null which is a valid input.					}				} else {					IEditorInput editorInput= new FileEditorInput((IFile)cunit.getResource());					document= getDocument(JavaPlugin.getDefault().getCompilationUnitDocumentProvider(), editorInput);				}				updateTitle(cunit);			}			setInput(document, createRegion(jsc.getSourceRange()));		} else if (context instanceof JavaStringStatusContext) {			updateTitle(null);			JavaStringStatusContext sc= (JavaStringStatusContext)context;			setInput(newJavaDocument(sc.getSource()), createRegion(sc.getSourceRange()));		}	}