use of org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.FileEditorInputProxy in project statecharts by Yakindu.
the class DiagramPartitioningDocumentProvider method setDocumentContent.
@Override
protected boolean setDocumentContent(IDocument document, IEditorInput editorInput) throws CoreException {
if (editorInput instanceof IDiagramEditorInput) {
Diagram diagram = ((IDiagramEditorInput) editorInput).getDiagram();
document.setContent(diagram);
return true;
} else if (editorInput instanceof FileEditorInputProxy) {
setDocumentContentFromStorage(document, ((FileEditorInputProxy) editorInput).getFile());
return true;
}
return super.setDocumentContent(document, editorInput);
}
Aggregations