Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.IDocumentProviderExtension4


   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension4#getContentType(java.lang.Object)
   * @since 3.1
   */
  public IContentType getContentType(Object element) throws CoreException {
    if (fParentProvider instanceof IDocumentProviderExtension4) {
      IDocumentProviderExtension4 extension= (IDocumentProviderExtension4)fParentProvider;
      return extension.getContentType(element);
    }
    return null;
  }
View Full Code Here


    IEditorInput input= editor.getEditorInput();
    if (input == null)
      return null;
    IDocumentProvider provider= editor.getDocumentProvider();
    if (provider instanceof IDocumentProviderExtension4) {
      IDocumentProviderExtension4 ext= (IDocumentProviderExtension4) provider;
      try {
        return ext.getContentType(input);
      } catch (CoreException x) {
        // ignore and return null;
      }
    }
    return null;
View Full Code Here

    IEditorInput input= editor.getEditorInput();
    if (input == null)
      return null;
    IDocumentProvider provider= editor.getDocumentProvider();
    if (provider instanceof IDocumentProviderExtension4) {
      IDocumentProviderExtension4 ext= (IDocumentProviderExtension4) provider;
      try {
        return ext.getContentType(input);
      } catch (CoreException x) {
        // ignore and return null;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.IDocumentProviderExtension4

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.