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

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


  }

  private ITypedElement getTypedElement(FileNode node, IFileRevision fileRevision, String versionName) {
    if (fileRevision instanceof LocalFileRevision) {
      LocalFileRevision localFileRevision = (LocalFileRevision) fileRevision;
      return new ResourceEditableRevision(fileRevision, localFileRevision.getFile(), PlatformUI.getWorkbench().getProgressService());
    } else if (fileRevision == null) {
      return new GitCompareFileRevisionEditorInput.EmptyTypedElement(
          NLS.bind(
              UIText.CompareTreeView_ItemNotFoundInVersionMessage,
              node.getPath(), versionName));
View Full Code Here


      Object selectedEdition = getSelectedEdition();
      if (selectedEdition instanceof DiffNode) {
        DiffNode diffNode = (DiffNode) selectedEdition;
        ITypedElement element = diffNode.getLeft();
        if (element instanceof ResourceEditableRevision) {
          ResourceEditableRevision resourceRevision = (ResourceEditableRevision) element;
          return resourceRevision.getFile();
        }
      }
    }
    return super.getAdapter(adapter);
  }
View Full Code Here

        if (runnableContext == null)
          runnableContext = PlatformUI.getWorkbench().getProgressService();

        EditableRevision leftEditable;
        if (file != null)
          leftEditable = new ResourceEditableRevision(rev, file,
              runnableContext);
        else
          leftEditable = new LocationEditableRevision(rev, location,
              runnableContext);
        // make sure we don't need a round trip later
View Full Code Here

TOP

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

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.