<?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>etechGuide . . . &#187; Eclipse</title>
	<atom:link href="http://etechGuide.in/category/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://etechGuide.in</link>
	<description>Know more , share more</description>
	<lastBuildDate>Fri, 25 Jun 2010 13:58:23 +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>Eclipse shortcuts &#8211; Make Java development easy</title>
		<link>http://etechGuide.in/eclipse/eclipse_shortcuts/</link>
		<comments>http://etechGuide.in/eclipse/eclipse_shortcuts/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 05:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://etechGuide.in/?p=274</guid>
		<description><![CDATA[Eclipse is an widely used editor and a must used IDE for most of the Java Developers. Use of eclipse can be more fun and cool , if you know to use the eclipse shortcuts properly and effectively. What is the use of an IDE if it does the  work of a notepad only(Intention is not there to blame notepad at all)? Eclipse provides a set of features in terms of key-shortcuts which make a life easy and save lots of time. Lets discuss some of the frequently used shortcuts of Eclipse. ]]></description>
			<content:encoded><![CDATA[<p>Eclipse is an widely used editor and a must used IDE for most of the Java Developers. Use of eclipse can be more fun and cool , if you know to use the eclipse shortcuts properly and effectively. What is the use of an IDE if it does the  work of a notepad only(Intention is not there to blame notepad at all)? Eclipse provides a set of features in terms of key-shortcuts which make a life easy and save lots of time. Lets discuss some of the frequently used shortcuts of Eclipse. In this post , I will use the term <strong>cntrl</strong> for the keyboard control key and <strong>shft</strong> for keyboard shift key and a <strong>+</strong> sign would mean a combination os the keys.</p>
<p><span style="color: #078df7;"><span style="text-decoration: underline;"><strong>1 . Open Resource : Key shortcuts &#8211; cntrl+shft+R</strong> </span> </span><br />
When you are working on a java project which contains plenty of resources ( files , .java , .properties , .xml etc) , you should use a cntrl+shft+R key shortcut to find the file quickly.Once you press the shortcut key combo , a dialog box should appear. Type the resource name you would like to open and get the resource displayed in the dialog itself. Double click on the displayed resource , it should get open for you. If you are not so sure about the file name you are searching for , use the regular expression like , *.java , FW*.properties etc to find the file closely related to your search. have a look at the following screen-shot,<br />
<div id="cntrl+shft+R" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+shft+R" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_shft_R.jpg" alt="Open a resource" title="Open a resource" width="597" height="497" /><br />
<p class="wp-caption-text">cntrl+shft+R</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>2 . Open Type : Key shortcuts &#8211; cntrl+shft+T</strong> </span> </span><br />
This shortcut would help if you are looking for opening a particular type of file say , java file. Pressing this shortcut should open a dialog.Once you type a file name , the dialog shows the file name along with it&#8217;s package name. You can use regular expression as well to search the file.<br />
<div id="cntrl+shft+T" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+shft+T" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_shft_T.jpg" alt="cntrl+shft+T" title="cntrl+shft+T" width="597" height="497" /><br />
<p class="wp-caption-text">cntrl+shft+T</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>3 . Toggle between the files : Key shortcuts &#8211; cntrl+E</strong> </span> </span><br />
When we are busy with our coding , we keep lot of files open and sometime the number of open files grows so much that it goes hidden in eclipse editor.This shortcut would help you to find the file quickly among all the open files including hidden files.Press cntrl+E , it should open a small pop-up listing all the open files.You can type the name of the file to go to the particular file.<br />
<div id="cntrl +E" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+E" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_E.jpg" alt="cntr+E" title="cntrl+E" width="475" height="111" /><br />
<p class="wp-caption-text">cntrl+E</p></div></p>
<p><span style="color: #078df7;"><span style="text-decoration: underline;"><strong>4 . Search for anything : Key shortcuts &#8211; cntrl+H</strong> </span> </span><br />
Lets assume , you have a string named <strong>FwResources</strong> declared in your java file and the same string is used in different java , properties and sql files.If you would like to search the all those place of uses , cntrl+H is the answer. It searches in whole project and list out the list of the files have the file name or the pattern.Along with file search , you can perform a java search and plug-in search as well.<br />
<div id="cntrl+H" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+H" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_H.jpg" alt="cntrl+H" title="cntrl+H" width="502" height="442" /><br />
<p class="wp-caption-text">cntrl+H</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>5 . Go to a particular line : Key shortcuts &#8211; cntrl+L</strong> </span> </span><br />
If your java file has too many lines , going to a particular line is always a problem. Often you scroll down the file and go to a particular file you are looking for.But a beautiful solution is to press cntrl+L.It opens up a dialog where you can type the line number you intended to go.<br />
<div id="cntrl+L" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+L" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_L.jpg" alt="cntrl+L" title="cntrl+L" width="487" height="117" /><br />
<p class="wp-caption-text">cntrl+L</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>6 . Search the method in a class : Key shortcuts &#8211; cntrl+O</strong> </span> </span><br />
I have seen class file having more than 50 methods . You must have seen something like that in the course of developing or maintaining a project.It&#8217;s very unlikely to remember all the method names of a class and find them easily if they are plenty in number.Use the key shortcut cntrl+O on the editor. It opens up a dialog listed all the methods in the class file.You can type the method name or a regular expression to search the method you are looking for.<br />
<div id="cntrl+O" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+O" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_O.jpg" alt="cntrl+O" title="cntrl+O" width="600" height="486" /><br />
<p class="wp-caption-text">cntrl+O</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>7 . Search the method of super class from sub class : Key shortcuts &#8211; cntrl+O+O</strong> </span> </span><br />
If you are interested to see the method from the super class , press cntrl+O+O.It opens up a dialog with all the method including super class methods.<br />
<div id="cntrl+O+O" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+O+O" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_O_cntr_O.jpg" alt="cntrl+O+O" title="cntrl+O+O" width="600" height="492" /><br />
<p class="wp-caption-text">cntrl+O+O</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>8 . Open a type hierarchy : Key shortcuts &#8211; cntrl+T</strong> </span> </span><br />
Pressing cntrl+T on an editor should open up the type hierarchy of the class.You can see all the super class and sub class of the class.Very handy in case you want to know the hierarchy of a class.<br />
<div id="cntrl+T" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="cntrl+T" src="http://etechGuide.in/wp-content/uploads/2009/06/cntr_T.jpg" alt="cntrl+T" title="cntrl+T" width="397" height="319" /><br />
<p class="wp-caption-text">cntrl+T</p></div><br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>9 .Comment a bulk of code at a time: Key shortcuts &#8211; cntrl+shft+/</strong> </span> </span><br />
If you want to comment a bulk of code at a time , don&#8217;t use <strong>//</strong> to comment each line. Select the bulk of lines which you are interest to comment at once and press the key cntrl+shft+/.<br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>10 .Format your code: Key shortcuts &#8211; cntrl+shft+F</strong> </span> </span><br />
Eclipse has a built-in code formatter which helps you to format your code in a readable format.This formatting is very useful as code become more readable and maintainable. Select the part of the code you would like to format and press cntrl+shft+F , code would be formatted. you can create or import your own format style. Go to Winow>Preferences>Java>Code Style>Formatter . You can see the type of formatter exist, can create a new , can import a formatter for use.<br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>11 .Find any definition and declaration: Key shortcuts &#8211; F3</strong> </span> </span><br />
How about a key press to take you to variable declaration or to a method definition. Often we find at the code where  an object reference or a method call used again and again , to locate the variable declaration or to see the method definition , keep your cursor on the variable or the method and press F3 from your keyboard.Pressing the key takes you to the place where the method is defined or the variable is declared.<br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>12 .Auto complete: Key shortcuts &#8211; cntrl+space</strong> </span> </span><br />
This is a very interesting feature and very useful. Auto complete feature in eclipse reduces the head ache of typing each and everything in your editor while coding.If you have already declared a variable or method in your class , you no need to type the full method name or the variable name to use them else where. Type first few characters and press cntrl+space , auto complete feature would take care of rest of the things. Very handy in quick development.<br />
<span style="color: #078df7;"><span style="text-decoration: underline;"><strong>13 . Get all properties &#8211; dot(.) notation : Key shortcuts &#8211; . (yes , it&#8217;s just a dot) </strong> </span> </span><br />
Very tiny but very very useful. use a .(dot) after your declared reference variable , you should be able to get all the public entities of the class listed. It is not always possible to know about all the method or variable name of a class. think about a class file from a jar file where the source is not bundled and you do not have the API doc available. How would you know about the public methods / variables in the class ? Use the dot notation feature of eclipse. Type your reference to the class and press an immediate .(dot) and get all the public entities of the class.</p>
<p>That&#8217;s all from my side about eclipse key shortcuts. Please write comments if you liked it/disliked it and mention some more shortcuts if you know anything else. I would do another post on <strong>Making work easy in eclipse</strong> very soon. Stay tuned.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2FetechGuide.in%2Feclipse%2Feclipse_shortcuts%2F&amp;linkname=Eclipse%20shortcuts%20%26%238211%3B%20Make%20Java%20development%20easy"><img src="http://etechGuide.in/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://etechGuide.in/eclipse/eclipse_shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Break-point for Assertion Failed</title>
		<link>http://etechGuide.in/eclipse/eclipse-break-point-for-assertion-failed/</link>
		<comments>http://etechGuide.in/eclipse/eclipse-break-point-for-assertion-failed/#comments</comments>
		<pubDate>Mon, 11 May 2009 12:23:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[assertion]]></category>
		<category><![CDATA[eclipse break-point]]></category>

		<guid isPermaLink="false">http://etechGuide.in/?p=127</guid>
		<description><![CDATA[Assertion in Java is a very useful testing tool.A java developer can add more and more tests in code while developing the application.Assertion use as a safeguard to your java code.In development environment we rely on the debugging and inspect the variables when it hits the break-point.If you are using Eclipse as your development IDE , you have to enable the AssertionError exception to hit the breakpoint on the error in case an assertion fails.This post talk about setting the break point at Assertion fail.]]></description>
			<content:encoded><![CDATA[<p>Assertion in Java is a very useful testing tool.A java developer can add more and more tests in code while developing the application.Assertion use as a safeguard to your java code. A failed assertion would throw java.lang.AssertionError. Developer has to log the exception in code to know that the assertion is failed.</p>
<p>In development environment we rely on the debugging and inspect the variables when it hits the break-point.If you are using Eclipse as your development IDE , you have to enable the AssertionError exception to hit the breakpoint on the error in case an assertion fails.<br />
You can achieve it by ,<br />
1. Go to Run &gt; Java Exception Point</p>
<div id="1-Assertion" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="Run - Java Exception Point" src="http://etechGuide.in/wp-content/uploads/2009/05/1-assertion.jpg" alt="Run - Java Exception Point" title="Run - Java Exception Point" width="298" height="494" /><br />
<p class="wp-caption-text">Run - Java Exception Point</p></div>
<p>2. Type java.lang.AssertionError in the text box for choose an exception and press OK.</p>
<div id="2-Assertion" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="Add the exception" src="http://etechGuide.in/wp-content/uploads/2009/05/2-Assertion.jpg" alt="Add the exception" title="Add the exception" width="394" height="380" /><br />
<p class="wp-caption-text">Add the exception</p></div>
<p>Here the exception is added. Now whenever you do debug your code , AssertionError should be selected by default as a debug point.</p>
<div id="2-Assertion" class="wp-caption alignleft" style="width: 610px"><br />
<img class="size-full wp-image-38" title="break-point" src="http://etechGuide.in/wp-content/uploads/2009/05/3-Assertion.jpg" alt="break-point" title="break-point" width="574" height="647" /><br />
<p class="wp-caption-text">break-point</p></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2FetechGuide.in%2Feclipse%2Feclipse-break-point-for-assertion-failed%2F&amp;linkname=Eclipse%20Break-point%20for%20Assertion%20Failed"><img src="http://etechGuide.in/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://etechGuide.in/eclipse/eclipse-break-point-for-assertion-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a basic eclipse plug-in</title>
		<link>http://etechGuide.in/eclipse/how-to-create-a-basic-eclipse-plug-in/</link>
		<comments>http://etechGuide.in/eclipse/how-to-create-a-basic-eclipse-plug-in/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 15:19:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://etechGuide.in/?p=29</guid>
		<description><![CDATA[How to create a basic eclipse plug-in
Software Used

Eclipse – version 3.3
Java – JDK 1.5
Operating System – Windows Vista

To create a basic eclipse plug-in launch your eclipse and open new project wizard. To open a new project wizard go to File menu &#62; New &#62; Project .
Select Plug-in Project from the list and click on the [...]]]></description>
			<content:encoded><![CDATA[<p>How to create a basic eclipse plug-in</p>
<p><span style="text-decoration: underline;">Software Used</span></p>
<ul>
<li>Eclipse – version 3.3</li>
<li>Java – JDK 1.5</li>
<li>Operating System – Windows Vista</li>
</ul>
<p>To create a basic eclipse plug-in launch your eclipse and open <strong>new project</strong> wizard. To open a new project wizard go to <strong>File menu &gt; New &gt; Project</strong> .<br />
Select <strong>Plug-in Project</strong> from the list and click on the <strong>Next</strong> button.</p>
<div id="attachment_38" class="wp-caption alignleft" style="width: 610px"><img class="size-full wp-image-38" title="New project wizard" src="http://etechGuide.in/wp-content/uploads/2009/02/1.jpg" alt="File &gt; New project" title="New project wizard" width="600" height="494" /> <p class="wp-caption-text">File &gt; New project</p></div>
<p>On the next page of the wizard enter the name of the project. Ideally a plug-in project name should be in a form com.company.something etc which would be a id for the plug-in as well.Once enter the project name click on <strong>Next</strong> button.</p>
<div id="attachment_47" class="wp-caption alignleft" style="width: 610px"><img class="size-full wp-image-47" title="Next Page" src="http://etechGuide.in/wp-content/uploads/2009/02/2.jpg" alt="Next Page" title="Next Page" width="600" height="518" /> <p class="wp-caption-text">Next Page</p></div>
<p>Every plug-in may contain a plug-in.xml file and a java file. Along with these basic files, plug-in must have a META-INF/MANIFEST.MF file. The next wizard page allows to enter the details to generate MANIFEST.MF file and the java file.</p>
<div id="attachment_50" class="wp-caption alignleft" style="width: 610px"><img class="size-full wp-image-50" title="Meta Inf" src="http://etechGuide.in/wp-content/uploads/2009/02/3.jpg" alt="Plugin.xml and META-INF properties" title="Meta Inf" width="600" height="520" /> <p class="wp-caption-text">Plugin.xml and META-INF properties</p></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2FetechGuide.in%2Feclipse%2Fhow-to-create-a-basic-eclipse-plug-in%2F&amp;linkname=How%20to%20create%20a%20basic%20eclipse%20plug-in"><img src="http://etechGuide.in/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://etechGuide.in/eclipse/how-to-create-a-basic-eclipse-plug-in/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
