<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>platform-debug-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/maillist.html</link>
		<description>platform-debug-dev</description>
		<language>en-us</language>
		<pubDate>Mon, 23 Nov 2009 21:40:18 GMT</pubDate>
		<lastBuildDate>Mon, 23 Nov 2009 21:40:18 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>platform-debug-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/maillist.html</link>
		</image>
 

	<item>
		<title>[platform-debug-dev] Debug Contribution</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01587.html</link>
		<description>The map file has been updated for the following Bug changes: variables that do have a value (FIXED) (ASSIGNED) correctly when elements are inserted/removed due to IModelDelta.CONTENT (FIXED) reported during a single view refresh. (FIXED) The following proj...</description>
		<content:encoded><![CDATA[<pre>The map file has been updated for the following Bug changes:
+ Bug 200364. The 'variables view' will sometimes show 'null' values for 
variables that do have a value (FIXED)
+ Bug 290285. API for custom JDWP commands and model state refresh 
(ASSIGNED)
+ Bug 291267. [flex-hierarchy] Viewer does not preserve expansion state 
correctly when elements are inserted/removed due to IModelDelta.CONTENT 
(FIXED)
+ Bug 295585. Test failures in I20091118-1342 (FIXED)
+ Bug 295765. [flex-hierarchy] There are multiple update sequences 
reported during a single view refresh. (FIXED)

The following projects have changed:
org.eclipse.jdt.debug
org.eclipse.jdt.debug.tests
org.eclipse.debug.ui
org.eclipse.jdt.debug.ui
org.eclipse.debug.tests

Darin


</pre>]]></content:encoded>
		<pubDate>Mon, 23 Nov 2009 21:35:58 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01587.html</guid>
		<author>Darin_Wright@xxxxxxx (Darin Wright)</author>
	</item>
	<item>
		<title>RE: [platform-debug-dev] launch shortcut question</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01586.html</link>
		<description>Darin, My launch shortcut implements ILaunchShortcut2. In my environment there are two launch shortcuts that can handle C projects. When the function ContextRunner.getParticipatingLaunchConfigurations() is invoked I see that it loops through both launch sh...</description>
		<content:encoded><![CDATA[<pre>Darin, 

My launch shortcut implements ILaunchShortcut2.

In my environment there are two launch shortcuts that can handle C projects. 

When the function ContextRunner.getParticipatingLaunchConfigurations() is invoked I see that it loops through both launch shortcuts.  
Mine shortcut's ILaunchShortcut2.getLaunchConfigurations(ISelection selection) returns empty array - a configuration does not exists but can be created. 
The other shortcuts' ILaunchShortcut2.getLaunchConfigurations(ISelection selection) returns null. 

Because of the other launch shortcut' ILaunchShortcut2.getLaunchConfigurations(ISelection selection) is returning null the variable useDefault is set to true. Once that variable is set to true it will get all launches from all launch shortcuts considered compatible with the project. 
Since my launch configuration doesn't have mapped resources the function LaunchConfigurationManager.getApplicableLaunchConfigurations( null, project) will return my launch configuration. 


Looking at the use case: 
Two launch shortcuts can handle the same project - one is saying &quot;I don't have a launch configuration for this project but I can create one&quot;, the other is saying &quot;default resource mapping should be used&quot; ending up launching a launch configuration from the first launch shortcut that is not related to the project. 

I guess I was expecting a dialog to be popped up to ask the user to resolve which launch shortcut to be used - that is exactly the case if I don't have a launch configuration already created (or have one mapped to a different project). 

Is there a way I can achieve this? 

Thanks
Dobrin

-----Original Message-----
From: platform-debug-dev-bounces@xxxxxxxxxxx [<a  href="mailto:platform-debug-dev-bounces@xxxxxxxxxxx">mailto:platform-debug-dev-bounces@xxxxxxxxxxx</a>] On Behalf Of Darin Wright
Sent: November 22, 2009 11:54 AM
To: Eclipse Platform Debug component developers list.
Subject: Re: [platform-debug-dev] launch shortcut question

&gt; 
&gt; Hello, 
&gt; 
&gt; For our debugger I am implementing a launch configuration type and a
&gt; launch shortcut for that type. 
&gt; 
&gt; Some of the configurations of that type are created based on a 
&gt; project and for these configurations I call 
&gt; LaunchConfigurationWorkingCopy.setMappedResources().
&gt; 
&gt; But other configurations of the same type are based on different 
&gt; selection (an external file from a different view) so there is no 
&gt; project associated with these launch configuration instances. In 
&gt; that case I don't call 
LaunchConfigurationWorkingCopy.setMappedResources().
&gt; 
&gt; Here is the problem: 
&gt; When I select a project and click on the debug toolbar a previously 
&gt; created configuration based on external file is launched 
&gt; automatically.  Everything works fine if all my launch 
&gt; configurations had mapped resource associated with them. 
&gt; 
&gt; I traced that this behaviour is due to 
&gt; LaunchConfigurationManager.getApplicableLaunchConfigurations.
&gt; When the function is trying to find launch configurations applicable
&gt; to a specific resource it assumes that if a launch configuration 
&gt; doesn't have mapped resources the launch configuration should be 
applicable. 
&gt; 
&gt; I was wandering if there is an API that should be called so the 
&gt; launch configuration manager won't assume  configuration that 
&gt; doesn't have mapped resource will be applicable for this resource?
&gt; 
&gt; Thanks 
&gt; Dobrin_______________________________________________

You should be able to solve this by having your launch shortcut implement 
ILaunchShortcut2. This allows the shortcut to determine which existing 
configurations are applicable to a selection or active editor.

Darin 

</pre>]]></content:encoded>
		<pubDate>Mon, 23 Nov 2009 15:56:33 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01586.html</guid>
		<author>dalexiev@xxxxxxx (Alexiev, Dobrin)</author>
	</item>


	<item>
		<title>Re: [platform-debug-dev] launch shortcut question</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01585.html</link>
		<description> LaunchConfigurationWorkingCopy.setMappedResources(). applicable. You should be able to solve this by having your launch shortcut implement ILaunchShortcut2. This allows the shortcut to determine which existing configurations are applicable to a selection ...</description>
		<content:encoded><![CDATA[<pre>&gt; 
&gt; Hello, 
&gt; 
&gt; For our debugger I am implementing a launch configuration type and a
&gt; launch shortcut for that type. 
&gt; 
&gt; Some of the configurations of that type are created based on a 
&gt; project and for these configurations I call 
&gt; LaunchConfigurationWorkingCopy.setMappedResources().
&gt; 
&gt; But other configurations of the same type are based on different 
&gt; selection (an external file from a different view) so there is no 
&gt; project associated with these launch configuration instances. In 
&gt; that case I don&#xE2;t call 
LaunchConfigurationWorkingCopy.setMappedResources().
&gt; 
&gt; Here is the problem: 
&gt; When I select a project and click on the debug toolbar a previously 
&gt; created configuration based on external file is launched 
&gt; automatically.  Everything works fine if all my launch 
&gt; configurations had mapped resource associated with them. 
&gt; 
&gt; I traced that this behaviour is due to 
&gt; LaunchConfigurationManager.getApplicableLaunchConfigurations.
&gt; When the function is trying to find launch configurations applicable
&gt; to a specific resource it assumes that if a launch configuration 
&gt; doesn&#xE2;t have mapped resources the launch configuration should be 
applicable. 
&gt; 
&gt; I was wandering if there is an API that should be called so the 
&gt; launch configuration manager won&#xE2;t assume  configuration that 
&gt; doesn&#xE2;t have mapped resource will be applicable for this resource?
&gt; 
&gt; Thanks 
&gt; Dobrin_______________________________________________

You should be able to solve this by having your launch shortcut implement 
ILaunchShortcut2. This allows the shortcut to determine which existing 
configurations are applicable to a selection or active editor.

Darin 
</pre>]]></content:encoded>
		<pubDate>Sun, 22 Nov 2009 16:53:55 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01585.html</guid>
		<author>Darin_Wright@xxxxxxx (Darin Wright)</author>
	</item>


	<item>
		<title>[platform-debug-dev] launch shortcut question</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01584.html</link>
		<description> Hello,   For our debugger I am implementing a launch configuration type and a launch shortcut for that type.   Some of the configurations of that type are created based on a project and for these configurations I call LaunchConfigurationWorkingCopy.setMap...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Hello, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>For our debugger I am implementing a launch
