Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto re-attach subclipse when using a new Eclipse on an existing workspace

I have some projects in a workspace that were imported from SVN using Subclipse. Now I'm opening this workspace with a new version of Eclipse (with Subclipse) and the "Team" context menu only contains "Apply patch".

Is there a way of getting subclipse working with these projects without having remove them from the workspace, and do a new import from SVN?

like image 928
l3dx Avatar asked Sep 17 '09 13:09

l3dx


People also ask

How to reconnect project to SVN Eclipse?

Select the project you want to connect with SVN and right click to select Team > Share Project... This will begin the Share Project wizard. Select SVN as the repository type and click Next. The wizard will check for valid .


2 Answers

Maybe you do not have disconnected your projects before uninstalling the previous SVN Team Provider.
So all projects are still connected to the removed older version of the plug-in.
In that case Team Services does not show "Share Project" menu item.

The only way to reconnect these projects would be to remove them from workspace (without content deletion) then re-import these projects into workspace: pure eclipse operation: no SVN re-import needed.

See also this thread.

like image 52
VonC Avatar answered Oct 14 '22 22:10

VonC


If you've forgotten to "Disconnect" a project before switching plugins or Eclipse versions, you can clean it up by deleting some index files from your workspace.

Assuming you're on a 'nix-based OS shutdown Eclipse then:

cd $WORKSPACE
find .metadata/.plugins/org.eclipse.core.resources/.projects -name 'properties.index' -delete

Re-launch Eclipse, and you should be able to do Share Project again. The same works if you try to switch from Subversive to Subclipse and find yourself with only an Apply Patch option and no Share Project under the Team menu.

Solution oringinally found here: http://mschrag.blogspot.com/2010/11/switching-from-subversive-back-to.html

like image 38
pendor Avatar answered Oct 14 '22 20:10

pendor