<?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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dushyanth Jyothi &#187; Programming</title>
	<atom:link href="http://dushi.co.uk/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://dushi.co.uk</link>
	<description>Me, My Life and the Binary</description>
	<lastBuildDate>Thu, 22 Jul 2010 21:14:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asp.net error: Server Error in ‘/’ Application</title>
		<link>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/</link>
		<comments>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 13:29:49 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=121</guid>
		<description><![CDATA[Server Error in &#8216;/&#8217; Application&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition=&#8217;MachineToApplication&#8217; beyond application level.  This error [...]]]></description>
			<content:encoded><![CDATA[Server Error in &#8216;/&#8217; Application<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br /><br />Configuration Error <br />Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br /><br />Parser Error Message: It is an error to use a section registered as allowDefinition=&#8217;MachineToApplication&#8217; beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.<br /><br />Source Error: <br /><br /><pre class="devcodeblock" title="ASP"><table class="devcodetools"><tbody><tr><td>&nbsp;ASP&nbsp;|&nbsp;</td><td style="background-image:url('http://dushi.co.uk/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard2" src="http://dushi.co.uk/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=2&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">Line <span style="color: #800000;">50</span><span style="color: #006600; font-weight: bold;">:</span>             ASP.<span style="color: #9900cc;">NET</span> <span style="color: #990099; font-weight: bold;">to</span> identify an incoming user. </pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline"><span style="color: #9900cc;">Line</span> <span style="color: #800000;">51</span><span style="color: #006600; font-weight: bold;">:</span>         --<span style="color: #006600; font-weight: bold;">&gt;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">Line <span style="color: #800000;">52</span><span style="color: #006600; font-weight: bold;">:</span>         <span style="color: #006600; font-weight: bold;">&lt;</span>authentication mode<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Windows&quot;</span> <span style="color: #006600; font-weight: bold;">/&gt;</span></pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">Line <span style="color: #800000;">53</span><span style="color: #006600; font-weight: bold;">:</span>         <span style="color: #006600; font-weight: bold;">&lt;!</span>--</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">Line <span style="color: #800000;">54</span><span style="color: #006600; font-weight: bold;">:</span>             The <span style="color: #006600; font-weight: bold;">&lt;</span>customErrors<span style="color: #006600; font-weight: bold;">&gt;</span> section enables configuration </pre></td></tr></table></div></pre>
 <br /><br />Source File: c:\inetpub\wwwroot\website1\web.config    Line: 52 <br />Source File: c:\inetpub\wwwroot\somewhere\web.config   Line: 51<br />Cause<br /><br />This error is generated because the default set of configuration values in web.config require IIS to treat the web site as an application but this has not been configured.<br /><br />Solution:<br />   1.Control Panel > Administrative Tools >IIS<br />   2. Open webiste properties (Default Web Site>Your Website >Right click > Properties)<br />   3. If the "application name" (under "Application Settings" on the "Directory" tab) is greyed out then click '[Create]' and then '[OK]'.<br />]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.net Regular Expressions String Match Replace</title>
		<link>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/</link>
		<comments>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 13:14:57 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[VB.net]]></category>
		<category><![CDATA[Regular expressions]]></category>
		<category><![CDATA[string match]]></category>
		<category><![CDATA[string replace]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=82</guid>
		<description><![CDATA[.net Regular Expressions String Match ReplaceString Match using regular expressions &#8211; VB.net&#160;vb.net&#160;&#124;&#160;&#160;copy&#160;code&#160;&#124;?&#160;1Import Imports System.Text.RegularExpressions2&#160;3            'regularExpression_Match -&#62; regular expression pattern to macth4            Dim regularExpression_Match As New Regex&#40;&#34;(.*)REGULAR EXPRESSION MATCH PATTERN(.*)&#34;&#41;5     [...]]]></description>
			<content:encoded><![CDATA[<strong>.net Regular Expressions String Match Replace</strong><br /><br /><br /><strong>String Match using regular expressions &#8211; VB.net</strong><br /><br /><pre class="devcodeblock" title="vb.net"><table class="devcodetools"><tbody><tr><td>&nbsp;vb.net&nbsp;|&nbsp;</td><td style="background-image:url('http://dushi.co.uk/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard6" src="http://dushi.co.uk/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=6&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline">Import <span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">RegularExpressions</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            <span style="color: #008080; font-style: italic;">'regularExpression_Match -&gt; regular expression pattern to macth</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">            <span style="color: #0600FF;">Dim</span> regularExpression_Match <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;(.*)REGULAR EXPRESSION MATCH PATTERN(.*)&quot;</span><span style="color: #000000;">&#41;</span></pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            <span style="color: #008080; font-style: italic;">'txtInput.txt -&gt; Text to macth against regularExpression_Match pattern</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">            <span style="color: #0600FF;">Dim</span> myMatch <span style="color: #FF8000;">As</span> Match <span style="color: #008000;">=</span> System.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">RegularExpressions</span>.<span style="color: #0000FF;">Regex</span>.<span style="color: #0000FF;">Match</span><span style="color: #000000;">&#40;</span>txtInput.<span style="color: #0000FF;">Text</span>, regularExpression_Match<span style="color: #000000;">&#41;</span></pre></td></tr><tr><td class="devcodelines" width="1%">7</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            <span style="color: #0600FF;">If</span> myMatch.<span style="color: #0000FF;">Success</span> <span style="color: #FF8000;">Then</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">8</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                <span style="color: #008080; font-style: italic;">'Do Something</span></pre></td></tr><tr><td class="devcodelines" width="1%">9</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span></pre></td></tr></table></div></pre>
<br /><pre class="devcodeblock" title="vb.net"><table class="devcodetools"><tbody><tr><td>&nbsp;vb.net&nbsp;|&nbsp;</td><td style="background-image:url('http://dushi.co.uk/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard7" src="http://dushi.co.uk/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=7&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"><span style="color: #0600FF;">If</span> Regex.<span style="color: #0000FF;">IsMatch</span><span style="color: #000000;">&#40;</span> userInputString, <span style="color: #808080;">&quot;\d+(\.?\d+)&quot;</span> <span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">    <span style="color: #008080; font-style: italic;">' perform some conversion and math operations here</span></pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span> </pre></td></tr></table></div></pre>
<br /><br /><strong>String Replace using regular expressions - VB.net</strong><br /><br /><pre class="devcodeblock" title="vb.net"><table class="devcodetools"><tbody><tr><td>&nbsp;vb.net&nbsp;|&nbsp;</td><td style="background-image:url('http://dushi.co.uk/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard8" src="http://dushi.co.uk/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=8&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                    <span style="color: #0600FF;">Try</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                        <span style="color: #008080; font-style: italic;">'regularExpression_Replace -&gt; regular expression pattern to replace</span></pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                        <span style="color: #0600FF;">Dim</span> regularExpression_Replace <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;(.*)REGULAR EXPRESSION REPLACE PATTERN(.*)&quot;</span><span style="color: #000000;">&#41;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                        <span style="color: #008080; font-style: italic;">'txtInput.txt -&gt; Text to macth and replace against </span></pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                        <span style="color: #0600FF;">Dim</span> txtReplacementPattern <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                        txtReplacementPattern <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;THIS WILL BE MY REPLACED TEXT&quot;</span></pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                        <span style="color: #008080; font-style: italic;">'txtReplacementPattern = &quot;$ &quot;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                        txtInput.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> regularExpression_Replace.<span style="color: #0600FF;">Replace</span><span style="color: #000000;">&#40;</span>txtInput.<span style="color: #0000FF;">Text</span>, _</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                            txtReplacementPattern<span style="color: #000000;">&#41;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                    <span style="color: #0600FF;">Catch</span> ex <span style="color: #FF8000;">As</span> Exception</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">                        Mess</pre></td></tr></table></div></pre>
<br /><br /><a href="http://msdn.microsoft.com/en-us/library/ms972966.aspx" target="_blank">Regular Expressions in ASP.NET</a><br /><br />]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Path for project must have only one segment</title>
		<link>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/</link>
		<comments>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:58:32 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=34</guid>
		<description><![CDATA[Error: Path for project must have only one segmentEven Though google shows 995,000 pages containg the text &#8220;Path for project must have only one segment&#8221; &#8211; None of them really explains what this error mean &#8211; Except if you look at the source code of WorkspaceRoot class, particularly &#8216;getProject&#8217; method:This problem usually occurs when you [...]]]></description>
			<content:encoded><![CDATA[Error: Path for project must have only one segment<br /><br />Even Though google shows 995,000 pages containg the text &#8220;Path for project must have only one segment&#8221; &#8211; None of them really explains what this error mean &#8211; Except if you look at the source code of WorkspaceRoot class, particularly &#8216;getProject&#8217; method:<br /><br />This problem usually occurs when you try to access a project  name/path,etc, when it is not avialable or you might have forget to instantiate the IProject object or try to  instantiate the IProject with different name.<br /><br />Solution: Have a look at your code where you are calling <pre>getProject. </pre>Check names, paths are called correctly.<br /><br /><pre class="devcodeblock" title="Progress"><table class="devcodetools"><tbody><tr><td>&nbsp;Progress&nbsp;|&nbsp;</td><td style="background-image:url('http://dushi.co.uk/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard10" src="http://dushi.co.uk/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=10&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline">public IProject getProject<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">STRING</span> JavaDoc <span style="color: #0000ff;">NAME</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">      <span style="color: #66cc66;">//</span><span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">FIRST</span> check our project <span style="color: #0000ff;">CACHE</span></pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline"> Project result <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>Project<span style="color: #66cc66;">&#41;</span> projectTable<span style="color: #66cc66;">.</span>get<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">NAME</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">       <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">IF</span> <span style="color: #66cc66;">&#40;</span>result <span style="color: #66cc66;">==</span> null<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            IPath projectPath <span style="color: #66cc66;">=</span> <span style="color: #993333;">NEW</span> Path<span style="color: #66cc66;">&#40;</span>null<span style="color: #66cc66;">,</span> <span style="color: #0000ff;">NAME</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">.</span>makeAbsolute<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">          <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">STRING</span> JavaDoc <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">MESSAGE</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;Path for project must have only one segment.&quot;</span><span style="color: #66cc66;">;</span> <span style="color: #66cc66;">//$</span>NON<span style="color: #66cc66;">-</span>NLS<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">$</span></pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline"> Assert<span style="color: #66cc66;">.</span>isLegal<span style="color: #66cc66;">&#40;</span>projectPath<span style="color: #66cc66;">.</span>segmentCount<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">==</span> ICoreConstants<span style="color: #66cc66;">.</span>PROJECT_SEGMENT_LENGTH<span style="color: #66cc66;">,</span> <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">MESSAGE</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">            <span style="color: #66cc66;">//</span>try <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">TO</span> <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">GET</span> the project <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">USING</span> a canonical <span style="color: #0000ff;">NAME</span></pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline"> <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">STRING</span> JavaDoc canonicalName <span style="color: #66cc66;">=</span> projectPath<span style="color: #66cc66;">.</span>lastSegment<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">            result <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>Project<span style="color: #66cc66;">&#41;</span> projectTable<span style="color: #66cc66;">.</span>get<span style="color: #66cc66;">&#40;</span>canonicalName<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">             <span style="color: #0000ff; font-weight: <span style="color: #006600;">bold</span>;">IF</span> <span style="color: #66cc66;">&#40;</span>result <span style="color: #66cc66;">!=</span> null<span style="color: #66cc66;">&#41;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">                 <span style="color: #993333;">RETURN</span> result<span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines" width="1%">13</td><td class="devcodelinesarea"><pre class="devcode devcodeline">            result <span style="color: #66cc66;">=</span> <span style="color: #993333;">NEW</span> Project<span style="color: #66cc66;">&#40;</span>projectPath<span style="color: #66cc66;">,</span> workspace<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">14</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">            projectTable<span style="color: #66cc66;">.</span>put<span style="color: #66cc66;">&#40;</span>canonicalName<span style="color: #66cc66;">,</span> result<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines" width="1%">15</td><td class="devcodelinesarea"><pre class="devcode devcodeline">       <span style="color: #66cc66;">&#125;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">16</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">         <span style="color: #993333;">RETURN</span> result<span style="color: #66cc66;">;</span></pre></td></tr><tr><td class="devcodelines" width="1%">17</td><td class="devcodelinesarea"><pre class="devcode devcodeline">     <span style="color: #66cc66;">&#125;</span></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">18</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">19</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">20</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><div id="TixyyLink" style="border: medium none; overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none;">Read more: "Java > Open Source Codes > org > eclipse > core > internal > resources > WorkspaceRoot _ Java API By Example, From Geeks To Geeks." - <a href="http://kickjava.com/src/org/eclipse/core/internal/resources/WorkspaceRoot.java.htm#ixzz0H1TWbu8u&#038;A">http://kickjava.com/src/org/eclipse/core/internal/resources/WorkspaceRoot.java.htm#ixzz0H1TWbu8u&#038;A</a></div>]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
