Java 类org.eclipse.ui.texteditor.DocumentProviderRegistry 实例源码

项目:ermasterr    文件:ERDiagramElementStateListener.java   
public ERDiagramElementStateListener(final ERDiagramMultiPageEditor editorPart) {
    this.editorPart = editorPart;

    documentProvider = DocumentProviderRegistry.getDefault().getDocumentProvider(editorPart.getEditorInput());

    documentProvider.addElementStateListener(this);

    try {
        documentProvider.connect(editorPart.getEditorInput());
    } catch (final CoreException e) {
        ERDiagramActivator.showExceptionDialog(e);
    }
}
项目:ermaster-k    文件:ERDiagramElementStateListener.java   
public ERDiagramElementStateListener(ERDiagramMultiPageEditor editorPart) {
    this.editorPart = editorPart;

    documentProvider = DocumentProviderRegistry.getDefault()
            .getDocumentProvider(editorPart.getEditorInput());

    documentProvider.addElementStateListener(this);

    try {
        documentProvider.connect(editorPart.getEditorInput());
    } catch (CoreException e) {
        ERDiagramActivator.showExceptionDialog(e);
    }
}
项目:bts    文件:DefaultMergeEditor.java   
@Override
protected void doSetInput(IEditorInput input) throws CoreException {
    if (input != null) {
        setDocumentProvider(DocumentProviderRegistry.getDefault().getDocumentProvider(input));
    }
    super.doSetInput(input);
    inputSet = true;
}
项目:erflute    文件:ERDiagramElementStateListener.java   
public ERDiagramElementStateListener(ERFluteMultiPageEditor editorPart) {
    this.editorPart = editorPart;
    documentProvider = DocumentProviderRegistry.getDefault().getDocumentProvider(editorPart.getEditorInput());
    documentProvider.addElementStateListener(this);
    try {
        documentProvider.connect(editorPart.getEditorInput());
    } catch (final CoreException e) {
        Activator.showExceptionDialog(e);
    }
}
项目:ermaster-nhit    文件:ERDiagramElementStateListener.java   
public ERDiagramElementStateListener(ERDiagramMultiPageEditor editorPart) {
    this.editorPart = editorPart;

    documentProvider = DocumentProviderRegistry.getDefault()
            .getDocumentProvider(editorPart.getEditorInput());

    documentProvider.addElementStateListener(this);

    try {
        documentProvider.connect(editorPart.getEditorInput());
    } catch (CoreException e) {
        ERDiagramActivator.showExceptionDialog(e);
    }
}
项目:lips    文件:LipsDocumentProvider.java   
/**
 * @brief Implements the singleton pattern on LipsDocumentProvider
 *
 * @return A singleton instance to LipsDocumentProvider
 */
public static LipsDocumentProvider instance() {
    if (theInstance == null) {
        final DocumentProviderRegistry dr = DocumentProviderRegistry.getDefault();
        theInstance = (LipsDocumentProvider) dr.getDocumentProvider(EXTENSION);
        if (theInstance == null) {
            throw new IllegalStateException("No document provider found for " + EXTENSION);
        }
    }
    return theInstance;
}
项目:ermasterr    文件:TestEditor.java   
protected void setDocumentProvider(final IEditorInput input) {
    fImplicitDocumentProvider = DocumentProviderRegistry.getDefault().getDocumentProvider(input);
}
项目:ermaster-k    文件:TestEditor.java   
protected void setDocumentProvider(IEditorInput input) {
    fImplicitDocumentProvider = DocumentProviderRegistry.getDefault()
            .getDocumentProvider(input);
}
项目:ermaster-nhit    文件:TestEditor.java   
protected void setDocumentProvider(IEditorInput input) {
    fImplicitDocumentProvider = DocumentProviderRegistry.getDefault()
            .getDocumentProvider(input);
}