Index: src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/document/EditorInputProxy.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui.resources.editor/src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/document/EditorInputProxy.java,v retrieving revision 1.2 diff -u -r1.2 EditorInputProxy.java --- src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/document/EditorInputProxy.java 12 Sep 2005 21:26:19 -0000 1.2 +++ src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/document/EditorInputProxy.java 13 Dec 2005 20:56:12 -0000 @@ -26,8 +26,8 @@ public class EditorInputProxy implements IEditorInput, MEditingDomainElement { - IEditorInput fProxied = null; - MEditingDomain editingDomain = null; + protected IEditorInput fProxied = null; + protected MEditingDomain editingDomain = null; /** * @param input IEditorInput Index: src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java =================================================================== RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui.resources.editor/src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java,v retrieving revision 1.7 diff -u -r1.7 DiagramDocumentEditor.java --- src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java 25 Nov 2005 19:37:53 -0000 1.7 +++ src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java 13 Dec 2005 20:56:12 -0000 @@ -325,6 +325,24 @@ } /** + * Hook method for setting the document provider for the given input. + * This default implementation does nothing. Clients may + * reimplement. + * + * @param input the input of this editor. + * @since 3.0 + */ + protected IDocumentProvider getDocumentProvider(IEditorInput input) { + IDocumentProvider provider = DocumentProviderRegistry.getDefault().getDocumentProvider(input, new IDocumentProviderSelector() { + public boolean select(String documentType) { + // Only checking of the interface name + return documentType.equals(IDiagramDocument.class.getName()); + } + }); + return provider; + } + + /** * If there is no explicit document provider set, the implicit one is * re-initialized based on the given editor input. *