Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2016-02-26 06:45:11 +0000
committerMatthias Sohn2016-02-27 23:00:55 +0000
commit656db2d52b013d78d1ad0dc3c2b7b48ea406eac8 (patch)
treea830a15f1249d8bb49169fdcad97e8bf4c90e782
parent101ddf02ab1668b141848374ec57b9e8bd3ad28a (diff)
downloadegit-656db2d52b013d78d1ad0dc3c2b7b48ea406eac8.tar.gz
egit-656db2d52b013d78d1ad0dc3c2b7b48ea406eac8.tar.xz
egit-656db2d52b013d78d1ad0dc3c2b7b48ea406eac8.zip
Always listen to POST_CHANGE events in GitProjectData
Offering the option not to listen to POST_CHANGE events makes no sense anymore; GitProjectData always needs to listen to these events in order to detect submodules in subfolders. Also, the only call to attachToWorkspace() passed true anyway. Change-Id: I4be95fe965f491296854f571098261a4ba4933fe Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java2
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java6
2 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
index a482e21e0a..a54cfc24a9 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
@@ -182,7 +182,7 @@ public class Activator extends Plugin implements DebugOptionsListener {
} catch (RuntimeException e) {
logError(CoreText.Activator_ReconfigureWindowCacheError, e);
}
- GitProjectData.attachToWorkspace(true);
+ GitProjectData.attachToWorkspace();
repositoryUtil = new RepositoryUtil();
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java
index a6974e1408..efc753ba19 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java
@@ -102,14 +102,12 @@ public class GitProjectData {
/**
* Start listening for resource changes.
- *
- * @param includeChange true to listen to content changes
*/
- public static void attachToWorkspace(final boolean includeChange) {
+ public static void attachToWorkspace() {
trace("attachToWorkspace - addResourceChangeListener"); //$NON-NLS-1$
ResourcesPlugin.getWorkspace().addResourceChangeListener(
rcl,
- (includeChange ? IResourceChangeEvent.POST_CHANGE : 0)
+ IResourceChangeEvent.POST_CHANGE
| IResourceChangeEvent.PRE_CLOSE
| IResourceChangeEvent.PRE_DELETE);
}

Back to the top