Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFolder.create()


        else
          packageFragmentPath = packageFragmentPath.append("client");//$NON-NLS-1$

        IFolder folder = javaProject.getProject().getFolder(packageFragmentPath.removeFirstSegments(1));
        if (!folder.exists())
          folder.create(true, true, null);
        packageFragment = javaProject.findPackageFragment(packageFragmentPath);
      } catch (Exception e) {
        Activator.logException(e);
      }
    }
View Full Code Here


    // create launch configuration folder
    IFolder folder = project.getFolder(LAUNCH_CONFIGURATIONS_DIR);
    if (folder.exists()) {
      folder.delete(true, null);
    }
    folder.create(true, true, null);

    // delete any existing launch configs
    ILaunchConfiguration[] configs = getHelper().getLaunchManager()
        .getLaunchConfigurations();
    for (int i = 0; i < configs.length; i++) {
View Full Code Here

        IFolder folder = (IFolder) parentPackage.getResource();
        IPath newPath = folder.getProjectRelativePath();
        newPath = newPath.append(GXT_PATH);
        IFolder newFolder = project.getFolder(newPath);
        if (!newFolder.exists()) {
          newFolder.create(false, true, null);
            }

        IPackageFragment newPackage = (IPackageFragment) JavaCore.create(newFolder);
        if (!newPackage.exists())
          newPackage.save(progress, true);
View Full Code Here

   
    IProject dbProject = Activator.getDefault().getDBProject();
    IFolder dbFolder = dbProject.getFolder(db.getName());
    monitor.worked(2);
    if (!dbFolder.exists()){
      dbFolder.create(true, true, monitor);
    }
   
    IFile coordinatesFile = dbFolder.getFile(ClusterCoordinates.FILE_NAME);
    ByteArrayInputStream in = new ByteArrayInputStream(db.toString().getBytes());
    monitor.worked(2);
View Full Code Here

        private static IFile getPropsFile(final IProject project) throws CoreException
        {
            final IFolder folder = project.getFolder(new Path(SETTINGS_DIR_NAME));
            if (!folder.exists())
            {
                folder.create(false, true, null);
            }

            final IFile file = folder.getFile(new Path(ORG_ECLIPSE_JST_JSF_DESIGNTIME_APPMGR_PREFS));

            if (!file.exists())
View Full Code Here

      if(path.lastIndexOf('/') == path.indexOf('/')){
        main = project.getFile(name);
      }else{
        IFolder folder = project.getFolder(path);
        if(!folder.exists())
          folder.create(false, false, null);
        main = folder.getFile(name)
      }
      String fpath = prj_root + System.getProperty("file.separator") + relative;
      File fin = new File(fpath);
      if(!fin.exists()){
View Full Code Here

        String[] split = onpositiveServletsPackageName.split("/");
        IFolder fld=folder;       
        for (int a=0;a<split.length;a++){         
          if (!fld.exists()){
            try {
              fld.create(true, true, new NullProgressMonitor());
            } catch (CoreException e) {
              Activator.getDefault().log(e);
           
          }
          fld=fld.getFolder(split[a]);
View Full Code Here

          }
          fld=fld.getFolder(split[a]);
       
        if (!fld.exists()){
          try {
            fld.create(true, true, new NullProgressMonitor());
          } catch (CoreException e) {
            Activator.getDefault().log(e);
         
        }
        ByteArrayOutputStream ek = new ByteArrayOutputStream();
View Full Code Here

          container = container.getParent();
        }
        IFolder folder = null;
        for (int i = 0; i < folders.size(); i++) {
          folder = (IFolder) folders.get(i);
          folder.create(true, true, null);
        }
        file.create(is, true, null);
        file.setLocal(true, 1, null);
      }
      catch (CoreException e1) {
View Full Code Here

        return Status.CANCEL_STATUS;
      }
      IFolder folder = project.getProject().getFolder(
          Constants.TOOLS_FILES_FOLDER);
      if (!folder.exists()) {
        folder.create(true, false, monitor);
      }
      String format = DateFormat.getDateTimeInstance(DateFormat.SHORT,
          DateFormat.SHORT).format(new Date());
      format = format.replace('/', '_');
      format = format.replace(':', '_');
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.