Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy


    for (ILaunchConfiguration baseConfig : input)
    {
     
      List<List<Double>> values = constructSdpValues(counterparts,baseConfig);
      for (List<Double> value : values) {
        ILaunchConfigurationWorkingCopy copy;
        try {
          copy = baseConfig.getWorkingCopy();
       
        copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
        setSharedDesignParameter(stripedName, value, copy);
        configs.add(copy);
        } catch (CoreException e) {
          e.printStackTrace();
        }
View Full Code Here


    {
      for (Double value : sdp.getValues())
      {       
        try
        {
          ILaunchConfigurationWorkingCopy copy;
          copy = baseConfig.getWorkingCopy();
          copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
          setSharedDesignParameter(sdp.getName(), value, copy);
          configs.add(copy);
        } catch (CoreException e)
        {
          DestecsDebugPlugin.log(e);         
View Full Code Here

    final Set<ILaunchConfiguration> results = new HashSet<ILaunchConfiguration>();
    try
    {
      for (ILaunchConfiguration iLaunchConf : configurations)
      {
        ILaunchConfigurationWorkingCopy copy = iLaunchConf.getWorkingCopy().copy(iLaunchConf.getName());
        copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
        results.add(copy);
      }
    } catch (CoreException e)
    {
      DestecsDebugPlugin.log( e);
View Full Code Here

    Set<ILaunchConfiguration> results = new HashSet<ILaunchConfiguration>();
   
    for (ILaunchConfiguration configuration : configurations) {
     
      for (String setting : settingsPermutations) {
        ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
        workingCopy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_20SIM_IMPLEMENTATIONS, setting);
        workingCopy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
        results.add(workingCopy);
      }
    }
   
    return results;
View Full Code Here

          {
            if(architecturesList.contains(((IFile)iResource).getName()))
            {
              for (ILaunchConfiguration iLaunchConf : configurations)
              {
                ILaunchConfigurationWorkingCopy copy = iLaunchConf.getWorkingCopy().copy(iLaunchConf.getName());
                copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_DE_ARCHITECTURE, iResource.getProjectRelativePath().toString());
                copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
                results.add(copy);
              }
            }
          }
        }
View Full Code Here

          {
            if(architecturesList.contains(((IFile)iResource).getName()))
            {
              for (ILaunchConfiguration iLaunchConf : configurations)
              {
                ILaunchConfigurationWorkingCopy copy = iLaunchConf.getWorkingCopy().copy(iLaunchConf.getName());
                copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SCENARIO_PATH, iResource.getProjectRelativePath().toString());
                copy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
                results.add(copy);
              }
            }
          }
        }
View Full Code Here

    Set<ILaunchConfiguration> results = new HashSet<ILaunchConfiguration>();
   
    for (ILaunchConfiguration configuration : configurations) {
     
      for (String setting : settingsPermutations) {
        ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
        workingCopy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_20SIM_SETTINGS, setting);
        workingCopy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
        results.add(workingCopy);
      }
    }
   
    return results;
View Full Code Here

  private ILaunchConfiguration getConfigFromProps(String fileName, Element docEle, String outputPreFix)
  {   
    String type = docEle.getAttribute("type");
    NodeList nodes = docEle.getChildNodes();
    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;
       
                insertNodeInConfig(node,wc);            
            }
      wc.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_OUTPUT_PRE_FIX, outputPreFix);
      config = wc;
    } catch (CoreException e)
    {
      DestecsDebugPlugin.logError("Failed to recreate LaunchConfig", e);     
    }
View Full Code Here

    DateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
    String outputPreFix = dateFormat.format(new Date()) + "_"
        + configuration.getName();
   
    ILaunchConfigurationWorkingCopy baseConfigWorkingCopy = baseConfig.getWorkingCopy();
    baseConfigWorkingCopy.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_CT_LEAVE_DIRTY_FOR_INSPECTION, false);

    AcaGenerator generator = new AcaGenerator(configuration, baseConfigWorkingCopy, monitor, 10, project, outputPreFix);
    generator.addGenerator(new IncludeBaseConfigAcaPlugin());
    //generator.addGenerator(new ArchitectureAcaPlugin());
    generator.addGenerator(new ArchitecturesAcaPlugin());
View Full Code Here

 
  @SuppressWarnings("rawtypes")
  private static ILaunchConfiguration createLaunchConfiguration(LaunchStoreConfig conf)
  {
    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)
        {
          wc.setAttribute(attKey.toString(), value.toString())
        }else if(value instanceof Integer)
        {
          wc.setAttribute(attKey.toString(), (Integer)value)
        }else if(value instanceof Boolean)
        {
          wc.setAttribute(attKey.toString(), (Boolean)value)
        }else if(value instanceof Map)
        {
          wc.setAttribute(attKey.toString(), (Map)value)
        }else if(value instanceof List)
        {
          wc.setAttribute(attKey.toString(), (List)value)
        }else if(value instanceof Set)
        {
          wc.setAttribute(attKey.toString(), (Set)value)
        }
       
      }
      config = wc.doSave();
    } catch (CoreException exception)
    {
      MessageDialog.openError(DestecsDebugPlugin.getActiveWorkbenchShell(), "Failed to create launch", exception.getStatus().getMessage());
    }
    return config;
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.