Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.texteditor
Class DocumentProviderRegistry


java.lang.Object
  extended by 
org.eclipse.ui.texteditor.DocumentProviderRegistry

public class DocumentProviderRegistry
extends Object

This registry manages shared document providers. Document providers are specified in 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.

See Also:
IAdapterManager
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Method Summary
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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static 
DocumentProviderRegistry getDefault()
Returns the standard document provider registry.

Returns:
the default document provider registry

getDocumentProvider

public 
IDocumentProvider getDocumentProvider(
String extension)
Returns a shared document provider for the given name extension.

Parameters:
extension - the name extension to be used for lookup
Returns:
the shared document provider or null

getDocumentProvider

public 
IDocumentProvider getDocumentProvider(
IEditorInput editorInput)
Returns the shared document for the type of the given editor input.

Parameters:
editorInput - the input for whose type the provider is looked up
Returns:
the shared document provider

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire