Package org.eclipse.core.runtime

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


        public Boolean includeAttributes = false;
       
        public String getFullPath()
        {
            Path path = FileDialogs.checkOrDefault(directory);
            return new File(path.toFile(), fileName).getAbsolutePath();
        }
       
        /**
         * Preserve save options in a global preference key.
         */
 
View Full Code Here


                + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date())
                + ".png"));

            if (path != null)
            {
                FileUtils.moveFile(tempFile, path.toFile());
            }
        } catch (IOException e) {
            CloseableUtils.close(os);
            if (tempFile != null) tempFile.delete();
        } finally {
View Full Code Here

    // This is truly an external file, so lets get the store for it and open
    // it!

    // get our special JavaFileEditorInput
    return getJavaFileEditorInput(path.toFile());
  }

  public void dispose()
  {
  };
View Full Code Here

  private ArrayList getTemplates(){
    ArrayList templates = new ArrayList();
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
   
    Path snipBase = new Path(propertyManager.defaultSnippetsPath());
    File file = snipBase.toFile();
    logger.debug("Getting snippets from " + file.getAbsolutePath());
   
   
    //Now we iterate over the items I guess
   
View Full Code Here

    super.propertyChange(event);

    if (event.getSource() == goRootEditor) {
     
      IPath gorootPath = new Path(goRootEditor.getStringValue());
      File gorootFile  = gorootPath.toFile();

      if (gorootFile.exists() && gorootFile.isDirectory()) {
        IPath binPath = gorootPath.append("bin");
        File binFile = binPath.toFile();
View Full Code Here

   * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
   */
  @Override
  public boolean isValid(ILaunchConfiguration launchConfig) {
    IPath file = new Path(camelContextFileText.getText());
    if (file.toFile().exists() && file.toFile().isFile()) {
      setErrorMessage(null);
      return true;
    } else {
      setErrorMessage("Please select the Camel context file you want to start.");
      return false;
View Full Code Here

   * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
   */
  @Override
  public boolean isValid(ILaunchConfiguration launchConfig) {
    IPath file = new Path(camelContextFileText.getText());
    if (file.toFile().exists() && file.toFile().isFile()) {
      setErrorMessage(null);
      return true;
    } else {
      setErrorMessage("Please select the Camel context file you want to start.");
      return false;
View Full Code Here

        if (url == null) {
            Path path = javadocArtifact;
            if (path != null) {
                String u;
                try {
                    u = "jar:" + path.toFile().toURL().toExternalForm() + "!/";
                    try {
                        url = new URL(u);
                    } catch (MalformedURLException e) {
                        // this should not happen
                        IvyPlugin.log(IStatus.ERROR,
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.