Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java')
-rw-r--r--bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java b/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java
index fcbd937e8..db6b3a4eb 100644
--- a/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java
+++ b/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java
@@ -18,15 +18,21 @@ import org.eclipse.e4.core.internal.contexts.EclipseContext.Scheduled;
public class TrackableComputationExt extends Computation {
final private IEclipseContext originatingContext;
- private RunAndTrack runnable;
+ final private RunAndTrack runnable;
+
private ContextChangeEvent cachedEvent;
public TrackableComputationExt(RunAndTrack runnable, IEclipseContext originatingContext) {
this.runnable = runnable;
this.originatingContext = originatingContext;
+ init();
}
public int hashCode() {
+ return hashCode;
+ }
+
+ protected int calcHashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((originatingContext == null) ? 0 : originatingContext.hashCode());

Back to the top