Installing Subversive in Eclipse Helios

In this tutorial we’re going to assume that you’re using Eclipse Helios

Since eclipse doesn’t have a subversion plug-in integrated in it we need to install it manually. And for that we will use subversive. Another alternative would be to use subclipse but in this tutorial we will stick with subversive.

To do that follow the steps below:

  1. Fire up eclipse and go to Help > Install New Software
  2. In the ‘Work with” textbox type: http://download.eclipse.org/releases/helios
  3. Expand the Collaboration box
  4. Then tick the box next to Subversion SVN Team Provider (Incubation)
       5. Click Next, Accept the agreement and Finish.
After finishing the installation eclipse will ask you to restart Eclipse for the changes to take effect. After restarting Eclipse follow these steps to install the SVNKit Connector:
  1. Go to Windows > Open Perspective > Other.
        2.  Select one of the SVN Kit 1.x.x options (e.g. SVN Kit 1.3.2)
        3.  Then click and click Next , read and accept the agreement and click Finish.
Eclipse will prompt you to restart it. After you’ve restarted Eclipse follow the next steps to connect to your online repository:
  1. Go to Window > Open Perspective > Other…
  2. Click on SVN Repository Exploring
  3. In the SVN Repositories view on the left hand side click the icon as in the figure below:
In the URL textbob type the URL of your local/online repository and complete the User and password fields which are the ones you use for the repository. And click Finish. If Eclipse prompts you for a password give the same password as the one for your repository.
And with that you have successfully installed subversive in eclipse and connected to your repository.
Now to actually code and commit changes to your repository you need to follow the following steps.
Normally, after you connect to your repository you will have a SVN Repositories tab on the left side of Eclipse where your repository link has been created:
As you can see I’ve added my repository on the left. In order to edit the file(s) and folder(s) inside that repository you need to link it with a project/folder/file in your local computer so that you can make changes and commit them. Right now your in view mode you cannot edit the files. To make it editable you need to follow the following steps:
  1. Right-click on the repository and select Find/Check Out As…
You will be presented with the following window:
As you can see, I chose the option to check out with the name specified, which means the project that will be created will copy the whole project and it’s name as well and will be stored in my Eclipse workspace.
You can also save the project with a different name in your workspace or somewhere else by checking the first option.
After we’re done we click on Finish.
Next we switch our perspective from the SVN Repositories to the Java perspective by clicking the double arrow icon on top right corner of Eclipse (see Fig below):
After you’ve switched to Java, you are now able to edit the files and folder and commit them to your repository. To commit, you first change a file in Eclipse and then save the file and right click somewhere inside the code of the file or on the file itself in left-hand side and go to Team > Commit.
That’s it for setting up subversive in Eclipse and editing your repository within Eclipse.
Happy coding!
This entry was posted in Version Control Systems. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s