<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Eclipse on Craig Pardey</title>
    <link>https://www.craigpardey.com/tags/eclipse/</link>
    <description>Recent content in Eclipse on Craig Pardey</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 20 Mar 2012 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.craigpardey.com/tags/eclipse/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Two Eclipse Icons in Windows 7 taskbar</title>
      <link>https://www.craigpardey.com/post/2012-03-20-two-eclipse-icons-in-windows-7-taskbar/</link>
      <pubDate>Tue, 20 Mar 2012 00:00:00 +0000</pubDate>
      <guid>https://www.craigpardey.com/post/2012-03-20-two-eclipse-icons-in-windows-7-taskbar/</guid>
      <description>&lt;p&gt;I had an annoying problem on Windows 7 x64 with Helios x64 where I had pinned&#xA;Eclipse to the taskbar but would see two icons whenever Eclipse was running. I&#xA;found that the following workaround works with the option &amp;ldquo;Always combine,&#xA;hide labels&amp;rdquo; for taskbar buttons.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You must specify a -vm argument in your &amp;ldquo;eclipse.ini&amp;rdquo; file (in your Eclipse directory).&lt;/li&gt;&#xA;&lt;li&gt;The -vm argument in your &amp;ldquo;eclipse.ini&amp;rdquo; must point to the &lt;strong&gt;bin&lt;/strong&gt; directory of your JDK or JRE (and &lt;strong&gt;&lt;em&gt;not to javaw.exe&lt;/em&gt;&lt;/strong&gt;). For me the argument is &amp;ldquo;C:/Program Files/Java/jdk1.6.0_27/bin/&amp;rdquo; without quotes.&lt;/li&gt;&#xA;&lt;li&gt;Unpin Eclipse from the taskbar or delete the shortcut&lt;/li&gt;&#xA;&lt;li&gt;Run &amp;ldquo;eclipse.exe&amp;rdquo; from Windows Explorer and choose your workspace&lt;/li&gt;&#xA;&lt;li&gt;Pin Eclipse to the taskbar after the splash screen has loaded and the main window is shown&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Eclipse keyboard shortcuts</title>
      <link>https://www.craigpardey.com/post/2011-02-24-eclipse-keyboard-shortcuts/</link>
      <pubDate>Thu, 24 Feb 2011 00:00:00 +0000</pubDate>
      <guid>https://www.craigpardey.com/post/2011-02-24-eclipse-keyboard-shortcuts/</guid>
      <description>&lt;p&gt;When I first started working at Intelliware I was amazed at how efficient the&#xA;developers were while working in Eclipse. Most of this efficiency and speed&#xA;came from a deep knowledge of Eclipse&amp;rsquo;s keyboard shortcuts.&lt;/p&gt;&#xA;&lt;p&gt;Here is my list of Eclipse keyboard shortcuts that every developer should&#xA;know.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-Shift-L&lt;/strong&gt;: Show list of shortcuts&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-K&lt;/strong&gt;: Find next&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-Shift-R&lt;/strong&gt;: Open a file in your workspace. It supports CamelCase shorthand too, so &amp;ldquo;SBFil&amp;rdquo; will find &amp;ldquo;SomeBigFile.java&amp;rdquo; and &amp;ldquo;SBFile.java&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-Shift-G&lt;/strong&gt;: Find references for a class or method. Want to find who calls MyClass.getName()? Put your cursor on the getName() definition and hit Ctrl-Shift-G&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;F3&lt;/strong&gt;: Drill into a method. This will jump from the code that calls the method into the method definition. Similar to holding Ctrl and clicking on the method call.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-T&lt;/strong&gt;: Open implementors of an interface. Very useful when using F3 to follow the flow of method calls.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-O&lt;/strong&gt;: Open a list of method declarations in the current class. Allows you to jump directly to the method using the arrow keys and enter. &lt;strong&gt;Bonus points&lt;/strong&gt;: typing Ctrl-O again while the list is showing will also list method declarations from all superclasses&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-E&lt;/strong&gt;: Shows a list that allows you to switch between open files&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Alt-Shift-W&lt;/strong&gt;: Locates the current file in the Navigation or Package Explorer tree.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-L&lt;/strong&gt;: Go to line number. You might want to show line numbers by default by changing the preference General&amp;gt;Editors&amp;gt;Text Editors&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-H&lt;/strong&gt;: Find a string in all files. You can customize this to only show the File search by clicking the Customize button and unchecking the other options&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-Shift-O&lt;/strong&gt;: Organize import statements. This also removes any unused imports.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ctrl-Shift-F&lt;/strong&gt;: Reformat the file&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You should also familiarize yourself with the following debugging shortcuts&lt;/p&gt;</description>
    </item>
    <item>
      <title>Eclipse can&#39;t find source when remote debugging</title>
      <link>https://www.craigpardey.com/post/2010-03-25-eclipse-cant-find-source-when-remote-debugging/</link>
      <pubDate>Thu, 25 Mar 2010 00:00:00 +0000</pubDate>
      <guid>https://www.craigpardey.com/post/2010-03-25-eclipse-cant-find-source-when-remote-debugging/</guid>
      <description>&lt;p&gt;I had a problem recently where Eclipse couldn&amp;rsquo;t find my source files when&#xA;remote debugging a particular application. It would stop and the breakpoint&#xA;and show the class file with a &amp;ldquo;attach source&amp;rdquo; button, but pointing it to the&#xA;source directory didn&amp;rsquo;t do anything.&lt;/p&gt;&#xA;&lt;p&gt;It turns out that the solution was to add the project to the remote debug&#xA;configuration.&lt;/p&gt;&#xA;&lt;p&gt;This is done by &amp;ldquo;Run -&amp;gt; Debug configurations&amp;hellip;&amp;rdquo;&lt;br&gt;&#xA;Choose the remote config from the tree on the left&lt;br&gt;&#xA;Click on the &amp;ldquo;Source&amp;rdquo; tab&lt;br&gt;&#xA;Click on the &amp;ldquo;Add&amp;hellip;&amp;rdquo; button&lt;br&gt;&#xA;Follow the wizard.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
