<?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>Eclipse Java IDE and Eclipse Plugins</title>
	<atom:link href="http://www.eclipse-blog.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.eclipse-blog.org</link>
	<description>All about Eclipse Java IDE and Eclipse plugins</description>
	<lastBuildDate>Fri, 25 Nov 2011 19:46:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Introduction To RCP (Rich Client Platform)</title>
		<link>http://www.eclipse-blog.org/eclipse-rcp/introduction-to-rcprich-client-platform.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-rcp/introduction-to-rcprich-client-platform.html#comments</comments>
		<pubDate>Thu, 24 May 2007 06:05:35 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse RCP]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[rcp]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/rich-client-platform/introduction-to-rcprich-client-platform.html</guid>
		<description><![CDATA[Rich Client Platform in Eclipse consists of a core, a standard bundling,a framework, a portable widget toolkit, file buffers, text handling, text editors, a workbench (views, editors, perspectives, wizards), Update Manager etc. With RCPs developers can build their own applications &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-rcp/introduction-to-rcprich-client-platform.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Rich Client Platform in Eclipse consists of a core, a standard bundling,a framework, a portable widget toolkit, file buffers, text handling, text editors, a workbench (views, editors, perspectives, wizards), Update Manager etc. With RCPs developers can build their own applications on existing platforms, without spending much time on building platforms . Instead of having to write a complete application from scratch, they can benefit from proven and tested features of the framework provided by the platform. Building on a platform facilitates faster application development and integration. Rich Client Application (RCA) ( an application built on RCPs ) normally in the form of a stand-alone executable with a graphical interface composed of several controls for the user.</p>
<p>Making a rich client application in eclipse is quite similar to plug-in development work, with a little different approach. Here it is discussed in steps.</p>
<p><span id="more-171"></span></p>
<ol>
<ol>
<li>Go to“ File” &#8211; &gt; “ New ” &#8211; &gt; “ Project ” &gt; “ Plug-in Development ” &gt; “ Plug-in Project ”.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/project.PNG" alt="" /></p>
<ol>
<ol>
<li>Give name to Project and move next.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/project-name.PNG" alt="" /></p>
<ol>
<ol>
<li>Plug-in Content options will appear. At this time instead of moving with default options, in Rich Client Application section, select “ Yes ” radio button.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/option-rich.PNG" alt="" /></p>
<ol>
<ol>
<li>Available templates will appear in next option. Here select “ HelloRCP ” Template, to keep the things simple.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/template-selection.PNG" alt="" /></p>
<ol>
<ol>
<li>Click “ Next” to finalise and then “ Finish ”.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/finish-to-create.PNG" alt="" /></p>
<ol>
<ol>
<li>OverView and Outline panes will appear, displaying information of the application.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/configurations.PNG" alt="" /></p>
<ol>
<ol>
<li>Now click on “ Launch an Eclipse application ” in Overview Pane to see the application working.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/hello-world.PNG" alt="" /></p>
<ol>
<ol>
<li>Finally we will define product configuration file and export our application.</li>
<li>Go to “ File ” &#8211; &gt; “ New ” &#8211; &gt; “ Other ” &#8211; &gt; “ Product Configuration ”.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/product-configuration.PNG" alt="" /></p>
<ol>
<ol>
<li>give some name to file, and select application. “ Finish ” to exit.</li>
<li>Give Product ID, Application and Product name in their respective fields.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/product-fields.PNG" alt="" /></p>
<ol>
<ol>
<li>From configuration tab, add your plug-in and “ required plug-ins ” for our application.</li>
<li>From overview tab, select “ Eclipse Product Export wizard ”.</li>
</ol>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/export.PNG" alt="" /></p>
<ol>
<li>Standalone rich client application has been exported into archive file.</li>
</ol>
<p>The application made is platform independent and will behave as a native application in any Operating System.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-rcp/introduction-to-rcprich-client-platform.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating Javadoc In Eclipse IDE</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html#comments</comments>
		<pubDate>Tue, 22 May 2007 18:37:43 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[Eclipse Javadoc]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[javadoc]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html</guid>
		<description><![CDATA[Javadoc is a set of Html files For any Java Project. In big Java Projects it is always better to generate document of the code written so as to make better understanding of the classes usage and detail about their &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Javadoc is a set of Html files For any Java Project. In big Java Projects it is always better to generate document of the code written so as to make better understanding of the classes usage and detail about their methods.</p>
<p><span id="more-165"></span></p>
<ol>
<li> Listed below is  a  Javadoc comment style used to generate a Javadoc. Use following comment style to generate a Javadoc.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/11.JPG" /></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/****This is a sample Java Comment**
&nbsp;
*/</span></pre></div></div>

<p>Above is a snapshot of Javadoc comment in IDE.</p>
<li> Click on projects link and choose &#8221; Generate Javadoc &#8221; option.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/21.JPG" /></p>
<li> Now a window will be opened where you can select Java Projects or their underlying resources for which JavaDoc needs to be generated. Several other options are also there where user can select any of them as per the need.Here user can select whether to generate JavaDoc for public/private API’s etc.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/31.JPG" /></p>
<li> Now IDE asks for other features as well for the generation of Javadoc. A Java programmer should be familiar with these options.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/41.JPG" /></p>
<li> You can also save settings as ant script so that you can use the script to generate javadoc in future.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/51.JPG" /></p>
<li>  Click “Finish” Javadoc will be generated. If you select option of opening index file in browser then after generation of Javadoc you will find &#8221; index.htm &#8221; of  Javadoc in your default Web Browser. On console you can see progress of JavaDoc Generation.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/61.JPG" /></ol>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building A Java Project In Eclipse</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/building-a-java-project-in-eclipse.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/building-a-java-project-in-eclipse.html#comments</comments>
		<pubDate>Tue, 22 May 2007 18:13:23 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[Eclipse Project]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/uncategorized/building-a-java-project-in-eclipse.html</guid>
		<description><![CDATA[Eclipse IDE not only manages Java code for Projects but Programmer can compile their Java source code using features of IDE. Suppose you have a Java Project with source code and the Jar files needed to compile the project in &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/building-a-java-project-in-eclipse.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Eclipse IDE not only manages Java code for Projects but  Programmer can compile their Java source code using features of IDE. Suppose you have a Java Project with  source code  and the Jar files needed to compile the project in the project claspath. IDE provides you the option to build Java code and putting that to the output directory. Here is the brief introduction for each option available.</p>
<p><span id="more-157"></span></p>
<ol>
<li>Click on the projects. You can see a lot of options regarding building projects in Java.<br />
<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/1.JPG" /></p>
<ul>
<li> Build All : It builds all the projects available in the workspace to output directory defined for each project</li>
<li> Build Working Set : It builds projects in some working set to their output directories.</li>
<li>Build Automatically : It builds all the projects automatically, In short it builds as soon as a java resource is modified it builds that part of code and show errors/warning at problems tab. If no error is found then put the class file to the output directory.</li>
</ul>
</li>
<li>Now click on &#8221; Build Working Set &#8221; It will ask user  to choose working set .</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/2.JPG" /></p>
<li>In the next window you can either choose set of projects already made or you can make a new working set of projects.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/3.JPG" /></p>
<li>click on &#8221; New &#8221; as we are  making a new working set.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/4.JPG" /></p>
<li> Select Java and press “Next”. It will ask you to include projects from workspace to the working  set we are going to create.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/5.JPG" /></p>
<li>Select the projects you want to add in the working set  and click “Finish”.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/6.JPG" /></p>
<li>You can see the results in problems window. If any Java unit have problems in compilation then It will be shown, so that the user can correct them and rebuild the working set again.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/building-a-java-project-in-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging Java Application in Eclipse IDE</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/debugging-java-application-in-eclipse-ide.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/debugging-java-application-in-eclipse-ide.html#comments</comments>
		<pubDate>Tue, 22 May 2007 16:26:31 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse Debug]]></category>
		<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/eclipse-ide/debugging-java-application-in-eclipse-ide.html</guid>
		<description><![CDATA[A Programmer many times try to locate and fix the bugs (errors) in the program code. Basic meaning of debugging a program is to start with a problem, isolate the source of the problem, and then fix it. When a &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/debugging-java-application-in-eclipse-ide.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>A Programmer many times try to locate and fix the bugs (errors) in the program code. Basic meaning of debugging a program is to start with a problem, isolate the source of the problem, and then fix it.  When a programmer says he has debugged the program  it means bugs has been worked out and bugs no longer exist.</p>
<p>From a Java Programmer there are a varieties of tools but if you are using an editor then it becomes quite easy for you to debug the program.</p>
<p><span id="more-76"></span></p>
<p>Here are the steps to be followed to debug a Java program using Eclipse.</p>
<ol>
<li> The very first step in debugging is to load your application and open the &#8220;java&#8221; file that you wish to debug. Do not forget to switch to Debug perspective.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog001.jpg" /></p>
<li> Now a window will be appeared where you can find several options for debugging the project. It is better to describe about the options available here. Using Eclipse you can debug not even a Java application but also a Remote Java Application (by specifying the remote port number), Junit Test Case, SWT Application etc. After supplying the arguments. Click the &#8220;Debug&#8221; button. Debugger will connect to your java application under debugger perspective.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog002.jpg" /></p>
<li>  Now you can enable or disable debug points in the application by just making a double click on the line where you want to stop execution of the program.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog004.jpg" /></p>
<li> Now you can enable or disable debug points in the application by just making a double click on the line where you want to stop execution of the program.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog005.jpg" /></p>
<li> Now use can use either keys F5-F8 or bar shown below debug window for debugging the application.<br />
<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog006.jpg" />Here is the use of each button for debug purpose.</p>
<ul>
<li>  <img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog007.JPG" /> Step Into: To go inside a Method.</li>
<li>  <img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog008.JPG" /> Step Over: To bypass the next line of code.</li>
<li> <img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog009.JPG" /> Step Return : To come out of the current execution of method to original from where you stepped in.</li>
<li> <img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/eclipse_blog10.JPG" />Resume: to resume from the current breakpoint.</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/debugging-java-application-in-eclipse-ide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Command Line Arguments In Eclipse IDE</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/java-command-line-arguments-in-eclipse-ide.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/java-command-line-arguments-in-eclipse-ide.html#comments</comments>
		<pubDate>Sat, 19 May 2007 06:11:37 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/java-se/java-command-line-arguments-in-eclipse-ide.html</guid>
		<description><![CDATA[The signature of main method is: public static void main&#40;String&#91;&#93; args&#41; &#123; which means that it takes a string array as the input argument. How can those be passed while running as a standalone class with in the Eclipse IDE? &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/java-command-line-arguments-in-eclipse-ide.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>The signature of main method is:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div>

<p>which means that it takes a string array as the input argument. How can those be passed while running as a standalone class with in the Eclipse IDE?  How can we use those input parameters with in a program? These are the some of the questions discussed here.</p>
<p><span id="more-138"></span></p>
<p>To execute a class having the main method with arguments follow the steps below.</p>
<ol>
<li>Click from menu bar.</li>
<li>“ Run ”  &#8211; &gt; “ Run ” and now select “ Arguments tab ”. Text area against “ Program Arguments ” is available to enter arguments. You can add any number of arguments but  each parameter should be separated by a space. Space is the delimiter here.</li>
</ol>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/arguments-window.PNG" /></p>
<p>For instance, if we give following text in the “ Program Arguments ” window,</p>
<p>hello world, hi hallo</p>
<p>then we will have 4 arguments namely.</p>
<ol>
<li>arg 1: hello.</li>
<li>arg 2: world.</li>
<li>arg 3: hi.</li>
<li>arg 4: hallo.</li>
</ol>
<p>Many  people think that comma (,) or semi colon (;) is delimiter but it just a misconception. Delimiter is “ space ”.</p>
<p>Consider the following program arguments:</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/arguments.PNG" /></p>
<p>In the main method, we will print the size of the input array and also will print each argument.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MainClass <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;No. of argumetns are: &quot;</span> <span style="color: #339933;">+</span> args.<span style="color: #006633;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i <span style="color: #339933;">&lt;</span> args.<span style="color: #006633;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
          <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Argument &quot;</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot; is : &quot;</span> <span style="color: #339933;">+</span> args<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
Output<span style="color: #339933;">:</span>
&nbsp;
No. <span style="color: #006633;">of</span> argumetns are<span style="color: #339933;">:</span> <span style="color: #cc66cc;">4</span>
&nbsp;
Argument <span style="color: #cc66cc;">0</span> is <span style="color: #339933;">:</span> hello
&nbsp;
Argument <span style="color: #cc66cc;">1</span> is <span style="color: #339933;">:</span> world,
&nbsp;
Argument <span style="color: #cc66cc;">2</span> is <span style="color: #339933;">:</span> football
&nbsp;
Argument <span style="color: #cc66cc;">3</span> is <span style="color: #339933;">:</span> match</pre></div></div>

<p>We can cast and use the input parameters incase you want something other than String as shown below.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MainClass <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">double</span> dd <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Double</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">doubleValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
 <span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/java-command-line-arguments-in-eclipse-ide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private: AnyEdit Plugin For Eclipse</title>
		<link>http://www.eclipse-blog.org/eclipse-plugin/anyedit-plugin-for-eclipse-plugin.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-plugin/anyedit-plugin-for-eclipse-plugin.html#comments</comments>
		<pubDate>Fri, 18 May 2007 09:15:34 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse Plugin]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/other-plugins/anyedit-plugin-for-eclipse-plugin.html</guid>
		<description><![CDATA[&#8220;AnyEdit&#8221; is a simple plugin for Eclipse that adds few tools to the Eclipse menu, toolbars and to the output consoles. These added features are very useful for the coders and save time in simple operations. First step is installing &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-plugin/anyedit-plugin-for-eclipse-plugin.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>&#8220;AnyEdit&#8221; is a simple plugin for Eclipse that adds few tools to the Eclipse menu, toolbars and to the output consoles. These added features are very useful for the coders and save time in simple operations.</p>
<p>First step is installing the plugin. As with other Eclipse plugin, its really very easy to install and configure AnyEdit.</p>
<ol>
<li>Download the plugin from <a href="http://andrei.gmxhome.de/anyedit/links.html">here</a>.</li>
<li>Unzip the file and copy &#8221; de.loskutov.anyedit.AnyEditTools_1.8.0.jar &#8221; to &#8221; Plugins &#8221; folder under Eclipse.</li>
<li>Open Eclispe and everything is read to use.</li>
</ol>
<p>Suppose we have following Test class:</p>
<p><span id="more-146"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Test <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
      <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
&nbsp;
      <span style="color: #009900;">&#123;</span>
&nbsp;
    	  <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Printing HELLO WORLD. Count: &quot;</span> <span style="color: #339933;">+</span>i <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And we want to save the generated output to a text file from Eclipse IDE. we used to copy the output from ‘Console window’ and will create a new text file from file system and then will paste the output text there. AnyEdit adds all this into Eclipse IDE. You just have to right click in the ‘Console window&#8217; of Eclipse and click &#8216;Save to File&#8217;.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/output-to-file.PNG" /></p>
<p>Sometimes it is useful for the developer to see the white spaces in the source code. AnyEdit provides this option in the toolbar. Just click &#8216;Show white spaces&#8217; icon from toolbar and you can see the white spaces in the development environment.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/white-spaces.PNG" /></p>
<p>You can change the case of text by: &#8221; highlighting text &#8221; &#8211; &gt; &#8221; right click &#8220;, choose Convert &#8211; &gt; &#8221; To upper case/To lower case/Invert case/Capitalize &#8220;.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/to-upper-case.PNG" /></p>
<p>AnyEdit also adds a search dialog box which gives some more flexibility to the search feature.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/search.PNG" /></p>
<p>&#8216;Show Source of Selected Element Only&#8217; is also a very useful feature. Consider that you are working in a method of a class with many methods. Then you will be viewing all the code, even that code which you are not editing. This can confuse you. Using &#8216;Show Source of Selected Element Only&#8217; will hide all the code except that particular method on which you are working.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/show-source.PNG" /></p>
<p>AnyEdit has a lot of simple but useful options that eases the programming in Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-plugin/anyedit-plugin-for-eclipse-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jigloo GUI Plugin for Eclipse</title>
		<link>http://www.eclipse-blog.org/eclipse-plugin/jigloo-gui-plugin-for-eclipse.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-plugin/jigloo-gui-plugin-for-eclipse.html#comments</comments>
		<pubDate>Mon, 14 May 2007 16:47:15 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse GUI]]></category>
		<category><![CDATA[Eclipse Plugin]]></category>
		<category><![CDATA[eclipse. plugins]]></category>
		<category><![CDATA[gui]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/swt-jface/jigloo-gui-plugin-for-eclipse.html</guid>
		<description><![CDATA[Developing graphical user interface in Java, can be in three ways. AWT, Swing and SWT. Abstract Windows Toolkit (AWT) does not have fancy looks as compared to Swing but its advantage is that it can run at any place where &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-plugin/jigloo-gui-plugin-for-eclipse.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Developing graphical user interface in Java, can be in three ways. AWT, Swing and SWT.</p>
<p>Abstract Windows Toolkit (AWT) does not have fancy looks as compared to Swing but its advantage is that it can run at any place where Java runtime environment is installed. It is very stable technology.</p>
<p>Swing provides GUIs that have fancy and sophisticated look and feel. It is included in the Java Foundation Classes (JFC). These are said to be slow as the controls are made by the Java itself.</p>
<p>Standard Widget Toolkit (SWT) is an open source Java GUI toolkit comprised of a widget set and a graphics library. It provides GUIs having look and feel very similar to the native desktop applications. This is supposed to be faster as the controls are built by the native dlls.</p>
<p>Jigloo is an Eclipse plugin which can be used to design AWT, Swing and SWT GUIs quikly and efficiently. It is free for non commercial use.</p>
<p>First download the plug-in from <a href="http://www.cloudgarden.com/jigloo/dnld_redirect.html">here</a>. Unzip it and move the folder “ plugins\com.cloudgarden.jigloo_3.9.5 ” to the plugins folder under Eclipse directory and move “ featues\com.cloudgarden.jigloo_3.9.5 ” to the features folder under Eclipse directory. Now simple open the Eclipse. Jigloo GUI plugin is read to use.</p>
<p><span id="more-130"></span></p>
<p>Listed below are the steps to create a simple Swing Jframe using Jigloo.</p>
<ol>
<li> First create a project named “ GUI test ”.</li>
<li>Now right click the project and create a new Swing Jframe (“ New ” &#8211; &gt; “ Other ” &gt; “ GUI  Forms  ” &#8211; &gt; “ Swing ” &#8211; &gt; “ Jframe ”).</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/create_jframe.PNG" /></p>
<li>Change the title of the JFrame to “ Test Frame ” by typing the text in the “ Title ” property in GUI Properties window.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/title_properties.PNG" /></p>
<li>After creating the JFrame, you will see the frame, code and the setting windows. In the design windows, you will be shown the graphical preview of your frame. It will have different menus and tabs. Tabs contain different controls that we can use according to our requirements.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/tabs.PNG" /></p>
<li>In our example, we need a container on JFrame. So we will drop JPanel control from Containers tab on to our frame.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/jpanel.PNG" /></p>
<li>Now select and drop JTextField control from Components tab on to the JPanel and name it as “ jtxtfld ”.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/jtxtfld.PNG" /></p>
<li>Select and drop JButton control from Components tab on to the JPanel and name it as “ jbut ”<br />
<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/jbut.PNG" /><br />
Our GUI looks like this<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/gui.PNG" />Now we have to add a functionality that when a user presses the button, the text in the textfield is printed on the console. To achieve this, we to get the mouseClicked event of the button.</li>
<li>Click JButton (jbut) and then go to Event window. Event window will have all the events available for the JButton. Select “ MouseListner ” &#8211; &gt; “ mouseClicked ” event and change its value from <none> to inline. Doing so, code for the event will be generated. Now we just have to go to the code window and locate the mouseCliced event code and write the print statement there. </none></li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseClicked<span style="color: #009900;">&#40;</span><span style="color: #003399;">MouseEvent</span> evt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>jtxtfld.<span style="color: #006633;">getText</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now try running the Java Class.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-plugin/jigloo-gui-plugin-for-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLBuddy for Eclipse</title>
		<link>http://www.eclipse-blog.org/eclipse-plugin/xmlbuddy-for-eclipse.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-plugin/xmlbuddy-for-eclipse.html#comments</comments>
		<pubDate>Mon, 14 May 2007 16:00:25 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse Plugin]]></category>
		<category><![CDATA[Eclipse XML]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/xml/xmlbuddy-for-eclipse.html</guid>
		<description><![CDATA[XML stands for EXtensible Markup Language. It is a markup language much like HTML and it is used to describe data. XML is a popular format in many advanced protocols. Many of the application configuration files are now converted to &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-plugin/xmlbuddy-for-eclipse.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>XML stands for EXtensible Markup Language. It is a markup language much like HTML and it is used to describe data. XML is a popular format in many advanced protocols. Many of the application configuration files are now converted to XML format. Now a days the XML data is also used for inter application communications to a wide extend.</p>
<p>There are many XML plug-ins available for the XML manipulations, but the most popular one is  <span style="font-size: 12pt" lang="EN-GB">“ </span>XMLBuddy <span style="font-size: 12pt" lang="EN-GB">”</span>. Its a free-ware plug-in and allows XML editing features in Eclipse environment.</p>
<p>First download the plug-in from <a href="http://www.xmlbuddy.com">http://www.xmlbuddy.com</a>. Unzip it and move the folder named <span style="font-size: 12pt" lang="EN-GB">“ </span>com.objfac.xmleditor_2.0.9 <span style="font-size: 12pt" lang="EN-GB">” </span>to the plugins folder under Eclipse directory. Now simple open the Eclipse. XML plug-in is read to use.</p>
<p><span id="more-123"></span></p>
<p>Now you can see a new menu called  <span style="font-size: 12pt" lang="EN-GB">“ </span>XML<span style="font-size: 12pt" lang="EN-GB"> ”</span> added to the menu bar.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/menu.PNG" /></p>
<p>Two new icons are also added for creating new XML and DTD files.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/icons.PNG" /></p>
<p>Create a new XML file by clicking the <span style="font-size: 12pt" lang="EN-GB">“ </span>New XML File <span style="font-size: 12pt" lang="EN-GB">”</span> icon and name it. Type the contents and save it. To validate it, click from menu bar <span style="font-size: 12pt" lang="EN-GB">“ </span>XML <span style="font-size: 12pt" lang="EN-GB">” &#8211; </span> &gt;<span style="font-size: 12pt" lang="EN-GB">“ </span> Validate <span style="font-size: 12pt" lang="EN-GB">”</span>.</p>
<p>Errors will be marked as red and you can correct those.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/error.PNG" /></p>
<p>You can see the outline of your XML document in the outline window.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/outline.PNG" /></p>
<p>To change the preferences, click from menu bar <span style="font-size: 12pt" lang="EN-GB">“ </span>Window <span style="font-size: 12pt" lang="EN-GB">”</span> &#8211; &gt;<span style="font-size: 12pt" lang="EN-GB">“</span> Preferences <span style="font-size: 12pt" lang="EN-GB">” &#8211; </span>&gt; <span style="font-size: 12pt" lang="EN-GB">“ </span>XMLBuddy <span style="font-size: 12pt" lang="EN-GB">”</span></p>
<p><span style="font-size: 12pt" lang="EN-GB"></span><br />
<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/preferences.PNG" /></p>
<p>Form here, you can change the settings as you like. For example we want to change the color of elements start and end tags..</p>
<p>By default, element&#8217;s start and end tags are BLUE and we want to make them RED. This can easily be done from XMLBuddy Preferences window (<span style="font-size: 12pt" lang="EN-GB">“ </span>Preferences <span style="font-size: 12pt" lang="EN-GB">”</span> &#8211; &gt;<span style="font-size: 12pt" lang="EN-GB"> “</span> XMLBuddy <span style="font-size: 12pt" lang="EN-GB">”</span> &#8211; &gt;<span style="font-size: 12pt" lang="EN-GB">“</span> XML <span style="font-size: 12pt" lang="EN-GB">” </span>- &gt; <span style="font-size: 12pt" lang="EN-GB">“</span> Colors <span style="font-size: 12pt" lang="EN-GB">”</span>).</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/tag_color.PNG" /></p>
<p>Now our xml file looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;catalog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bob Dylan<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>USA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Columbia<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1985<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bonnie Tylor<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UK<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>CBS Records<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>9.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1988<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/catalog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Using XMLBuddy definitely saves time if you are working with XML files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-plugin/xmlbuddy-for-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Introduction to Eclipse PDE &#8211; File Creation</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/an-introduction-to-eclipse-pde-file-creation.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/an-introduction-to-eclipse-pde-file-creation.html#comments</comments>
		<pubDate>Tue, 08 May 2007 20:00:41 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/eclipse-ide/an-introduction-to-eclipse-pde-file-creation.html</guid>
		<description><![CDATA[Eclipse is a platform which is itself comprised of plugins.Eclipse itself is not only a Developement environment for Java pr C++ But also an IDE for plugins for itself or standalone plugins. As stated above Eclipse can be used as &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/an-introduction-to-eclipse-pde-file-creation.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Eclipse is a platform which is itself comprised of plugins.Eclipse itself is not only a Developement environment for Java pr C++ But also an IDE for plugins for itself or standalone plugins.</p>
<p>As stated above Eclipse can be used as a Plugin Development Environment (PDE) which is a set of tools that help the developers in developing, testing, debugging, building, and deploying Eclipse plugins.</p>
<p>The plugin Development Environment (PDE) has its Wizard template to create plugins. The plugin,to be created will associate  Eclipse  with the file extension  “.myext”. The plugin&#8217;s wizard will enable the user to create files with this extension, and when the user double-clicks on those files, they&#8217;ll appear in the plugin&#8217;s editor.</p>
<p><span id="more-114"></span></p>
<ol>
<li> Select “ File ” &#8211; &gt;“ New ” &#8211; &gt; “ Project ”. Then select “ Plugin Project ”. Wizard will start asking for information.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/plugin-project.PNG" /></p>
<li> Give plugin project name.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/plugin-project-name.PNG" /></p>
<li>Providing content provider is important for plugins, to verify potentially safe providers.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/plugin-contents.PNG" /></p>
<li>Next we will select the template of Multipage Editor plugin.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/plugin-using-template.PNG" /></p>
<li> Next provide the file extension you want to be used, in this case “ myext”.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/configuring-plugin.PNG" /></p>
<li> Next window will ask the option, wizard of this plugin will ask to create file. Here you have to specify file extension and initial file name.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/configuring-wizard.PNG" /></p>
<li>Finish to exit. Now, to test our plugin go to context menu of plugin project and select “ Run as ” &#8211; &gt; “ Eclipse Application ”.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/run-using-eclipse.PNG" /></p>
<li> A new instance of eclipse will get started. In this instance make an empty project ‘abc’ in this case. Then move to File &gt; “ New ” &#8211; &gt; “ Other ” &#8211; &gt; “ Sample Wizard ” &#8211; &gt; “ Multi-page Editor File ”.</li>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/new-file-with-myext.PNG" /></ol>
<p>Your plugin has generated a file with your customized extension.</p>
<p>Creating plugins for Eclipse using PDE is very useful in situations involving project development in teams. This area is wide open and lot of work is being done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/an-introduction-to-eclipse-pde-file-creation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Junit In Eclipse</title>
		<link>http://www.eclipse-blog.org/eclipse-ide/using-junit-in-eclipse.html</link>
		<comments>http://www.eclipse-blog.org/eclipse-ide/using-junit-in-eclipse.html#comments</comments>
		<pubDate>Sun, 06 May 2007 08:13:15 +0000</pubDate>
		<dc:creator>Eclipse Editor</dc:creator>
				<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[Eclipse Test]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.eclipse-blog.org/eclipse-ide/using-junit-in-eclipse.html</guid>
		<description><![CDATA[Unit testing is defined as “ Each module is tested alone in an attempt to discover any errors in its code ”. Its always a good practice to test each unit of your project independently as it saves time and &#8230;<p class="read-more"><a href="http://www.eclipse-blog.org/eclipse-ide/using-junit-in-eclipse.html">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Unit testing is defined as “ Each module is tested alone in an attempt to discover any errors in its code ”. Its always a good practice to test each unit of your project independently as it saves time and effort while integrating the modules.</p>
<p>JUnit provides close relationship between testing and development. As developers write the code, they use the JUnit test runners to verify how much it deviates from the intended goal. Normally it is a standard practice that the code developers themselves write unit tests for their code.</p>
<p><span id="more-109"></span></p>
<p>First step is to put “ junit.jar ” on the build Path. Go to project properties and click “ Java Build Path ”. In the Libraries tab click “ Add External JARs ” and then browse to “ junit.jar ”.</p>
<p>Suppose we want to test method called “ getSmallest() ” in class “ Test.MainClass ”. This method takes an integer array as input argument and returns smallest integer from that array. We will write “ TestCase ” to test this using Junit.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">Test</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.*</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MainClass <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">int</span> getSmallest<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> arr<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #003399;">Arrays</span>.<span style="color: #006633;">sort</span><span style="color: #009900;">&#40;</span>arr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">return</span> arr<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Right click “ project name ” and click “ New ” &#8211; &gt; “ Junit Test Case ”. New JUnit Test Case window will open. Name the test case and select class for which you are writing the test case. In my case, I selected Test.MainClass. Click Next.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/create_window.PNG" height="556" width="459" />Now we have to select the methods from the chosen class for which test stubs will be generated. In my case, I selected “  getSmallst(int[]) ”. “ Click Finish ”. Test stubs for the method is generated but we have to write a little code to test it.<br />
<img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/select-methods.PNG" height="548" width="454" /></p>
<p>Review the code below:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">Test</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">junit.framework.TestCase</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> test_case_getSmallest <span style="color: #000000; font-weight: bold;">extends</span> TestCase <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> test_case_getSmallest<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> arg0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>arg0<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> setUp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">setUp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> tearDown<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">tearDown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> testGetSmallest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
MainClass o <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MainClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> myarray <span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">200</span>,<span style="color: #cc66cc;">30</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">int</span> val<span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>val <span style="color: #339933;">=</span> o.<span style="color: #006633;">getSmallest</span><span style="color: #009900;">&#40;</span>myarray<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">30</span><span style="color: #009900;">&#41;</span>
&nbsp;
 	<span style="color: #009900;">&#123;</span>
&nbsp;
 		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Shortest value returned is : &quot;</span> <span style="color: #339933;">+</span> val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 		fail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Not right result.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To run it, right click the test case (test_case_getSmallest.java) and click “ Run As ” &#8211; &gt; “ JUnit Test ”. Test will run and the results will be shown. In my example, I got the following results.</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/success-result.PNG" height="139" width="428" /></p>
<p>Now to see failures. We changed the “ testGetSmallest() ” code as</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> testGetSmallest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
MainClass o <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MainClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> myarray <span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">200</span>,<span style="color: #cc66cc;">30</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">int</span> val<span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>val <span style="color: #339933;">=</span> o.<span style="color: #006633;">getSmallest</span><span style="color: #009900;">&#40;</span>myarray<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span>
&nbsp;
 	<span style="color: #009900;">&#123;</span>
&nbsp;
 		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Shortest value returned is : &quot;</span> <span style="color: #339933;">+</span> val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 		fail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Not yet implemented&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Output I was shown is:</p>
<p><img src="http://www.eclipse-blog.org/wp-content/uploads/2007/05/failure-result.PNG" height="162" width="430" /></p>
<p>In this example,we are just testing a method using a simple test case. We can test  more than one methods using same test case as well. For instance, we could have more than one methods in our class “ MainClass ” and then more than one test stubs in our test case “ test_case_getSmallest() ”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclipse-blog.org/eclipse-ide/using-junit-in-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

