SVN Repository View in Eclipse

This is a way to browse SVN Repository in eclipse.

To open the SVN Repository View, go to Windows> Open Perspective > Others > SVN Repository Exploring

Advertisements

Eclipse error: Resource is out of sync with the file system

Today when I tried to run the project in eclipse, I received this error: Resource is out of sync with the file system.

My solution is to do a refresh on the project via Project Explorer and start the server again.

Subclipse 1.6 Update to HEAD VS Update to Version…

Today I updated my eclipse to use subclipse version 1.6. When I go to Team, there are 2 update functions: update to head and update to version.

According to a release note:

Update has been renamed to Update to HEAD

Update to version has been added

Source: http://subclipse.tigris.org/issues/show_bug.cgi?id=866

Rename Java Package in Eclipse

Today, I attempted to change a java package name. I did a right click at the package name and there’s no “Rename.”

What I did is creating a new package, say package.my.new. Then I go to package.my, right click > refactor> move and select package.my.new.

I then edited web.xml file, do a search replace from package.my to package.my.new and it works.

However, later I found that there’s a function “rename” under refactor. but I have not tried it. I will check it out next time.

Ecplise and SVN

Today I installed Eclipse [3.4] (http://www.eclipse.org/) on my Windows machine. The installtion is very straight forward. However, some extra works are required to get it to work with SVN.

Installing subclipse:

1. Go to Help > Software Updates

2. Go to Available Software tab

3. Add Site: http://subclipse.tigris.org/update_1.4.x

4. Expand subclipse tree.

5. Tick: Subclipse and JavaHL Adapter

6. Install

7. Restart eclipse

My frist attempt was to install without JavaHL Adapter. When I tried to checkout an SVN project, I have got this error “Unable to load default SVN client.” Thanks to Google (http://www.google.com) and this blog (http://www.coldfusionjedi.com/index.cfm/2008/9/5/Subclipse-and-Unable-to-load-default-SVN-client)

Note: Eclipse version in the image is 3.0 but I am using 3.4