public class DocumentProviderRegistry extends Object
plugin.xml
either
per name extension or per editor input type. A name extension
rule always overrules an editor input type rule. Editor input
type rules follow the same rules IAdapterManager
used to find object adapters.IAdapterManager
Modifier and Type | Method and Description |
---|---|
static DocumentProviderRegistry |
getDefault()
Returns the standard document provider registry.
|
IDocumentProvider |
getDocumentProvider(IEditorInput editorInput)
Returns the shared document for the type of the given editor input.
|
IDocumentProvider |
getDocumentProvider(String extension)
Returns a shared document provider for the given name extension.
|
public static DocumentProviderRegistry getDefault()
public IDocumentProvider getDocumentProvider(String extension)
extension
- the name extension to be used for lookupnull
public IDocumentProvider getDocumentProvider(IEditorInput editorInput)
editorInput
- the input for whose type the provider is looked up
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.