[EGIT PATCH] Allow EGit to handle linked resources at any depth

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[EGIT PATCH] Allow EGit to handle linked resources at any depth

Shawn Pearce
We already were handling linked resources that appear anywhere
in the project, but Eclipse didn't know we were willing to do
that sort of magic in our provider code as we did not override
the correct method for it in GitProvider.

We now support linked folders which are at any level.

Signed-off-by: Shawn O. Pearce <[hidden email]>
 .../src/org/spearce/egit/core/GitProvider.java     |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/GitProvider.java b/org.spearce.egit.core/src/org/spearce/egit/core/GitProvider.java
index fcab971..a16aca9 100644
--- a/org.spearce.egit.core/src/org/spearce/egit/core/GitProvider.java
+++ b/org.spearce.egit.core/src/org/spearce/egit/core/GitProvider.java
@@ -41,6 +41,11 @@ public class GitProvider extends RepositoryProvider {
  return true;
+ @Override
+ public boolean canHandleLinkedResourceURI() {
+ return true;
+ }
  public synchronized IMoveDeleteHook getMoveDeleteHook() {
  if (hook == null) {
  hook = new GitMoveDeleteHook(getData());

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html