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);
}
}
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);
}
Aggregations