Package org.eclipse.egit.ui.internal.revision

Examples of org.eclipse.egit.ui.internal.revision.FileRevisionEditorInput


    if (file instanceof IFile) {
      // if this is the current workspace file, open it
      return IDE.openEditor(page, (IFile) file, OpenStrategy
          .activateOnOpen());
    } else {
      FileRevisionEditorInput fileRevEditorInput = FileRevisionEditorInput
          .createEditorInputFor(revision, monitor);
      IEditorPart part = openEditor(page, fileRevEditorInput);
      return part;
    }
  }
View Full Code Here


   *             upon failure
   */
  public static void openTextEditor(IWorkbenchPage page,
      IFileRevision revision, IProgressMonitor monitor)
      throws CoreException {
    FileRevisionEditorInput fileRevEditorInput = FileRevisionEditorInput
        .createEditorInputFor(revision, monitor);
    openEditor(page, fileRevEditorInput, "org.eclipse.ui.DefaultTextEditor"); //$NON-NLS-1$
  }
View Full Code Here

      // want the first here.
      IResource resource = ResourceUtil.getResource(editorInput);
      if (resource != null)
        return new StructuredSelection(resource);
      if (editorInput instanceof FileRevisionEditorInput) {
        FileRevisionEditorInput fileRevisionEditorInput = (FileRevisionEditorInput) editorInput;
        IFileRevision fileRevision = fileRevisionEditorInput
            .getFileRevision();
        if (fileRevision != null)
          return new StructuredSelection(fileRevision);
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.revision.FileRevisionEditorInput

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.