Package org.eclipse.core.runtime

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


    } 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

    } 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

    } 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

    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

    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

            }

            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

        }

        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

                    return MessageFormat.format("Invalid path: {0}", new Object[]{"null"}); //$NON-NLS-1$
                }
                if (!path.isAbsolute() || !path.isValidPath(path.toString())) {
          return MessageFormat.format("Invalid path: {0}", new Object[]{path.toOSString()});
        }
        String[] segments = path.segments();
        StringBuffer displayPath = new StringBuffer();
        if (segments.length > 0) {
          String device = path.getDevice();
          if (device != null) {
            displayPath.append(device);
View Full Code Here

                    return MessageFormat.format("Invalid path: {0}", new Object[]{"null"}); //$NON-NLS-1$
                }
                if (!path.isAbsolute() || !path.isValidPath(path.toString())) {
          return MessageFormat.format("Invalid path: {0}", new Object[]{path.toOSString()});
        }
        String[] segments = path.segments();
        StringBuffer displayPath = new StringBuffer();
        if (segments.length > 0) {
          String device = path.getDevice();
          if (device != null) {
            displayPath.append(device);
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.