1 11 12 package org.eclipse.ui.internal.services; 13 14 import org.eclipse.core.expressions.Expression; 15 import org.eclipse.jface.util.IPropertyChangeListener; 16 17 21 public class EvaluationReference extends EvaluationResultCache implements 22 IEvaluationReference { 23 24 private IPropertyChangeListener listener; 25 private String property; 26 private boolean postingChanges = true; 27 private IEvaluationReference targetReference; 28 29 32 public EvaluationReference(Expression expression, 33 IPropertyChangeListener listener, String property, IEvaluationReference targetReference) { 34 super(expression); 35 this.listener = listener; 36 this.property = property; 37 this.targetReference = targetReference; 38 } 39 40 45 public IPropertyChangeListener getListener() { 46 return listener; 47 } 48 49 public String getProperty() { 50 return property; 51 } 52 53 56 public void setPostingChanges(boolean evaluationEnabled) { 57 this.postingChanges = evaluationEnabled; 58 } 59 60 63 public boolean isPostingChanges() { 64 return postingChanges; 65 } 66 67 public IEvaluationReference getTargetReference() { 68 return targetReference; 69 } 70 71 74 public void setTargetReference(IEvaluationReference targetReference) { 75 this.targetReference = targetReference; 76 } 77 } 78 | Popular Tags |