configuration type and a launch shortcut for that type. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Some of the configurations of that type are created
based on a project and for these configurations I call LaunchConfigurationWorkingCopy.setMappedResources().<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>But other configurations of the same type are based
on different selection (an external file from a different view) so there is no
project associated with these launch configuration instances. In that case I
don&#8217;t call LaunchConfigurationWorkingCopy.setMappedResources().<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Here is the problem: <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>When I select a project and click on the debug
toolbar a previously created configuration based on external file is launched
automatically. &nbsp;Everything works fine if all my launch configurations had
mapped resource associated with them. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>I traced that this behaviour is due to LaunchConfigurationManager.getApplicableLaunchConfigurations.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>When the function is trying to find launch
configurations applicable to a specific resource it assumes that if a launch
configuration doesn&#8217;t have mapped resources the launch configuration
should be applicable. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>I was wandering if there is an API that should be
called so the launch configuration manager won&#8217;t assume &nbsp;configuration
that doesn&#8217;t have mapped resource will be applicable for this resource?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Thanks <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Dobrin<o:p></o:p></span></font></p>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 20 Nov 2009 23:05:09 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01584.html</guid>
		<author>dalexiev@xxxxxxx (Alexiev, Dobrin)</author>
	</item>


	<item>
		<title>[platform-debug-dev] Breakpoint actions support</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01583.html</link>
		<description>Hi, As we discussed on our last call I created a bugzilla and attached my first pass at moving the breakpoint action support from CDT to the Debug Platform. There is no support for the Java debugger yet and there are a few other issues to clean up but the ...</description>
		<content:encoded><![CDATA[<pre>Hi,

As we discussed on our last call I created a bugzilla and attached my first
pass at moving the breakpoint action support from CDT to the Debug Platform.
There is no support for the Java debugger yet and there are a few other
issues to clean up but the basics and APIs are there.

I'll be on vacation all next week but will respond to any feedback shortly
after I return.

Thanks - Ken

<a  href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=295658">https://bugs.eclipse.org/bugs/show_bug.cgi?id=295658</a>



</pre>]]></content:encoded>
		<pubDate>Thu, 19 Nov 2009 22:36:13 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01583.html</guid>
		<author>ken.ryall@xxxxxxx (ken.ryall)</author>
	</item>


	<item>
		<title>[platform-debug-dev] BreakpointActionType extension point enablement</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01582.html</link>
		<description> Hi,   This is a suggestion for Breakpoint Action, and since there is talk about moving this feature to Platform, I'm copying patform-debug-dev.   The CDT currently provides an extension point BreakpointActionType to define actions to execute when a breakp...</description>
		<content:encoded><![CDATA[


<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>This is a suggestion 
for Breakpoint Action, and since there is&nbsp;talk about moving this feature to 
Platform, I'm copying</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2>patform-debug-dev.</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>The CDT currently 
provides an extension point BreakpointActionType to define actions to execute 
when a breakpoint is hit.</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>I would like 
to&nbsp;add an optional 'enablement' condition to control when that ActionType 
is applicable.</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>For example, for 
Tracepoints, a different set of actions&nbsp;is applicable.&nbsp; "Resume" does 
not apply for a Tracepoint, while a new</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>"Collect" would only 
apply to Tracepoints.</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>I would add the 
standard "enablement" support with:</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>&lt;!ELEMENT 
enablement (not , and , or , instanceof , test , systemTest , equals , count , 
with , resolve , adapt , iterate , reference)*&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>I don't know how 
close this feature is to being part of Platform and if this was already 
discussed.</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial size=2>Should I go ahead 
and open a bug in CDT and make a patch for CDT?</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2>Marc</FONT></SPAN></DIV>
<DIV><SPAN class=875441115-17112009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
]]></content:encoded>
		<pubDate>Tue, 17 Nov 2009 15:22:10 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01582.html</guid>
		<author>marc.khouzam@xxxxxxx (Marc Khouzam)</author>
	</item>


	<item>
		<title>[platform-debug-dev] Debug contribution</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01581.html</link>
		<description>The map file has been updated for the following Bug changes: correctly when elements are inserted/removed due to IModelDelta.CONTENT (FIXED) respect ActionSet (FIXED) The following projects have changed: org.eclipse.debug.core org.eclipse.debug.ui org.ecli...</description>
		<content:encoded><![CDATA[<pre>The map file has been updated for the following Bug changes:
+ Bug 291267. [flex-hierarchy] Viewer does not preserve expansion state 
correctly when elements are inserted/removed due to IModelDelta.CONTENT 
(FIXED)
+ Bug 294553. toggleBreakpointsTargetFactories extension point does not 
respect ActionSet (FIXED)

The following projects have changed:
org.eclipse.debug.core
org.eclipse.debug.ui
org.eclipse.debug.tests

</pre>]]></content:encoded>
		<pubDate>Mon, 16 Nov 2009 21:05:52 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01581.html</guid>
		<author>Darin_Wright@xxxxxxx (Darin Wright)</author>
	</item>
	<item>
		<title>Re: [platform-debug-dev] Launch Templates</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01580.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Darin,</pre><br>
