use of org.eclipse.compare.IStreamContentAccessor in project xtext-eclipse by eclipse.
the class StreamContentDocumentProvider method createDocument.
@Override
protected IDocument createDocument(Object element) throws CoreException {
IDocument document = null;
if (element instanceof IStreamContentAccessor) {
document = createEmptyDocument();
setupDocument(element, document);
}
return document;
}
use of org.eclipse.compare.IStreamContentAccessor in project erlide_eclipse by erlang.
the class ErlContentViewer method setInput.
@Override
public void setInput(final Object input) {
if (input instanceof IStreamContentAccessor) {
final Document document = new Document(ErlContentViewer.getString(input));
// ErlangCompareUtilities.setupDocument(document);
fSourceViewer.setDocument(document);
}
fInput = input;
}
Aggregations