Reworked the provider connection logic so that we can
commit2ffea2e6cb1e1ae271871dfbda32cc9949dfa96f
authorShawn O. Pearce <spearce@spearce.org>
Mon, 13 Mar 2006 08:22:58 +0000 (13 03:22 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 13 Mar 2006 08:22:58 +0000 (13 03:22 -0500)
treec4e04106055d2c06e3f0c1f8de79e75d1305973a
parenteb6ade9ebdb705f48eb421738745a3d070c5783f
Reworked the provider connection logic so that we can
properly catch failures from the implementation and report
them in the UI.  Unfortunately the Eclipse method of doing
this is just outright difficult to write.  Who ever thought
that handling an error would require so much work on the
part of the developer writing a simple wizard?

If we can't find a .git directly in the top level of the
project directory then we create it during a connection;
otherwise we use the existing .git directory.  This is
clearly not ideal as we should allow searching for a .git
directory in a parent or a .git directory within a single
folder within the project.  But I'm not sure I would agree
with allowing multiple .git directories within a single
project but in different folders of that project.

Patch: Prototype-Implementation
org.spearce.egit.core/src/org/spearce/egit/core/CoreText.java
org.spearce.egit.core/src/org/spearce/egit/core/GitCorePlugin.java
org.spearce.egit.core/src/org/spearce/egit/core/coretext.properties
org.spearce.egit.core/src/org/spearce/egit/core/op/ConnectProviderOperation.java [new file with mode: 0644]
org.spearce.egit.core/src/org/spearce/egit/core/op/RegisterProviderJob.java [deleted file]
org.spearce.egit.ui/src/org/spearce/egit/ui/GitUIPlugin.java
org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/sharing/CreateRepositoryPage.java [new file with mode: 0644]
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/sharing/SharingWizard.java
org.spearce.egit.ui/src/org/spearce/egit/ui/uitext.properties