<tt>Yeah. It does see to me that this gets complicated. You would need to 
give users the ability to specify the applicability on a per 
attribute level in order to properly support pushing updates to the 
children of the template. You could do that via a table, but that 
would mean exposing attribute names to the user, and the typical 
users doesn't deal with attributes (and shouldn't have to, IMO, in 
order to properly make use of this new feature).</tt><br>
<br>
<tt>Seems to me these complications come to light only in the 'update' 
aspect of the feature. While I think it's a nice capability, I think 
template are still useful and worthwhile without them. Removing the 
'update' aspect also simplifies the existing proposal. You would not 
need to preserve a parent/child between a template and its offspring.</tt><br>
<br>
<pre style="margin: 0em;">John</pre><br>
<tt>At 01:36 PM 11/12/2009, Darin Wright wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">While working on the user interface for launch templates, I stumbled
across the problem described below. I've updated the WIKI (
<a  href="http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions">http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions</a>)
with this description. Any input would be appreciated. Basically, we need
to decide if it is worthwhile moving ahead with the template
implementation with this limitation.</pre><br>
<pre style="margin: 0em;">Launch configurations are relatively simple attribute/value data
structures. However, a launch configuration can use the absence of an
attribute to indicate important data. For example, when the JRE attribute
is not present for Java Application launch configurations, it indicates
that the project (or workspace) default JRE should be used (depending on
whether the configuration is associated with a project). This imposes a
limitation on template implementation: simply copying attributes from a
template to a configuration does not work for template application - as
this does not cause unspecified attributes to be removed.</pre><br>
<pre style="margin: 0em;">For example, when a configuration specifies a specific JRE and a template
specifies a default JRE (null), copying attributes will result in the
specific JRE setting to remain in the configuration. For this reason it is
important to persist &quot;null&quot; and &quot;removed&quot; values in configuration
templates. This adds to the complexity of templates - as templates will
often be incomplete. For example, a template would not often contain a
main type name to launch - that whould usually be specified by individual
configurations. So, if the template contained a null or empty main type
name, we would not want this to cause the main type name in configurations
to be wiped out.</pre><br>
<pre style="margin: 0em;">For these reasons, it is important that templates contain only the
relevant (sub)set of attributes that they define, and that null/removed
values are also persisted in the template. This also imposes restrictions
in the user interface implementation. If all launch tabs are present for a
template, all attributes will be present in that template - and
effectively override all settings its children configurations. To solve
this problem, a subset of tabs could be allowed for templates - and the
user should decide which tabs are going to be present in their template.
It also means that the effectiveness of templates depends on the existing
set of attributes grouped on each tab, as each tab will be applied in its
entirety to its children configurations. (The platform has no way of
associating attributes with launch tab controls, so this is the finest
granularity it can offer with existing APIs).</pre><br>
<pre style="margin: 0em;">Darin
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/platform-debug-dev">https://dev.eclipse.org/mailman/listinfo/platform-debug-dev</a>
</pre></blockquote><pre style="margin: 0em;"><br></pre><br>
<br>
]]></content:encoded>
		<pubDate>Mon, 16 Nov 2009 17:00:26 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01580.html</guid>
		<author>rat042@xxxxxxx (John Cortell)</author>
	</item>


	<item>
		<title>Re: [platform-debug-dev] Launch Templates</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01579.html</link>
		<description>P.S. Technically this is possible now, but some of the attribute values are just too opaque. _______________________________________________ platform-debug-dev mailing list platform-debug-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/platform-de...</description>
		<content:encoded><![CDATA[<tt>Pawel Piech wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>One common request we get from our users is that they would like to be 
able to edit the launch configurations in a plain editor.  
</tt></blockquote><tt>P.S. Technically this is possible now, but some of the attribute values 
are just too opaque.</tt><br>
<br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>This gives me an idea for a low-tech (and a somewhat crude) solution 
to this problem:  what if we gave the user an option to see and edit 
the LC templates in its raw form (as property name/value pairs).  Then 
the user could selectively look at the attributes and zero-out the 
ones that should not be in the template.<br>
Cheers<br>
Pawel</tt><br>
<br>
<tt>Darin Wright wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>While working on the user interface for launch templates, I stumbled 
across the problem described below. I've updated the WIKI (<br>
<a  href="http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions">http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions</a>) 
with this description. Any input would be appreciated. Basically, we 
need to decide if it is worthwhile moving ahead with the template 
implementation with this limitation.</tt><br>
<br>
<tt>Launch configurations are relatively simple attribute/value data 
structures. However, a launch configuration can use the absence of an 
attribute to indicate important data. For example, when the JRE 
attribute is not present for Java Application launch configurations, 
it indicates that the project (or workspace) default JRE should be 
used (depending on whether the configuration is associated with a 
project). This imposes a limitation on template implementation: 
simply copying attributes from a template to a configuration does not 
work for template application - as this does not cause unspecified 
attributes to be removed.<br>
For example, when a configuration specifies a specific JRE and a 
template specifies a default JRE (null), copying attributes will 
result in the specific JRE setting to remain in the configuration. 
For this reason it is important to persist &quot;null&quot; and &quot;removed&quot; 
values in configuration templates. This adds to the complexity of 
templates - as templates will often be incomplete. For example, a 
template would not often contain a main type name to launch - that 
whould usually be specified by individual configurations. So, if the 
template contained a null or empty main type name, we would not want 
this to cause the main type name in configurations to be wiped out.<br>
For these reasons, it is important that templates contain only the 
relevant (sub)set of attributes that they define, and that 
null/removed values are also persisted in the template. This also 
imposes restrictions in the user interface implementation. If all 
launch tabs are present for a template, all attributes will be 
present in that template - and effectively override all settings its 
children configurations. To solve this problem, a subset of tabs 
could be allowed for templates - and the user should decide which 
tabs are going to be present in their template. It also means that 
the effectiveness of templates depends on the existing set of 
attributes grouped on each tab, as each tab will be applied in its 
entirety to its children configurations. (The platform has no way of 
associating attributes with launch tab controls, so this is the 
finest granularity it can offer with existing APIs).</tt><br>
<br>
<tt>Darin<br>
_______________________________________________<br>
platform-debug-dev mailing list<br>
platform-debug-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/platform-debug-dev">https://dev.eclipse.org/mailman/listinfo/platform-debug-dev</a><br>
  
</tt></blockquote><pre style="margin: 0em;"><br>_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/platform-debug-dev">https://dev.eclipse.org/mailman/listinfo/platform-debug-dev</a>
</pre></blockquote><pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Thu, 12 Nov 2009 20:41:07 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01579.html</guid>
		<author>pawel.piech@xxxxxxx (Pawel Piech)</author>
	</item>
	<item>
		<title>Re: [platform-debug-dev] Launch Templates</title>
		<link>http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01578.html</link>
		<description> </description>
		<content:encoded><![CDATA[<tt>One common request we get from our users is that they would like to be 
able to edit the launch configurations in a plain editor.  This gives me 
an idea for a low-tech (and a somewhat crude) solution to this problem:  
what if we gave the user an option to see and edit the LC templates in 
its raw form (as property name/value pairs).  Then the user could 
selectively look at the attributes and zero-out the ones that should not 
be in the template. </tt><br>
<br>
<pre style="margin: 0em;">Cheers
Pawel</pre><br>
<tt>Darin Wright wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>While working on the user interface for launch templates, I stumbled 
across the problem described below. I've updated the WIKI (<br>
<a  href="http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions">http://wiki.eclipse.org/Debug/Plan/3.6/Launch_Templates#Design_Decisions</a>) 
with this description. Any input would be appreciated. Basically, we need 
to decide if it is worthwhile moving ahead with the template 
implementation with this limitation.</tt><br>
<br>
<tt>Launch configurations are relatively simple attribute/value data 
structures. However, a launch configuration can use the absence of an 
attribute to indicate important data. For example, when the JRE attribute 
is not present for Java Application launch configurations, it indicates 
that the project (or workspace) default JRE should be used (depending on 
whether the configuration is associated with a project). This imposes a 
limitation on template implementation: simply copying attributes from a 
template to a configuration does not work for template application - as 
this does not cause unspecified attributes to be removed. </tt><br>
<br>
<tt>For example, when a configuration specifies a specific JRE and a template 
specifies a default JRE (null), copying attributes will result in the 
specific JRE setting to remain in the configuration. For this reason it is 
important to persist &quot;null&quot; and &quot;removed&quot; values in configuration 
templates. This adds to the complexity of templates - as templates will 
often be incomplete. For example, a template would not often contain a 
main type name to launch - that whould usually be specified by individual 
configurations. So, if the template contained a null or empty main type 
name, we would not want this to cause the main type name in configurations 
to be wiped out. </tt><br>
<br>
<tt>For these reasons, it is important that templates contain only the 
relevant (sub)set of attributes that they define, and that null/removed 
values are also persisted in the template. This also imposes restrictions 
in the user interface implementation. If all launch tabs are present for a 
template, all attributes will be present in that template - and 
effectively override all settings its children configurations. To solve 
this problem, a subset of tabs could be allowed for templates - and the 
user should decide which tabs are going to be present in their template. 
It also means that the effectiveness of templates depends on the existing 
set of attributes grouped on each tab, as each tab will be applied in its 
entirety to its children configurations. (The platform has no way of 
associating attributes with launch tab controls, so this is the finest 
granularity it can offer with existing APIs).</tt><br>
<br>
<tt>Darin<br>
_______________________________________________<br>
platform-debug-dev mailing list<br>
platform-debug-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/platform-debug-dev">https://dev.eclipse.org/mailman/listinfo/platform-debug-dev</a><br>
  
</tt></blockquote><pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Thu, 12 Nov 2009 20:37:33 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg01578.html</guid>
		<author>pawel.piech@xxxxxxx (Pawel Piech)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
