Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx> --- .../egit/ui/internal/decorators/GitDocument.java | 9 ++++++--- .../internal/decorators/GitQuickDiffProvider.java | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitDocument.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitDocument.java index 8c82a55..347e6fc 100644 --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitDocument.java +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitDocument.java @@ -34,6 +34,7 @@ static Map<GitDocument,Repository> doc2repo = new WeakHashMap<GitDocument, Repository>(); static GitDocument create(final IResource resource) throws IOException { + Activator.trace("(GitDocument) create: " + resource); GitDocument ret = null; if (RepositoryProvider.getProvider(resource.getProject()) instanceof GitProvider) { ret = new GitDocument(resource); @@ -51,6 +52,7 @@ private GitDocument(IResource resource) { } void populate() throws IOException { + Activator.trace("(GitDocument) populate: " + resource); set(""); final IProject project = resource.getProject(); RepositoryMapping mapping = RepositoryMapping.getMapping(project); @@ -70,7 +72,7 @@ void populate() throws IOException { } TreeEntry blobEnry = baselineTree.findBlobMember(gitPath); if (blobEnry != null) { - Activator.trace("(GitQuickDiffProvider) compareTo: " + baseline); + Activator.trace("(GitDocument) compareTo: " + baseline); ObjectLoader loader = repository.openBlob(blobEnry.getId()); byte[] bytes = loader.getBytes(); String charset; @@ -91,13 +93,14 @@ void populate() throws IOException { // to the content. We don't do that here. String s = new String(bytes, charset); set(s); - Activator.trace("(GitQuickDiffProvider) has reference doc, size=" + s.length() + " bytes"); + Activator.trace("(GitDocument) has reference doc, size=" + s.length() + " bytes"); } else { - Activator.trace("(GitQuickDiffProvider) no revision."); + Activator.trace("(GitDocument) no revision."); } } void dispose() { + Activator.trace("(GitDocument) dispose: " + resource); doc2repo.remove(this); Repository repository = getRepository(); if (repository != null) diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitQuickDiffProvider.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitQuickDiffProvider.java index 6c71f3c..91efb56 100644 --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitQuickDiffProvider.java +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitQuickDiffProvider.java @@ -42,6 +42,7 @@ * Create the GitQuickDiffProvider instance */ public GitQuickDiffProvider() { + Activator.trace("(GitQuickDiffProvider) constructor"); // Empty } @@ -77,6 +78,7 @@ public boolean isEnabled() { } public void setActiveEditor(ITextEditor editor) { + Activator.trace("(GitQuickDiffProvider) setActiveEditor: " + editor.getTitle()); IEditorInput editorInput = editor.getEditorInput(); resource = ResourceUtil.getResource(editorInput); } -- 1.6.2.1.345.g89fb -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html