Package org.eclipse.jdt.launching

Examples of org.eclipse.jdt.launching.IVMInstall


      subMonitor.worked(1);
      checkCancelled(subMonitor);
      subMonitor.subTask("Configuring launch parameters...");
 
      IVMRunner runner;
      IVMInstall vm = verifyVMInstall(conf);
      runner = vm.getVMRunner(mode);
 
      String mainTypeName = getMainTypeName(conf);
      IProject project = getProject(conf);
      String[] classpath = getSpringBootClasspath(conf);
 
View Full Code Here


    IPath javadocLocation = null;
    IPath antJarLocationPath = null;
    IPath sourceLocationPath = null;
   
    try {
      IVMInstall i = JavaRuntime.getVMInstall(project);
      if( i == null ) {
        i = JavaRuntime.getDefaultVMInstall();
      }
      return getFxJarPath(i);
    } catch (CoreException e) {
View Full Code Here

      cfg.setAttribute( "org.eclipse.debug.core.ATTR_REFRESH_SCOPE", "${project}" );
      cfg.setAttribute( IAntLaunchConstants.ATTR_DEFAULT_VM_INSTALL, false );
      cfg.setAttribute( "org.eclipse.jdt.launching.MAIN_TYPE", "org.eclipse.ant.internal.launching.remote.InternalAntRunner" );
      cfg.setAttribute( "process_factory_id", "org.eclipse.ant.ui.remoteAntProcessFactory" );
     
      IVMInstall install = null;
      for ( IClasspathEntry e : project.getRawClasspath() ) {
        String start = e.getPath().segment( 0 );
        if ( start.startsWith( "org.eclipse.jdt.launching.JRE_CONTAINER") ) {
          install = JavaRuntime.getVMInstall( e.getPath() );
          cfg.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, e.getPath().toString() )
View Full Code Here

      viewer = new TableViewer( parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER );
      viewer.getControl().setLayoutData( new GridData(GridData.FILL_BOTH) );
      viewer.setContentProvider( ArrayContentProvider.getInstance() );
      viewer.setLabelProvider( new StyledCellLabelProvider() {
        public void update(ViewerCell cell) {
          IVMInstall install = (IVMInstall) cell.getElement();
          StyledString s = new StyledString( install.getName() );
          s.append( " - " + install.getInstallLocation().getAbsolutePath(), StyledString.DECORATIONS_STYLER );
          cell.setStyleRanges( s.getStyleRanges() );
          cell.setText( s.getString() );
          cell.setImage( JavaFXUIPlugin.getDefault().getImageRegistry().getDescriptor(JavaFXUIPlugin.LIBRARY_ICON).createImage() );
        }
      } );
View Full Code Here

      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));
        }
      }
      return standins;
    }
View Full Code Here

  public void updateClasspathEntries( IPath[] srcFolderPathList,  IPath[] libraryJarPathList) throws JavaModelException {
    IJavaProject jproject = this.getJavaProject();
   
    // Get a default VM to toss in the mix
    IPath containerPath = new Path(JavaRuntime.JRE_CONTAINER);
    IVMInstall vm = JavaRuntime.getDefaultVMInstall();
    IPath vmPath = containerPath.append(vm.getVMInstallType().getId()).append(vm.getName());

    // Duplicate entries cause errors, so prep them with a set
    HashSet<IClasspathEntry> entries = new HashSet<IClasspathEntry>();
   
    // VM
View Full Code Here

     
      if( env == null ) {
        continue;
      }
     
      IVMInstall vm = env.getDefaultVM();
     
      if( vm == null ) {
        for( IVMInstall i : env.getCompatibleVMs() ) {
          vm = i;
          break;
View Full Code Here

        validate();
      }
    });

    // Set default EE based on strict match to default VM
    IVMInstall defaultVM = JavaRuntime.getDefaultVMInstall();
    String[] EEChoices = eeChoice.getItems();
    for (int i = 0; i < EEChoices.length; i++) {
      if (JavaRuntime.getExecutionEnvironmentsManager().getEnvironment(EEChoices[i]).isStrictlyCompatible(defaultVM)) {
        eeChoice.select(i);
        validate();
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.launching.IVMInstall

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.