Examples of IExecutionEnvironment


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

      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

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

  @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

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

 
  @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

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

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
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.