Package org.eclipse.compare

Examples of org.eclipse.compare.IResourceProvider


        ICompareInput input = (ICompareInput) compareInput;
        if (input == null) {
            return null;
        }

        IResourceProvider rp = null;
        ITypedElement te = input.getLeft();

        if (te instanceof IResourceProvider) {
            rp = (IResourceProvider) te;
        }

        if (rp == null) {
            te = input.getRight();
            if (te instanceof IResourceProvider) {
                rp = (IResourceProvider) te;
            }
        }

        if (rp == null) {
            te = input.getAncestor();
            if (te instanceof IResourceProvider) {
                rp = (IResourceProvider) te;
            }
        }
        if (rp != null) {
            return rp.getResource();
        }
        return null;
    }
View Full Code Here


    return false;
  }

  private IResource getResource() {
    if (left instanceof IResourceProvider) {
      IResourceProvider resourceProvider = (IResourceProvider) left;
      return resourceProvider.getResource();
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.compare.IResourceProvider

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.