Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationType.newInstance()


 
  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

  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);
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

    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());
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

    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";
View Full Code Here

    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
    ILaunchConfigurationType configType = getLaunchManager().getLaunchConfigurationType(type);
    try
    {
      wc = configType.newInstance(null, fileName);
     
      for(int index = 0; index < nodes.getLength(); index++){
        Node node = nodes.item(index);
                if(node.getNodeName().equals("#text"))
                  continue;
View Full Code Here

    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
    try
    {
      ILaunchConfigurationType configType = getConfigurationType(conf.type);
      wc = configType.newInstance(null, getLaunchManager().generateLaunchConfigurationName("Generated_"+conf.name));
      for ( Object attKey : conf.attributes.keySet())
      {
        Object value = conf.attributes.get(attKey.toString());
        if(value instanceof String)
        {
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.