View | Details | Raw Unified | Return to bug 120737 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/document/EditorInputProxy.java (-2 / +2 lines)
Lines 26-33 Link Here
26
public class EditorInputProxy
26
public class EditorInputProxy
27
	implements IEditorInput, MEditingDomainElement {
27
	implements IEditorInput, MEditingDomainElement {
28
28
29
	IEditorInput fProxied = null;
29
	protected IEditorInput fProxied = null;
30
	MEditingDomain editingDomain = null;
30
	protected MEditingDomain editingDomain = null;
31
	
31
	
32
	/**
32
	/**
33
	 * @param input IEditorInput
33
	 * @param input IEditorInput
(-)src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java (+18 lines)
Lines 325-330 Link Here
325
	}
325
	}
326
326
327
	/**
327
	/**
328
	 * Hook method for setting the document provider for the given input.
329
	 * This default implementation does nothing. Clients may
330
	 * reimplement.
331
	 *
332
	 * @param input the input of this editor.
333
	 * @since 3.0
334
	 */
335
	protected IDocumentProvider getDocumentProvider(IEditorInput input) {
336
		IDocumentProvider provider = DocumentProviderRegistry.getDefault().getDocumentProvider(input, new IDocumentProviderSelector() {
337
			public boolean select(String documentType) {
338
				// Only checking of the interface name
339
				return documentType.equals(IDiagramDocument.class.getName());
340
			}
341
		});
342
		return provider;
343
	}
344
345
	/**
328
	 * If there is no explicit document provider set, the implicit one is
346
	 * If there is no explicit document provider set, the implicit one is
329
	 * re-initialized based on the given editor input.
347
	 * re-initialized based on the given editor input.
330
	 *
348
	 *

Return to bug 120737