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 |
* |