Examples of segmentCount()


Examples of org.eclipse.core.runtime.Path.segmentCount()

        setErrorMessage("Debug Package File Path missing");
      else {
        Path path = new Path(name);
        File file = path.removeLastSegments(1).toFile();

        if (!path.isValidPath(name) || path.segmentCount() == 0
            || !file.exists())
          setErrorMessage("Debug Package File Path invalid");
      }

    }
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.segmentCount()

   
    // uri can be platform-specific or not ...
    if (oFileURI.isPlatform()) {
      // leaving out the first ("resource") and the last (the file name)
      StringBuffer sLocalDirectory = new StringBuffer();
      for (int i = 1; i < oFileURI.segmentCount() - 1; ++i) {
        sLocalDirectory.append(oFileURI.segment(i) + "/");
      }

      Configuration.setLocalSourceDirectory(sLocalDirectory.toString());
      Configuration.setWorkspacePath(ResourcesPlugin.getWorkspace()
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Path.segmentCount()

        dialog.setText( property.definition().getLabel( true, CapitalizationType.FIRST_WORD_ONLY, false ) );
       
        final Value<?> value = (Value<?>) property;
        final Path path = (Path) value.content();
       
        if( path != null && path.segmentCount() > 1 )
        {
            dialog.setFilterPath( path.removeLastSegments( 1 ).toOSString() );
            dialog.setFileName( path.lastSegment() );
        }
       
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.