Bug 274649 - Provide a way to disconnect projects from unavailable team provider
Summary: Provide a way to disconnect projects from unavailable team provider
Status: RESOLVED DUPLICATE of bug 198877
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-01 11:03 EDT by Markus Keller CLA
Modified: 2009-05-05 04:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2009-05-01 11:03:21 EDT
I20090430-0100 (with hacked o.e.jface so I could start)

The team UI should provide a way to disconnect projects from unavailable team providers.

I tried out a third-party repository provider a while ago and shared a project with it. In the meantime, I've deleted that repository provider. But my workspace still thinks the project should be connected to that team provider and
- keeps throwing the TeamException below
- does not allow me to share the project with a different repository provider

I had to go and delete .metadata/.plugins/org.eclipse.core.resources/.projects/myProject/.indexes on the file system to make the project shareable again.

If the existing team provider is not available, I should get a generic Team > Disconnect... action that
- removes the team provider
- removes team-private resources in the project


Error
Fri May 01 15:43:05 CEST 2009
Could not instantiate provider org.spearce.egit.core.GitProvider for project myProject.

org.eclipse.team.core.TeamException: Could not instantiate provider org.spearce.egit.core.GitProvider for project myProject.
at org.eclipse.team.core.RepositoryProvider.mapNewProvider(RepositoryProvider.java:165)
at org.eclipse.team.core.RepositoryProvider.mapExistingProvider(RepositoryProvider.java:235)
at org.eclipse.team.core.RepositoryProvider.getProvider(RepositoryProvider.java:507)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.isMappedToCVS(CVSLightweightDecorator.java:192)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.decorate(CVSLightweightDecorator.java:147)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Tomasz Zarna CLA 2009-05-05 04:40:20 EDT

*** This bug has been marked as a duplicate of bug 198877 ***