Examples of ArchiveProjectFragment


Examples of org.eclipse.dltk.internal.core.ArchiveProjectFragment

      IProjectFragment[] projectFragments = scriptProject
          .findProjectFragments(entry);

      if (projectFragments != null && projectFragments.length > 0) {
        if (projectFragments[0] instanceof ArchiveProjectFragment) {
          ArchiveProjectFragment apf = (ArchiveProjectFragment) projectFragments[0];
          boolean external = false;
          IPath apfp = apf.getPath();
          if (EnvironmentPathUtils.isFull(apfp)) {
            apfp = EnvironmentPathUtils.getLocalPath(apfp);
            external = true;
          }
          PharPath pharPath = PharPath.getPharPath(new Path(path));
          if (pharPath != null) {
            if (external
                && apfp.equals(new Path(pharPath.getPharName()))
                || !external
                && apfp.lastSegment().equals(
                    new Path(pharPath.getPharName())
                        .lastSegment())) {
              if (pharPath.isPhar()) {
                final String stubName = PharConstants.STUB_PATH;
                pharPath.setFolder(new Path(stubName)
                    .removeLastSegments(1).toString());
                pharPath.setFile(new Path(stubName)
                    .lastSegment());
              }
              IScriptFolder scriptFolder = apf
                  .getScriptFolder(new Path(pharPath
                      .getFolder()));
              try {
                IModelElement[] children = scriptFolder
                    .getChildren();
View Full Code Here

Examples of org.eclipse.dltk.internal.core.ArchiveProjectFragment

    case IBuildpathEntry.BPE_LIBRARY:
      final IProjectFragment[] findProjectFragments1 = project
          .findProjectFragments((IBuildpathEntry) entry);
      for (IProjectFragment projectFragment : findProjectFragments1) {
        if (projectFragment instanceof ArchiveProjectFragment) {
          ArchiveProjectFragment apf = (ArchiveProjectFragment) projectFragment;
          IPath path = apf.getPath();
          boolean external = false;
          if (EnvironmentPathUtils.isFull(path)) {
            path = EnvironmentPathUtils.getLocalPath(path);
            external = true;
          }
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.