Package org.eclipse.core.runtime

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


            problemType = PROBLEM_NONE;
            boolean result = super.validateContainer();
            if (result) {
                IPath policySourcePath = getPolicySourcePath();
                if (policySourcePath != null) {
                    String policySource = policySourcePath.toOSString();

                    int index = super.getContainerFullPath().toOSString().
                            indexOf(policySource);
                    if (index < 0) {
                        Object formatArgs[] = new Object[]{policySourcePath};
View Full Code Here


      PackageInformation info = (PackageInformation) this.packages.get(key);
      Set paths = info.getPaths();
      for (Iterator iterator2 = paths.iterator(); iterator2.hasNext();) {
        IPath path = (IPath) iterator2.next();
        Element pathElement = doc.createElement(PATH_TAG);
        pathElement.setAttribute(VALUE_ATTR, path.toOSString());
        packageElement.appendChild(pathElement);
      }
      Set deps = info.getDependencies();
      for (Iterator iterator2 = deps.iterator(); iterator2.hasNext();) {
        String pkgName = (String) iterator2.next();
View Full Code Here

        dialog.showClosedProjects(false);
        dialog.open();
        Object[] results = dialog.getResult();
        if ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {
          IPath path = (IPath) results[0];
          String containerName = path.toOSString();
          outputFolderText.setText(containerName);
        }
      }
    });
View Full Code Here

    dialog.showClosedProjects(false);
    dialog.open();
    Object[] results = dialog.getResult();
    if ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {
      IPath path = (IPath) results[0];
      String containerName = path.toOSString();
      fSharedLocationText.setText(containerName);
    }
  }

  /**
 
View Full Code Here

    {
        IPath stateLocationPath = ApacheDsPlugin.getDefault().getStateLocation();

        // Libraries folder
        IPath librariesFolderPath = stateLocationPath.append( LIBRARIES_FOLDER_NAME );
        File librariesFolder = new File( librariesFolderPath.toOSString() );
        if ( !librariesFolder.exists() )
        {
            librariesFolder.mkdir();
        }
View Full Code Here

            librariesFolder.mkdir();
        }

        // Specific Apache DS folder
        IPath apacheDsFolderPath = librariesFolderPath.append( APACHEDS + "-" + server.getVersion() );
        File apacheDsFolder = new File( apacheDsFolderPath.toOSString() );
        if ( !apacheDsFolder.exists() )
        {
            apacheDsFolder.mkdir();
        }
View Full Code Here

        // Jar libraries
        for ( String apachedsLibraryFilename : getApacheDsLibraries( server ) )
        {
            IPath apachedsLibraryPath = apacheDsFolderPath.append( apachedsLibraryFilename );
            File apachedsLibrary = new File( apachedsLibraryPath.toOSString() );
            if ( !apachedsLibrary.exists() )
            {
                try
                {
                    copyLibrary( apachedsLibraryFilename, apachedsLibrary, server );
View Full Code Here

        // Checking if the Apache DS servers folder exists
        checkApacheDsServersFolder();

        // Creating the server folder
        IPath serverFolderPath = getApacheDsServersFolder().append( id );
        File serverFolder = new File( serverFolderPath.toOSString() );
        serverFolder.mkdir();

        // Creating the server sub folders
        File confFolder = new File( serverFolder, "conf" );
        confFolder.mkdir();
View Full Code Here

    }

    private String getImageSavePath() {
        IFile file = ((FileEditorInput) getEditorInput()).getFile();
        IPath path = file.getRawLocation().removeLastSegments(1).append(ParContentProvider.PROCESS_IMAGE_FILE_NAME);
        return path.toOSString();
    }

    @Override
    public void doSaveAs() {
    }
View Full Code Here

      IPath location = resource.getLocation();

       if (location != null) {
        resources.add(resource);

        fileNames.add(location.toOSString());
      }
    }

    IResource[] resourcesArray = resources.toArray(new IResource[resources.size()]);
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.