Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

subclipse not showing "share project" option on project context menu in eclipse

Within eclipse, with Subclipse installed, if I right click a project and select "team" there are normally 2 options:

  • apply patch
  • share project

Once you have shared project you get the full Subclipse menu from "team"

One project however only has one option - apply patch. If I close the project I see both options but the share project option is grayed out.

I have other projects where this is not happening.

What could be special about this project to stop me getting the share project option? Is there another path to the share project function I could use?

Regards

like image 740
P0rridge Avatar asked Sep 22 '10 07:09

P0rridge


People also ask

How do I share my project in Eclipse?

Right-click the project and click Team > Share Project. In the Share Project wizard, select Jazz Source Control as the repository type and click Next. If you are not already connected to the repository in which you want to share the project, select a repository to use and click Login.

How do I add two projects in eclipse?

If all of your old projects exist in a single directory or in a single parent directory, you can do File -> Import... -> Existing Projects into workspace. Choose a root directory that is a parent all of the projects you want to import. You will then be able to import all of the projects at once.


2 Answers

Solve this problem with these steps:

  • Verify that you can update using TortoiseSVN (this will guarantee that your .svn is not corrupt)
  • Delete all your projects that have this problem, but in the delete dialog, do not delete the project contents!
  • Select File -> Import -> Existing projects into Workspace.
  • Select your projects folder or your workspace folder.

Subeclipse should now detect and connect your projects automatically, without need to select 'Share Project' for each one of them.

like image 113
rcmadruga Avatar answered Sep 22 '22 06:09

rcmadruga


This is usually the case when the directory containing the project is not properly under version control (bad or corrupted .svn).

So:

  • can you execute SVN commands in a shell a the root of your project?
  • where are your .project and .classpath files (in the eclipse workspace or at the root directory of your project?)
like image 40
VonC Avatar answered Sep 20 '22 06:09

VonC