Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.IDocumentProviderExtension


  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#isReadOnly(java.lang.Object)
   */
  public boolean isReadOnly(Object element) {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      return extension.isReadOnly(element);
    }
    return false;
  }
View Full Code Here


  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#isModifiable(java.lang.Object)
   */
  public boolean isModifiable(Object element) {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      return extension.isModifiable(element);
    }
    return true;
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#validateState(java.lang.Object, java.lang.Object)
   */
  public void validateState(Object element, Object computationContext) throws CoreException {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      extension.validateState(element, computationContext);
    }
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#isStateValidated(java.lang.Object)
   */
  public boolean isStateValidated(Object element) {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      return extension.isStateValidated(element);
    }
    return true;
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#updateStateCache(java.lang.Object)
   */
  public void updateStateCache(Object element) throws CoreException {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      extension.updateStateCache(element);
    }
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#setCanSaveDocument(java.lang.Object)
   */
  public void setCanSaveDocument(Object element) {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      extension.setCanSaveDocument(element);
    }
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#getStatus(java.lang.Object)
   */
  public IStatus getStatus(Object element) {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      return extension.getStatus(element);
    }
    return null;
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#synchronize(java.lang.Object)
   */
  public void synchronize(Object element) throws CoreException {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      extension.synchronize(element);
    }
  }
View Full Code Here

   *
   */
  protected void setEditorInputModifiable() {
    IDocumentProvider provider= getDocumentProvider();
    if (provider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension) provider;
      extension.setCanSaveDocument(getEditorInput());
    }   
  }
View Full Code Here

TOP

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

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.