Examples of segments()


Examples of org.eclipse.core.runtime.IPath.segments()

    IPath relativeTo = path.makeRelativeTo(fullPath);
    if(!relativeTo.isEmpty()) {
    sb.append("PACKAGE ");
    String pathString = "";
    for (int i = 0; i < relativeTo.segments().length; i++) {
      pathString += relativeTo.segments()[i];
      if (i < relativeTo.segments().length - 1) {
        pathString += ".";
      }
    }
    sb.append(pathString);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    if(!relativeTo.isEmpty()) {
    sb.append("PACKAGE ");
    String pathString = "";
    for (int i = 0; i < relativeTo.segments().length; i++) {
      pathString += relativeTo.segments()[i];
      if (i < relativeTo.segments().length - 1) {
        pathString += ".";
      }
    }
    sb.append(pathString);
    sb.append(";\n");
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    } catch (Throwable e) {
      Activator.logException(new Exception(e));
    }

    IPath filePath = file.getProjectRelativePath().removeFirstSegments(removeCount);
    return filePath.segments();
  }

  public static String getGwtOutputFolder() {
    return Preferences.getString(Constants.GWT_OUTPUT_PREFERENCE);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    } catch (Throwable e) {
      Activator.logException(new Exception(e));
    }
   
    IPath filePath = file.getProjectRelativePath().removeFirstSegments(removeCount);
    return filePath.segments();
  }

  public static boolean isGwtHomeSet(){
   
    boolean set= false;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    } catch (Throwable e) {
      Activator.logException(new Exception(e));
    }

    IPath filePath = iResource.getProjectRelativePath().removeFirstSegments(removeCount);
    return filePath.segments();
  }

  public static String getGwtOutputFolder() {
    return Preferences.getString(Constants.GWT_OUTPUT_PREFERENCE);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    } catch (Throwable e) {
      Activator.logException(new Exception(e));
    }
   
    IPath filePath = file.getProjectRelativePath().removeFirstSegments(removeCount);
    return filePath.segments();
  }

  public static String getGwtOutputFolder() {
    return Preferences.getString(Constants.GWT_OUTPUT_PREFERENCE);
   
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    if (tagdir.getName().equals("tags")) //$NON-NLS-1$
      record.info.shortName = "tags"; //$NON-NLS-1$
    else {
      boolean determined = false;
      IPath path = tagdirPath;
      String[] segments = path.segments();
      for (int i = 1; i < segments.length; i++) {
        if (segments[i - 1].equals("WEB-INF") && segments[i].equals("tags")) { //$NON-NLS-1$ //$NON-NLS-2$
          IPath tagdirLocalPath = path.removeFirstSegments(i + 1);
          record.info.shortName = StringUtils.replace(tagdirLocalPath.toString(), "/", "-");
          determined = true;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

    if (tagdir.getName().equals("tags")) //$NON-NLS-1$
      record.info.shortName = "tags"; //$NON-NLS-1$
    else {
      boolean determined = false;
      IPath path = tagdirPath;
      String[] segments = path.segments();
      for (int i = 1; i < segments.length; i++) {
        if (segments[i - 1].equals("WEB-INF") && segments[i].equals("tags")) { //$NON-NLS-1$ //$NON-NLS-2$
          IPath tagdirLocalPath = path.removeFirstSegments(i + 1);
          record.info.shortName = StringUtils.replace(tagdirLocalPath.toString(), "/", "-");
          determined = true;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

            }

            return null;
        } else {
            IPath rootPath = new Path(root);
            String[] segments = rootPath.segments();

            if (segments.length == 1) {
                root = ResourcesPlugin.getWorkspace().getRoot().getProject(
                        segments[0]).getLocation().toOSString();
            } else {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.segments()

        }

        if (_workspaceOnly) {
            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
            IPath path = new Path(folderName);
            String[] segments = path.segments();

            if (segments.length == 1) {
                IProject project = root.getProject(segments[0]);
                return project.exists() && project.isOpen();
            } else if (segments.length > 1) {
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.