Examples of IVMInstallType


Examples of org.eclipse.jdt.launching.IVMInstallType

  public IVMInstall getVMInstall() {
    if (getVMInstallTypeId() == null)
      return JavaRuntime.getDefaultVMInstall();
    try {
      IVMInstallType vmInstallType = JavaRuntime.getVMInstallType(getVMInstallTypeId());
      IVMInstall[] vmInstalls = vmInstallType.getVMInstalls();
      int size = vmInstalls.length;
      String id = getVMInstallId();
      for (int i = 0; i < size; i++) {
        if (id.equals(vmInstalls[i].getId()))
          return vmInstalls[i];
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstallType

        }

        String jreHome = System.getProperty("java.home");
        File installLocation = new File(jreHome);

        final IVMInstallType vmInstallType = JavaRuntime.getVMInstallType(StandardVMType.ID_STANDARD_VM_TYPE);
        // find an unused VM id
        String id = null;
        do {
            id = String.valueOf(System.currentTimeMillis());
        } while (vmInstallType.findVMInstall(id) != null);

        VMStandin newVm = new VMStandin(vmInstallType, id);
        newVm.setName("Default-VM");
        newVm.setInstallLocation(installLocation);
        IVMInstall realVm = newVm.convertToRealVM();
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstallType

  public IVMInstall getVMInstall() {
    if (getVMInstallTypeId() == null)
      return JavaRuntime.getDefaultVMInstall();
    try {
      IVMInstallType vmInstallType = JavaRuntime.getVMInstallType(getVMInstallTypeId());
      IVMInstall[] vmInstalls = vmInstallType.getVMInstalls();
      int size = vmInstalls.length;
      String id = getVMInstallId();
      for (int i = 0; i < size; i++) {
        if (id.equals(vmInstalls[i].getId()))
          return vmInstalls[i];
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstallType

     */
    public IVMInstall getVMInstall() {
        if (getVMInstallTypeId() == null)
            return JavaRuntime.getDefaultVMInstall();
        try {
            IVMInstallType vmInstallType = JavaRuntime.getVMInstallType(getVMInstallTypeId());
            IVMInstall[] vmInstalls = vmInstallType.getVMInstalls();
            int size = vmInstalls.length;
            String id = getVMInstallId();
            for (int i = 0; i < size; i++) {
                if (id.equals(vmInstalls[i].getId()))
                    return vmInstalls[i];
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstallType

 
    private List<IVMInstall> getWorkspaceJREs() {
      List<IVMInstall> standins = new ArrayList<IVMInstall>();
      IVMInstallType[] types = JavaRuntime.getVMInstallTypes();
      for (int i = 0; i < types.length; i++) {
        IVMInstallType type = types[i];
        IVMInstall[] installs = type.getVMInstalls();
        for (int j = 0; j < installs.length; j++) {
          IVMInstall install = installs[j];
          standins.add(new VMStandin(install));
        }
      }
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.