Examples of IFileEditorInput


Examples of org.eclipse.ui.IFileEditorInput

   * @since 2.0
   */
  protected void doValidateState(Object element, Object computationContext) throws CoreException {

    if (element instanceof IFileEditorInput) {
      IFileEditorInput input= (IFileEditorInput) element;
      FileInfo info= (FileInfo) getElementInfo(input);
      if (info != null) {
        IFile file= input.getFile();
        if (file.isReadOnly()) { // do not use cached state here
          IWorkspace workspace= file.getWorkspace();
          info.fStatus= workspace.validateEdit(new IFile[] { file }, computationContext);
        }
        if (isDerived(file)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.