Search in sources :

Example 1 with IDocumentProviderExtension2

use of org.eclipse.ui.texteditor.IDocumentProviderExtension2 in project eclipse.platform.text by eclipse.

the class ForwardingDocumentProvider method setProgressMonitor.

@Override
public void setProgressMonitor(IProgressMonitor progressMonitor) {
    if (fParentProvider instanceof IDocumentProviderExtension2) {
        IDocumentProviderExtension2 extension = (IDocumentProviderExtension2) fParentProvider;
        extension.setProgressMonitor(progressMonitor);
    }
}
Also used : IDocumentProviderExtension2(org.eclipse.ui.texteditor.IDocumentProviderExtension2)

Example 2 with IDocumentProviderExtension2

use of org.eclipse.ui.texteditor.IDocumentProviderExtension2 in project tdq-studio-se by Talend.

the class CommonFormEditor method updateDocumentProvider.

/**
 * Provide a new DocumentProvider based on the given editor input.
 *
 * @param input the editor input.
 * @throws CoreException
 */
protected void updateDocumentProvider(IEditorInput input) throws CoreException {
    IProgressMonitor rememberedProgressMonitor = null;
    provider = new TextFileDocumentProvider();
    provider.addElementStateListener(fElementStateListener);
    IDocumentProviderExtension2 extension = (IDocumentProviderExtension2) provider;
    extension.setProgressMonitor(rememberedProgressMonitor);
    provider.connect(input);
}
Also used : IProgressMonitor(org.eclipse.core.runtime.IProgressMonitor) IDocumentProviderExtension2(org.eclipse.ui.texteditor.IDocumentProviderExtension2) TextFileDocumentProvider(org.eclipse.ui.editors.text.TextFileDocumentProvider)

Aggregations

IDocumentProviderExtension2 (org.eclipse.ui.texteditor.IDocumentProviderExtension2)2 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 TextFileDocumentProvider (org.eclipse.ui.editors.text.TextFileDocumentProvider)1