Skip to main content

Posts

Showing posts with the label Eclipse

Eclipse Tips

In few situations, you want eclipse to refresh the project contents automatically. Its might be required when you changed the one/more files of an eclipse project in some other editor and you wanted eclipse to reflect those changes automatically. If you are using version control and when you get latest changes from repository, you want those changes to be reflected on your eclipse. This can be configured in eclipse easily. Go to Window –> Preferences , in this  window select General –> Workspace from the tree in the left panel. When you select Workspace, you’ll see workspace related configuration options in the right panel. The top section will have three checkboxes, one of them will " Refresh Automatically ". Select this checkbox and click OK. Another feature which could be handy is to see different Icons for different file types like Interfaces, Classes, Abstract Classes, etc. You can set this in Window –> Preferences window. In this window select General –...

Attaching Source/Java Doc - In Eclipse

Its really simple to attach Source code/Java Doc in eclipse, for a library you are using in your application. Select the project for which you want to do the changes. Go to Project Menu –> Properties Select Libraries Tab Select and expand the Jar file for which you want to add source code/Java doc. This will show you the options "Source attachment" and "JavaDoc Location". Select "Source attachment" option, this will enable 'Edit' button. Click on Edit button, this will open "Source Attachment Configuration" dialog. Here you need to provide the location of the source code to be attached. You can provide either compressed [jar/zip] file Or directory location of the source code. And after providing the location press OK. Simple isn't it. For attaching JavaDoc select the option "JavaDoc" instead of "Source attachment" in the above mentioned step, and click on Edit. For JavaDoc you can either provide URL...

Changing Eclipse Workspace

Easy way to do this, go to “ File->Switch Workspace ”. This option will show you previously used workspaces. You can select workspace you want to use, if the one you want to use is listed in it. If not then select “Other” option. This will open “Workspace Launcher” dialog. This dialog will allow you to choose the directory which you want to use as workspace. Simple isn’t it! Well the hard way of doing this – Open the “ ECLIPSE_HOME/configuration/.settings ” directory, in this directory you’ll find a file “ org.eclipse.ui.ide.prefs ”. Open this file using any text editor like Notepad/Wordpad. This file contains workspace related configuration. “ SHOW_WORKSPACE_SELECTION_DIALOG ” and “ RECENT_WORKSPACES ” are the ones concerned to changing workspace. SHOW_WORKSPACE_SELECTION_DIALOG – This property will have either “true/false” value. If this property is set to true, then next time when you open eclipse, it’ll open “Workspace Launcher” dialog through which you can select the...