<?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>cdt-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/maillist.html</link>
		<description>cdt-dev</description>
		<language>en-us</language>
		<pubDate>Tue, 22 May 2012 07:21:35 GMT</pubDate>
		<lastBuildDate>Tue, 22 May 2012 07:21:35 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>cdt-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/cdt-dev/maillist.html</link>
		</image>
 

	<item>
		<title>Re: [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24443.html</link>
		<description> Hi,   I&amp;#xE2;d suggest to look into the extension point &amp;#xE2;org.eclipse.cdt.ui.completionProposalComputer&amp;#xE2;. All internal completion proposal computers are in fact implementations of this extension point. The &amp;#xE2;InclusionProposalComputer2; class and its plugin.xml e...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">One possible trap is that you need to export the package of your class such that it can be instantiated by cdt.ui.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">You can do this on the Runtime tab of the plugin manifest editor.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Toni<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
<b>On Behalf Of </b>Lambros Petrou<br>
<b>Sent:</b> Monday, May 21, 2012 18:49<br>
<b>To:</b> CDT General developers list.<br>
<b>Subject:</b> Re: [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Yes, I have been looking at&nbsp;&nbsp;InclusionProposalComputer&nbsp; since your reply and I have a draft ready but it seems there is a probem. How can I check if my plugin is enabled and i use, because I am trying the pragmas and nothing comes up in
 the suggestions.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">My plugin.xml is like this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;?eclipse version=&quot;3.4&quot;?&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;plugin&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;extension<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id=&quot;DDMPragmasProposalComputer&quot;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; point=&quot;org.eclipse.cdt.ui.completionProposalComputer&quot;&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp;&lt;completionProposalComputer<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;categoryId=&quot;org.eclipse.cdt.ui.parserProposalCategory&quot;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;class=&quot;ddmcontentassistance.DDMPragmasProposalComputer&quot;&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;partition type=&quot;__c_preprocessor&quot;/&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/completionProposalComputer&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp; &lt;/extension&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;/plugin&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 21 May 2012 09:57, Leherbauer, Anton (Toni) &lt;<a href="mailto:Anton.Leherbauer@xxxxxxxxxxxxx" target="_blank">Anton.Leherbauer@xxxxxxxxxxxxx</a>&gt; wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I&#xE2;d suggest to look into the extension point &#xE2;org.eclipse.cdt.ui.completionProposalComputer&#xE2;.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">All internal completion proposal computers are in fact implementations of this extension point.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The &#xE2;InclusionProposalComputer&#xE2; class and its plugin.xml extension snippet might provide some boilerplate
 code to get you started.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">HTH</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Toni</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:cdt-dev-bounces@xxxxxxxxxxx" target="_blank">cdt-dev-bounces@xxxxxxxxxxx</a> [mailto:<a href="mailto:cdt-dev-bounces@xxxxxxxxxxx" target="_blank">cdt-dev-bounces@xxxxxxxxxxx</a>]
<b>On Behalf Of </b>Lambros Petrou<br>
<b>Sent:</b> Sunday, May 20, 2012 19:17<br>
<b>To:</b> <a href="mailto:cdt-dev@xxxxxxxxxxx" target="_blank">cdt-dev@xxxxxxxxxxx</a><br>
<b>Subject:</b> [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p>I am trying to extend the C/C&#43;&#43; language in Eclipse CDT in order to have auto-complete (Content Assist) for some custom commands ( mostly pragmas ).<o:p></o:p></p>
<p>Let's say I have the command:&nbsp;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma IAM THE_CUSTOM_COMMAND&nbsp;</span></strong><em><b><span style="border:none windowtext 1.0pt;padding:0in">var1 var2</span></b></em><o:p></o:p></p>
<p>I' d like to make a plugin in order to have the ability the moment I type in&nbsp;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma</span></strong>&nbsp;and then SPACE to show the possible commands I have like when I am using regular functions.
 And if I press enter on one of the suggestions the whole command should be pasted with the default values in the variables.<o:p></o:p></p>
<p>I tried reading in the Eclipse FAQ and found many tutorials online but I only found how to make a completely new editor supporting my commands.<o:p></o:p></p>
<p>I just need to add 20-30 pragmas like this in the CDT editor currently being used in Eclipse.<o:p></o:p></p>
<p>I read that there is an Extension Point for CDT Language and if I could make an extension for that it would be sufficient but I haven't found a tutorial explaining this.<o:p></o:p></p>
<p>Is there any way to add these commands to the CDT Editor with the Auto-complete functionality I want without making my own editor ? The language we use is C and we have these pragmas and this feature would be great since we use them a lot.<o:p></o:p></p>
<p>Thank you all.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">--
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Lambros Petrou</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
cdt-dev mailing list<br>
<a href="mailto:cdt-dev@xxxxxxxxxxx">cdt-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/cdt-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/cdt-dev</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Lambros Petrou</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Tue, 22 May 2012 07:11:58 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24443.html</guid>
		<author>Anton.Leherbauer@xxxxxxx (Leherbauer, Anton (Toni))</author>
	</item>


	<item>
		<title>Re: [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24442.html</link>
		<description>-- Lambros Petrouwww.lambrospetrou.com lambrospower@xxxxxxxx </description>
		<content:encoded><![CDATA[<span style>Yes, I have been looking at&#xC2;&#xC2;</span><span style>InclusionProposalComputer</span><span style>&#xC2; since your reply and I have a draft ready but it seems there is a probem. How can I check if my plugin is enabled and i use, because I am trying the pragmas and nothing comes up in the suggestions.</span><div style>
<br></div><div style>My plugin.xml is like this:</div><div style><br></div><div style><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;?eclipse version=&quot;3.4&quot;?&gt;</div><div>&lt;plugin&gt;</div>
<div><br></div><div><span style="white-space:pre-wrap">	</span>&lt;extension</div><div>&#xC2; &#xC2; &#xC2; &#xC2; &#xC2; id=&quot;DDMPragmasProposalComputer&quot;</div><div>&#xC2; &#xC2; &#xC2; &#xC2; &#xC2; point=&quot;org.eclipse.cdt.ui.completionProposalComputer&quot;&gt;</div>
<div>&#xC2; &#xC2; &#xC2; &#xC2;&lt;completionProposalComputer</div><div>&#xC2; &#xC2; &#xC2; &#xC2; &#xC2; &#xC2; &#xC2;categoryId=&quot;org.eclipse.cdt.ui.parserProposalCategory&quot;</div><div>&#xC2; &#xC2; &#xC2; &#xC2; &#xC2; &#xC2; &#xC2;class=&quot;ddmcontentassistance.DDMPragmasProposalComputer&quot;&gt;</div>
<div>&#xC2; &#xC2; &#xC2; &#xC2; &#xC2; &lt;partition type=&quot;__c_preprocessor&quot;/&gt;</div><div>&#xC2; &#xC2; &#xC2; &#xC2;&lt;/completionProposalComputer&gt;</div><div>&#xC2; &#xC2; &lt;/extension&gt;</div><div><br></div><div>&lt;/plugin&gt;</div><div><br></div><div>Thank you.</div>
</div><br><div class="gmail_quote">On 21 May 2012 09:57, Leherbauer, Anton (Toni) <span dir="ltr">&lt;<a href="mailto:Anton.Leherbauer@xxxxxxxxxxxxx" target="_blank">Anton.Leherbauer@xxxxxxxxxxxxx</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&#xC2;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I&#xE2;d suggest to look into the extension point &#xE2;org.eclipse.cdt.ui.completionProposalComputer&#xE2;.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">All internal completion proposal computers are in fact implementations of this extension point.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The &#xE2;InclusionProposalComputer&#xE2; class and its plugin.xml extension snippet might provide some boilerplate code to get you started.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&#xC2;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Toni<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&#xC2;<u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:cdt-dev-bounces@xxxxxxxxxxx" target="_blank">cdt-dev-bounces@xxxxxxxxxxx</a> [mailto:<a href="mailto:cdt-dev-bounces@xxxxxxxxxxx" target="_blank">cdt-dev-bounces@xxxxxxxxxxx</a>]
<b>On Behalf Of </b>Lambros Petrou<br>
<b>Sent:</b> Sunday, May 20, 2012 19:17<br>
<b>To:</b> <a href="mailto:cdt-dev@xxxxxxxxxxx" target="_blank">cdt-dev@xxxxxxxxxxx</a><br>
<b>Subject:</b> [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u>&#xC2;<u></u></p>
<p>I am trying to extend the C/C++ language in Eclipse CDT in order to have auto-complete (Content Assist) for some custom commands ( mostly pragmas ).<u></u><u></u></p>
<p>Let&#39;s say I have the command:&#xC2;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma IAM THE_CUSTOM_COMMAND&#xC2;</span></strong><em><b><span style="border:none windowtext 1.0pt;padding:0in">var1 var2</span></b></em><u></u><u></u></p>

<p>I&#39; d like to make a plugin in order to have the ability the moment I type in&#xC2;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma</span></strong>&#xC2;and then SPACE to show the possible commands I have like when I am using regular functions.
 And if I press enter on one of the suggestions the whole command should be pasted with the default values in the variables.<u></u><u></u></p>
<p>I tried reading in the Eclipse FAQ and found many tutorials online but I only found how to make a completely new editor supporting my commands.<u></u><u></u></p>
<p>I just need to add 20-30 pragmas like this in the CDT editor currently being used in Eclipse.<u></u><u></u></p>
<p>I read that there is an Extension Point for CDT Language and if I could make an extension for that it would be sufficient but I haven&#39;t found a tutorial explaining this.<u></u><u></u></p>
<p>Is there any way to add these commands to the CDT Editor with the Auto-complete functionality I want without making my own editor ? The language we use is C and we have these pragmas and this feature would be great since we use them a lot.<u></u><u></u></p>

<p>Thank you all.<u></u><u></u></p>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u>&#xC2;<u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Lambros Petrou</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&#xC2;<u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></span><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u>&#xC2;<u></u></p>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
cdt-dev mailing list<br>
<a href="mailto:cdt-dev@xxxxxxxxxxx">cdt-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/cdt-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/cdt-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:verdana,sans-serif">Lambros Petrou</span></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></font></div>
<div><font face="verdana, sans-serif"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></font></div><br>
]]></content:encoded>
		<pubDate>Mon, 21 May 2012 16:48:36 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24442.html</guid>
		<author>lambrospower@xxxxxxx (Lambros Petrou)</author>
	</item>
	<item>
		<title>[cdt-dev] JavaDoc</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24441.html</link>
		<description>In my first gerrit code review, Marc asked for JavaDoc on one line, but I'm really not sure what I should be adding. I haven't done much with Java Doc. Are we looking for an @see tag there, or something else? If someone could give me an idea, I'd appreciat...</description>
		<content:encoded><![CDATA[<pre>In my first gerrit code review, Marc asked for JavaDoc on one line, but I'm really not sure what I should be adding. I haven't done much with Java Doc. Are we looking for an @see tag there, or something else? If someone could give me an idea, I'd appreciate it. The gerrit review is here <a  href="https://git.eclipse.org/r/#/c/5972/">https://git.eclipse.org/r/#/c/5972/</a>

</pre>]]></content:encoded>
		<pubDate>Mon, 21 May 2012 15:20:23 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24441.html</guid>
		<author>jason@xxxxxxx (Jason Litton)</author>
	</item>
	<item>
		<title>Re: [cdt-dev] Extend the C language Content Assist in Eclipse	to	support custom commands</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24440.html</link>
		<description> Hi,   I&amp;#xE2;d suggest to look into the extension point &amp;#xE2;org.eclipse.cdt.ui.completionProposalComputer&amp;#xE2;. All internal completion proposal computers are in fact implementations of this extension point. The &amp;#xE2;InclusionProposalComputer2; class and its plugin.xml e...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I&#xE2;d suggest to look into the extension point &#xE2;org.eclipse.cdt.ui.completionProposalComputer&#xE2;.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">All internal completion proposal computers are in fact implementations of this extension point.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The &#xE2;InclusionProposalComputer&#xE2; class and its plugin.xml extension snippet might provide some boilerplate code to get you started.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Toni<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
<b>On Behalf Of </b>Lambros Petrou<br>
<b>Sent:</b> Sunday, May 20, 2012 19:17<br>
<b>To:</b> cdt-dev@xxxxxxxxxxx<br>
<b>Subject:</b> [cdt-dev] Extend the C language Content Assist in Eclipse to support custom commands<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>I am trying to extend the C/C&#43;&#43; language in Eclipse CDT in order to have auto-complete (Content Assist) for some custom commands ( mostly pragmas ).<o:p></o:p></p>
<p>Let's say I have the command:&nbsp;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma IAM THE_CUSTOM_COMMAND&nbsp;</span></strong><em><b><span style="border:none windowtext 1.0pt;padding:0in">var1 var2</span></b></em><o:p></o:p></p>
<p>I' d like to make a plugin in order to have the ability the moment I type in&nbsp;<strong><span style="border:none windowtext 1.0pt;padding:0in">#pragma</span></strong>&nbsp;and then SPACE to show the possible commands I have like when I am using regular functions.
 And if I press enter on one of the suggestions the whole command should be pasted with the default values in the variables.<o:p></o:p></p>
<p>I tried reading in the Eclipse FAQ and found many tutorials online but I only found how to make a completely new editor supporting my commands.<o:p></o:p></p>
<p>I just need to add 20-30 pragmas like this in the CDT editor currently being used in Eclipse.<o:p></o:p></p>
<p>I read that there is an Extension Point for CDT Language and if I could make an extension for that it would be sufficient but I haven't found a tutorial explaining this.<o:p></o:p></p>
<p>Is there any way to add these commands to the CDT Editor with the Auto-complete functionality I want without making my own editor ? The language we use is C and we have these pragmas and this feature would be great since we use them a lot.<o:p></o:p></p>
<p>Thank you all.<o:p></o:p></p>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Lambros Petrou</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Mon, 21 May 2012 06:57:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24440.html</guid>
		<author>Anton.Leherbauer@xxxxxxx (Leherbauer, Anton (Toni))</author>
	</item>


	<item>
		<title>[cdt-dev] RC on Tuesday</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24439.html</link>
		<description> Hey gang, Monday is a holiday here in Canada so I'll publish our RC1 bits on Tuesday. Cheers, Doug. </description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="">


<div>Hey gang, Monday is a holiday here in Canada so I'll publish our RC1 bits on Tuesday.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Doug.</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Sun, 20 May 2012 20:20:45 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24439.html</guid>
		<author>dschaefer@xxxxxxx (Doug Schaefer)</author>
	</item>
	<item>
		<title>[cdt-dev] Extend the C language Content Assist in Eclipse to	support custom commands</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24438.html</link>
		<description>I am trying to extend the C/C++ language in Eclipse CDT in order to have auto-complete (Content Assist) for some custom commands ( mostly pragmas ).Let&amp;#39;s say I have the command:&amp;#xC2;#pragma IAM THE_CUSTOM_COMMAND&amp;#xC2;var1 var2 I&amp;#39; d like to make a plugin in order t...</description>
		<content:encoded><![CDATA[<p style>I am trying to extend the C/C++ language in Eclipse CDT in order to have auto-complete (Content Assist) for some custom commands ( mostly pragmas ).</p><p style>Let&#39;s say I have the command:&#xC2;<strong style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;vertical-align:baseline;background-image:initial;background-color:transparent">#pragma IAM THE_CUSTOM_COMMAND&#xC2;<em style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;vertical-align:baseline;background-image:initial;background-color:transparent">var1 var2</em></strong></p>
<p style>I&#39; d like to make a plugin in order to have the ability the moment I type in&#xC2;<strong style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;vertical-align:baseline;background-image:initial;background-color:transparent">#pragma</strong>&#xC2;and then SPACE to show the possible commands I have like when I am using regular functions. And if I press enter on one of the suggestions the whole command should be pasted with the default values in the variables.</p>
<p style>I tried reading in the Eclipse FAQ and found many tutorials online but I only found how to make a completely new editor supporting my commands.</p><p style>I just need to add 20-30 pragmas like this in the CDT editor currently being used in Eclipse.</p>
<p style>I read that there is an Extension Point for CDT Language and if I could make an extension for that it would be sufficient but I haven&#39;t found a tutorial explaining this.</p><p style>Is there any way to add these commands to the CDT Editor with the Auto-complete functionality I want without making my own editor ? The language we use is C and we have these pragmas and this feature would be great since we use them a lot.</p>
<p style>Thank you all.</p><br clear="all"><div><br></div>-- <br><div><span style="font-family:verdana,sans-serif">Lambros Petrou</span></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><a href="http://www.lambrospetrou.com/" target="_blank">www.lambrospetrou.com</a></font></div>
<div><font face="verdana, sans-serif"><a href="mailto:lambrospower@xxxxxxxx" target="_blank">lambrospower@xxxxxxxx</a></font></div><br>
]]></content:encoded>
		<pubDate>Sun, 20 May 2012 17:16:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24438.html</guid>
		<author>lambrospower@xxxxxxx (Lambros Petrou)</author>
	</item>


	<item>
		<title>Re: [cdt-dev] Register view is hidden when debug session starts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24437.html</link>
		<description> Also applies to 3.6.x; thanks for the tip! cheers, DaveK </description>
		<content:encoded><![CDATA[<pre>On 04/04/2012 10:46, Abeer Bagul wrote:

&gt; This is a problem observed on Eclipse 3.7:
&gt; 
&gt; 1. Keep register view open, start a DSF debug session
&gt; 2. The register view is hidden and Variables view is activated when the
&gt; session starts.

&gt; However, if someone is shipping Eclipse 3.7.x, you might face this bug
&gt; that Register View is hidden. The workaround is to add the following
&gt; extension definition to any of your own plugin.xml files:
&gt; 
&gt;    &lt;extension
&gt;          point=&quot;org.eclipse.debug.ui.debugModelContextBindings&quot;&gt;
&gt;       &lt;modelContextBinding
&gt;             contextId=&quot;org.eclipse.cdt.debug.ui.debugging&quot;
&gt;             debugModelId=&quot;org.eclipse.cdt.debug.core.cbreakpoints&quot;&gt;
&gt;       &lt;/modelContextBinding&gt;
&gt;    &lt;/extension&gt;

  Also applies to 3.6.x; thanks for the tip!

    cheers,
      DaveK


</pre>]]></content:encoded>
		<pubDate>Sat, 19 May 2012 00:56:23 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24437.html</guid>
		<author>dave.korn.cygwin@xxxxxxx (Dave Korn)</author>
	</item>
	<item>
		<title>Re: [cdt-dev] MIMemory oddity.</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24436.html</link>
		<description> Thanks for the second pair of eyes. Sorry for not sending a formal patch, but I'm up to my neck in it right now (and I don't suppose it's even a measurable optimisation in practice anyway). cheers, DaveK </description>
		<content:encoded><![CDATA[<pre>On 18/05/2012 22:26, Pawel Piech wrote:
&gt; I think you're right on: looks like a minor bug.

  Thanks for the second pair of eyes.  Sorry for not sending a formal patch,
but I'm up to my neck in it right now (and I don't suppose it's even a
measurable optimisation in practice anyway).

    cheers,
      DaveK


</pre>]]></content:encoded>
		<pubDate>Sat, 19 May 2012 00:47:09 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24436.html</guid>
		<author>dave.korn.cygwin@xxxxxxx (Dave Korn)</author>
	</item>
	<item>
		<title>Re: [cdt-dev] MIMemory oddity.</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24435.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">I think you're right on: looks like a minor bug.</pre><br>
<tt>On 05/18/2012 02:06 PM, Dave Korn wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">     Hello list,</pre><br>
<pre style="margin: 0em;">   I noticed something that looked strange in MIMemory.java
(org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service), in the
MIMemoryCache.getMemory method.  There's a DataRequestMonitor handleSuccess
method in there that looks like this:</pre><br>
<pre style="margin: 0em;">	protected void handleSuccess() {
		MemoryByte[] block = new MemoryByte[count];
		block = getData();
		MemoryBlock memoryBlock = new MemoryBlock(startAddress, length, block);
		fMemoryBlockList.add(memoryBlock);
		countingRM.done();
	}</pre><br>
<pre style="margin: 0em;">   It looks to me like that's creating a new array of MemoryByte[count] and
then immediately discarding it, needlessly.  I'm only asking in case there's
something I don't understand about java type resolution and generics.  (And if
that were the case, surely a MemoryByte[0] would suffice?)</pre><br>
<pre style="margin: 0em;">     cheers,
       DaveK
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/cdt-dev">https://dev.eclipse.org/mailman/listinfo/cdt-dev</a>
</pre></blockquote><pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 May 2012 21:26:02 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24435.html</guid>
		<author>pawel.piech@xxxxxxx (Pawel Piech)</author>
	</item>
	<item>
		<title>[cdt-dev]  where is org.eclipse.cdt.launch.remote in Juno</title>
		<link>http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24434.html</link>
		<description> Hi All,   I&amp;#8217;m looking into porting our Yocto plug-in over to support upcoming Juno release.  Our plug-in depends on old org.eclipse.cdt.launch.remote which under the Juno builds, I just couldn&amp;#8217;t figure what to trigger it to be installed.   Also, under 220...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;m looking into porting our Yocto plug-in over to support upcoming Juno release.&nbsp; Our plug-in depends on old org.eclipse.cdt.launch.remote which under the Juno builds, I just couldn&#8217;t figure what to trigger it to be installed.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Also, under &#8220;Run&#8221;-&gt;Debug Congifuration/Run Configuration, I don&#8217;t see the connection section that allows me to setup the remote targets connections.&nbsp;
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Any guidance for these area will be appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Jessica<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 21:11:54 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24434.html</guid>
		<author>jessica.zhang@xxxxxxx (Zhang, Jessica)</author>
	</item>

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

