Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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