Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.doSave()


          //Just in case, I am afraid this happened in some special case.
          //Anyway , if a map contains a null key will cause RunConfiguration get NPE when writing to XML.
          if(nonchecked.containsKey(null)){
            nonchecked.remove(null);
          }
          workingcopy.doSave();
          fClasspathViewer.refresh(event.getElement());
        } catch (CoreException e) {
          logger.severe("CheckStateChangedEvent - exception: " + e);
          e.printStackTrace();
        }
View Full Code Here


        try {
          ILaunchConfigurationWorkingCopy workingcopy = getWorkingCopy();

          workingcopy.setAttribute(getNonCheckedAttributeName(),
              checked);
          workingcopy.doSave();
        } catch (CoreException e) {
          logger.severe("CheckStateChangedEvent - exception: " + e);
        }
      }
    });
View Full Code Here

        RunJettyRunTab.initDefaultConfiguration(wc,
            proj == null ? null : proj.getName(), launchConfigName);

        //set mapped resource , let next time we could execute this directly from menuitem.
        wc.setMappedResources(new IResource[] {type});
        config = wc.doSave();
      }else{
        showError("Project is not a regular webapp project (missing WEB-INF)");
      }
    } catch (CoreException exception) {
      showError( exception.getStatus().getMessage());
View Full Code Here

      workCopy.setAttribute(
          ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO,
          sourceDir.getMemento());

      workCopy.doSave();
    } catch (Exception e) {
      // something wrong, skip add sources
    }
  }
View Full Code Here

        wc.setAttribute(Constants.LAUNCH_ATTR_DIR_WAR, WebUtils.getWebFolderName(project));
        wc.setAttribute(Constants.LAUNCH_ATTR_STYLE, "OBFUSCATED");
        wc.setMappedResources(new IResource[]{project});
      }
      // create configuration
      return wc.doSave();
    }
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

          }
          vmArgs += "-Xmx256m";
        }
        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs);
      }
      wc.doSave();
    }
  }
}
View Full Code Here

            // Indicating that we don't want any console to show up
            workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

            // Saving the launch configuration
            ILaunchConfiguration configuration = workingCopy.doSave();

            // Launching the launch configuration
            launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );
        }
        catch ( CoreException e )
View Full Code Here

        // Indicating that we don't want any console to show up
        workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

        // Saving the launch configuration
        ILaunchConfiguration configuration = workingCopy.doSave();

        // Launching the launch configuration
        ILaunch launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );

        // Storing the launch configuration as a custom object in the LDAP Server for later use
View Full Code Here

        // Indicating that we don't want any console to show up
        workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

        // Saving the launch configuration
        ILaunchConfiguration configuration = workingCopy.doSave();

        // Launching the launch configuration
        ILaunch launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );

        // Storing the launch configuration as a custom object in the LDAP Server for later use
View Full Code Here

            // Indicating that we don't want any console to show up
            workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

            // Saving the launch configuration
            ILaunchConfiguration configuration = workingCopy.doSave();

            // Launching the launch configuration
            launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );
        }
        catch ( CoreException e )
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.