Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy


    IProject project = Util.getProject(projectName);

    Util.createModuleEntry(project, moduleName);

    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
    // workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    ILaunch compiler = workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true);
    // launch(launchConfig);

    try {
      synchronized (this) {
        int i = 0;
View Full Code Here


  public void createLaunchConfiguration(String mainHtml) throws CoreException {

    ILaunchConfigurationType type = getLaunchManager()
        .getLaunchConfigurationType(WEB_APP_TYPE);

    ILaunchConfigurationWorkingCopy config = type.newInstance(getProject()
        .getFolder(LAUNCH_CONFIGURATIONS_DIR), mainHtml);

    // Performs the configuration.
    config.setAttribute(ILaunchConfigurationConstants.IS_INTERNAL_BROWSER,
        true);
    config.setAttribute(ILaunchConfigurationConstants.PROCESS_TYPE,
        getProject().getName());
    config.setAttribute(ILaunchConfigurationConstants.APP_PATH, mainHtml
        + HTML_EXT);
    config.setAttribute(ILaunchConfigurationConstants.PROJECT,
        ATFDebugConstants.DEBUG_PROJECT_NAME);
    config.setAttribute(ILaunchConfigurationConstants.WEB_MODULE,
        ATFDebugConstants.DEBUG_PROJECT_NAME);
    config.doSave();
  }
View Full Code Here

 
  private static ILaunchConfiguration createLaunch(String moduleName, String projectName) throws CoreException {
   
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIG_TYPE);
    ILaunchConfigurationWorkingCopy copy = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(moduleName));
    copy.setAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, moduleName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
    copy.setAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, projectName);
   
    return copy.doSave();
  }
View Full Code Here

  private static ILaunchConfiguration createLaunch(String moduleName, String projectName) throws CoreException {

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIG_TYPE);
    ILaunchConfigurationWorkingCopy copy = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(moduleName));
    copy.setAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, moduleName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
    copy.setAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, projectName);

    return copy.doSave();
  }
