Examples of IncludePathManager


Examples of org.eclipse.php.internal.core.includepath.IncludePathManager

    folder.create(true, true, null);
    folder = folder.getFolder("b");
    folder.create(true, true, null);

    // Add new resource to the include path:
    IncludePathManager manager = IncludePathManager.getInstance();
    IncludePath[] includePath = manager.getIncludePaths(project);
    int count = includePath.length;
    System.arraycopy(includePath, 0,
        includePath = new IncludePath[count + 1], 0, count);
    includePath[count] = new IncludePath(folder, project);

    setIncludePath(manager, includePath);
    includePath = manager.getIncludePaths(project);

    Assert.assertTrue(includePath.length == 1);
    Assert.assertFalse(includePath[0].isBuildpath());
    Assert.assertEquals(((IResource) includePath[0].getEntry()), folder);
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.includepath.IncludePathManager

          IncludePathManager.getInstance()
              .removeEntryFromIncludePath(
                  includePath.getProject(),
                  (IBuildpathEntry) (includePath.getEntry()));
        IProject proj = includePath.getProject();
        IncludePathManager manager = IncludePathManager.getInstance();
        IncludePath[] paths = manager.getIncludePaths(proj);
        List<IncludePath> entries = new ArrayList<IncludePath>();
        for (IncludePath path : paths) {
          if (!path.equals(includePath)) {
            entries.add(path);
          }
        }
        manager.setIncludePath(proj,
            entries.toArray(new IncludePath[entries.size()]));
      } catch (ModelException e) {
        Logger.logException("Could not remove buildPathEntry", e); //$NON-NLS-1$
      }
    }
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.