Package org.eclipse.jdt.launching.environments

Examples of org.eclipse.jdt.launching.environments.IExecutionEnvironment


  public static IVMInstall findVMInstallById(String id) {
    if (id != null) {
      if (id.equals(DEFAULT_INSTANCE_ID)) {
        return JavaRuntime.getDefaultVMInstall();
      } else {
        IExecutionEnvironment environment = JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(id);
        if (environment != null) {
          return environment.getDefaultVM();
        }
      }
    }       
    return null;
  }
View Full Code Here


  public static WGAExecutionEnvironment findById(String id) {
    if (id != null) {
      if (id.equals(DEFAULT_INSTANCE_ID)) {
        return DEFAULT_INSTANCE;
      } else {
        IExecutionEnvironment environment = JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(id);
        if (environment != null) {
          return new WGAExecutionEnvironment(environment);
        }
      }
    }       
View Full Code Here

            acceptor.accept(_createCompletionProposal);
          }
        };
        IterableExtensions.<String>forEach(((Iterable<String>)Conversions.doWrapArray(_knownOSArchValues)), _function_2);
      }
      IExecutionEnvironment _executionEnvironment = env.getExecutionEnvironment();
      boolean _equals_3 = Objects.equal(_executionEnvironment, null);
      if (_equals_3) {
        final IExecutionEnvironmentsManager eeManager = JavaRuntime.getExecutionEnvironmentsManager();
        boolean _notEquals = (!Objects.equal(eeManager, null));
        if (_notEquals) {
View Full Code Here

              String _id = it.getId();
              String _upperCase = _id.toUpperCase();
              return Boolean.valueOf(_upperCase.equals(env));
            }
          };
          final IExecutionEnvironment ee = IterableExtensions.<IExecutionEnvironment>findFirst(((Iterable<IExecutionEnvironment>)org.eclipse.xtext.xbase.lib.Conversions.doWrapArray(_executionEnvironments)), _function_3);
          boolean _notEquals_1 = (!Objects.equal(ee, null));
          if (_notEquals_1) {
            return ee;
          }
        }
View Full Code Here

      Assert.assertEquals("motif", _windowingSystem);
      Locale _locale = new Locale("en", "us");
      Locale _localization = env.getLocalization();
      Assert.assertEquals(_locale, _localization);
      IExecutionEnvironmentsManager _executionEnvironmentsManager = JavaRuntime.getExecutionEnvironmentsManager();
      IExecutionEnvironment _environment = _executionEnvironmentsManager.getEnvironment("JavaSE-1.7");
      IExecutionEnvironment _executionEnvironment = env.getExecutionEnvironment();
      Assert.assertEquals(_environment, _executionEnvironment);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  @Override
  protected void saveJreInRuntime(IRuntimeWorkingCopy wc) {
    IKarafRuntimeWorkingCopy srt = (IKarafRuntimeWorkingCopy) wc.loadAdapter(
        IKarafRuntimeWorkingCopy.class, new NullProgressMonitor());
    if( srt != null ) {
      IExecutionEnvironment selectedEnv = jreComposite.getSelectedExecutionEnvironment();
      IVMInstall selectedVM = jreComposite.getSelectedVM();
      srt.setVM(selectedVM);
      srt.setExecutionEnvironment(selectedEnv);
    }
  }
View Full Code Here

 
  @Override
  public List<IClasspathEntry> getInitialEntries(BundleDescription project) {
    System.err.println("LOADING INITIAL ENTRIES");
    for( String e : project.getExecutionEnvironments() ) {
      IExecutionEnvironment env = JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(e);
      System.err.println("Searching in ENV " + env);
     
      if( env == null ) {
        continue;
      }
     
      // Check the default VM
      if( env.getDefaultVM() != null ) {
        if( onExtPath(env.getDefaultVM()) ) {
          return Collections.emptyList();
        } else {
          IClasspathEntry cpe = getEntry(env.getDefaultVM(), project);
          if( cpe != null ) {
            return Collections.singletonList(cpe);
          }
        }
      }
     
      // Check compatible VMs
      for( IVMInstall vm : env.getCompatibleVMs() ) {
        if( env.isStrictlyCompatible(vm) ) {
          if( onExtPath(vm) ) {
            return Collections.emptyList();
          } else {
            IClasspathEntry cpe = getEntry(vm, project);
            if( cpe != null ) {
View Full Code Here

public class JavaFXClassPathExtender implements IClasspathContributor {

  @Override
  public List<IClasspathEntry> getInitialEntries(BundleDescription project) {
    for( String e : project.getExecutionEnvironments() ) {
      IExecutionEnvironment env = EnvironmentsManager.getDefault().getEnvironment(e);
     
      if( env == null ) {
        continue;
      }
     
      IVMInstall vm = env.getDefaultVM();
     
      if( vm == null ) {
        for( IVMInstall i : env.getCompatibleVMs() ) {
          vm = i;
          break;
        }
      }
     
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.launching.environments.IExecutionEnvironment

Copyright © 2018 www.massapicom. 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.