View Full Code Here

    IProject project = Util.getProject(projectName);

    Util.createModuleEntry(project, moduleName);

    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
    // workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    ILaunch compiler = workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true);
    // launch(launchConfig);

    try {
      synchronized (this) {
        int i = 0;
View Full Code Here

        launchConfiguration = DebugServerLaunchManager
            .getLaunchConfiguration(project);
        config = launchConfiguration;

        if (launchConfiguration != null) {
          ILaunchConfigurationWorkingCopy copy = launchConfiguration
              .copy("A");
          if (!openBrowser) {
            copy.setAttribute("com.google.gwt.eclipse.core.URL", "");
          }
          ILaunch launch = copy.launch("debug", monitor);
               
          for (int a = 0; a < 300; a++) {
            p = DebugServerLaunchManager.getPort(project);
            if (p != -1) {
              result = p;
View Full Code Here

    IProject project = Util.getProject(projectName);
   
    Util.createModuleEntry(project, moduleName);
   
    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
//    workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true );
//    launch(launchConfig);
   
  }
View Full Code Here

public class XVRLaunchShortcut implements ILaunchShortcut {

  private ILaunchConfiguration createConfiguration(IResource resource){
    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
   
    try {
      ILaunchConfigurationType configType = getConfigurationType();
      wc = configType.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(resource.getProject().getName() + " Configuration"));
      //wc.setAttribute(IXVRConstants.ATTR_XVR_COMPILER, "C:\\VRMedia\\s3dc.exe");
      wc.setAttribute(IXVRConstants.ATTR_XVR_VM, "C:\\VRMedia\\XVRGlut.exe");
      //wc.setAttribute(IXVRConstants.ATTR_XVR_HEADERS, "C:\\VRMedia\\Include\n");
      wc.setAttribute(IXVRConstants.ATTR_XVR_BROWSER, "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe");
      XVRMainTab.fillConfigurationFromPath(wc, resource.getFullPath().toString());
      config = wc.doSave();
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
View Full Code Here


    if(container.exists())
      return manager.getLaunchConfiguration(container);
   
    ILaunchConfigurationWorkingCopy config;
    //try {
      config = type.newInstance(prj, name);
      config.setAttribute(XVRConstants.XVR_LAUNCH_CONFIG_PROJECT_NAME_KEY, prj.getName());
//    } catch (CoreException e) {
//      e.printStackTrace();
//      return null;
//    }
View Full Code Here

  @SuppressWarnings("deprecation")
  private ILaunchConfiguration getVdmLaunchConfig(int port)
  {
    // ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();

    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(VDM_LAUNCH_CONFIG_TYPE);// IVdmRtDebugConstants.ATTR_VDM_PROGRAM);
    try
    {
      wc = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(project.getName()));

      final String VDM_LAUNCH_CONFIG_PROJECT = "vdm_launch_config_project";
      final String VDM_LAUNCH_CONFIG_MODULE = "vdm_launch_config_module";
      final String VDM_LAUNCH_CONFIG_OPERATION = "vdm_launch_config_method";
      final String VDM_LAUNCH_CONFIG_STATIC_OPERATION = "vdm_launch_config_static_method";
      // final static String VDM_LAUNCH_CONFIG_EXPRESSION_SEPERATOR =
      // "vdm_launch_config_expression_seperator";
      final String VDM_LAUNCH_CONFIG_EXPRESSION = "vdm_launch_config_expression";

      final String VDM_LAUNCH_CONFIG_DEFAULT = "vdm_launch_config_default";

      // final String VDM_LAUNCH_CONFIG_IS_TRACE =
      // "vdm_launch_config_is_trace";

      // final String VDM_LAUNCH_CONFIG_REMOTE_CONTROL =
      // "vdm_launch_config_remote_control_class";

      // VDM RT LOG
      final String VDM_LAUNCH_CONFIG_ENABLE_REALTIME_LOGGING = "vdm_launch_config_enable_realtime_logging";

      final String VDM_LAUNCH_CONFIG_CREATE_COVERAGE = "vdm_launch_config_create_coverage";
      final String VDM_LAUNCH_CONFIG_REMOTE_DEBUG = "vdm_launch_config_remote_debug";
      // final String VDM_LAUNCH_CONFIG_VM_MEMORY_OPTION =
      // "vdm_launch_config_memory_option";
      final String VDM_LAUNCH_CONFIG_ENABLE_LOGGING = "vdm_launch_config_enable_logging";

      final String VDM_LAUNCH_CONFIG_OVERRIDE_PORT = "vdm_launch_config_override_port";

      wc.setAttribute(VDM_LAUNCH_CONFIG_PROJECT, project.getName());
      // wc.setAttribute(VDM_LAUNCH_CONFIG_CREATE_COVERAGE, true);

      wc.setAttribute(VDM_LAUNCH_CONFIG_DEFAULT, "AAA");
      wc.setAttribute(VDM_LAUNCH_CONFIG_OPERATION, "AAA" + "()");

      wc.setAttribute(VDM_LAUNCH_CONFIG_MODULE, "AAA");
      wc.setAttribute(VDM_LAUNCH_CONFIG_EXPRESSION, "new AAA().AAA()");

      wc.setAttribute(VDM_LAUNCH_CONFIG_STATIC_OPERATION, false);

      wc.setAttribute(VDM_LAUNCH_CONFIG_ENABLE_LOGGING, showDebugInfo);

      wc.setAttribute(VDM_LAUNCH_CONFIG_REMOTE_DEBUG, true);

      wc.setAttribute(VDM_LAUNCH_CONFIG_OVERRIDE_PORT, port);

      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_PRE_CHECKS, true))// vdmProject.hasPrechecks())
      {
        wc.setAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_PRE_CHECKS, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_POST_CHECKS, true))// vdmProject.hasPostchecks())
      {
        wc.setAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_POST_CHECKS, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_INV_CHECKS, true))// vdmProject.hasInvchecks())
      {
        wc.setAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_INV_CHECKS, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_DTC_CHECKS, true))// vdmProject.hasDynamictypechecks())
      {
        wc.setAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_DTC_CHECKS, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_MEASURE_CHECKS, true))// vdmProject.hasMeasurechecks())
      {
        wc.setAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_MEASURE_CHECKS, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_GENERATE_COVERAGE, true))// vdmProject.hasMeasurechecks())
      {
        wc.setAttribute(VDM_LAUNCH_CONFIG_CREATE_COVERAGE, false);
      }
      if (!configuration.getAttribute(IDebugConstants.VDM_LAUNCH_CONFIG_LOG_RT, true))// vdmProject.hasMeasurechecks())
      {
        wc.setAttribute(VDM_LAUNCH_CONFIG_ENABLE_REALTIME_LOGGING, false);
      }

    } catch (CoreException e)
    {
      DestecsDebugPlugin.logError("Failed to create vdm launch config", e);
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy

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.