@Override public void collectExpressionInfo(ExpressionInfo info) { ExpressionInfo other= new ExpressionInfo(); super.collectExpressionInfo(other); if (other.hasDefaultVariableAccess()) { info.addVariableNameAccess(fVariable); } info.mergeExceptDefaultVariable(other); }
@Override public void collectExpressionInfo(ExpressionInfo info) { info.markDefaultVariableAccessed(); }
public void collectExpressionInfo(ExpressionInfo info) { info.markDefaultVariableAccessed(); info.addAccessedPropertyName(fNamespace + PROP_SEP + fProperty); }
/** * Merges this reevaluation information with the given info. * * @param other the information to merge with */ public void merge(ExpressionInfo other) { mergeDefaultVariableAccess(other); mergeSystemPropertyAccess(other); mergeAccessedVariableNames(other); mergeAccessedPropertyNames(other); mergeMisbehavingExpressionTypes(other); }
@Override public void collectExpressionInfo(ExpressionInfo info) { info .addVariableNameAccess(ISources.ACTIVE_WORKBENCH_WINDOW_NAME); } };
@Override public void addEvaluationReference(IEvaluationReference ref) { EvaluationReference eref = (EvaluationReference) ref; refs.add(eref); boolean changed = false; if (eref.getExpression() != null) { ExpressionInfo info = new ExpressionInfo(); eref.getExpression().collectExpressionInfo(info); for (String varName : info.getAccessedVariableNames()) { if (ratVariables.add(varName)) { changed = true; } } if (info.hasDefaultVariableAccess() && ratVariables.add(IServiceConstants.ACTIVE_SELECTION)) { changed = true; } } if (changed) { contextEvaluate(); } eref.participating = true; ratContext.runAndTrack(eref); }
/** * Computes the expression information for the given expression tree. * <p> * This is a convenience method for collecting the expression information * using {@link Expression#collectExpressionInfo(ExpressionInfo)}. * </p> * * @return the expression information * * @since 3.2 */ public final ExpressionInfo computeExpressionInfo() { ExpressionInfo result= new ExpressionInfo(); collectExpressionInfo(result); return result; }
@Override public boolean changed(IEclipseContext context) { ExpressionInfo info = new ExpressionInfo(); IEclipseContext leafContext = windowContext.getActiveLeaf(); MenuManagerRendererFilter.collectInfo(info, mainMenu, renderer, leafContext, true); // if one of these variables change, re-run the RAT for (String name : info.getAccessedVariableNames()) { leafContext.get(name); } if (canUpdateMenus && workbench.getDisplay() != null) { canUpdateMenus = false; workbench.getDisplay().asyncExec(menuUpdater); } return manageChanges; } };
if (info.hasDefaultVariableAccess()) { sourcePriority |= ISources.ACTIVE_CURRENT_SELECTION; final String[] sourceNames = info.getAccessedVariableNames(); for (final String sourceName : sourceNames) { sourcePriority |= getMapping(sourceName);
/** * Collects information about this expression tree. This default * implementation add the expression's type to the set of misbehaving * expression types. * * @param info the expression information object used * to collect the information * * @since 3.2 */ public void collectExpressionInfo(ExpressionInfo info) { info.addMisBehavingExpressionType(getClass()); }
@Override public void collectExpressionInfo(ExpressionInfo info) { info.markSystemPropertyAccessed(); }
/** * Merges this reevaluation information with the given info. * * @param other the information to merge with */ public void merge(ExpressionInfo other) { mergeDefaultVariableAccess(other); mergeSystemPropertyAccess(other); mergeAccessedVariableNames(other); mergeAccessedPropertyNames(other); mergeMisbehavingExpressionTypes(other); }
@Override public void collectExpressionInfo(ExpressionInfo info) { info.addVariableNameAccess(ISources.ACTIVE_CONTEXT_NAME); info.addVariableNameAccess(ISources.ACTIVE_PART_ID_NAME); }
/** * Computes the expression information for the given expression tree. * <p> * This is a convenience method for collecting the expression information * using {@link Expression#collectExpressionInfo(ExpressionInfo)}. * </p> * * @return the expression information * * @since 3.2 */ public final ExpressionInfo computeExpressionInfo() { ExpressionInfo result= new ExpressionInfo(); collectExpressionInfo(result); return result; }
ExpressionInfo info = new ExpressionInfo(); record.collectInfo(info); updateVariables.addAll(Arrays.asList(info.getAccessedVariableNames())); final IEclipseContext parentContext = getContext(toolbarModel); parentContext.runAndTrack(new RunAndTrack() {
/** * Collects information about this expression tree. This default * implementation add the expression's type to the set of misbehaving * expression types. * * @param info the expression information object used * to collect the information * * @since 3.2 */ public void collectExpressionInfo(ExpressionInfo info) { info.addMisBehavingExpressionType(getClass()); }
@Override public void collectExpressionInfo(ExpressionInfo info) { info.markSystemPropertyAccessed(); }
@Override public void collectExpressionInfo(ExpressionInfo info) { ExpressionInfo other= new ExpressionInfo(); super.collectExpressionInfo(other); if (other.hasDefaultVariableAccess()) { info.addVariableNameAccess(fVariable); } info.mergeExceptDefaultVariable(other); } }
/** * Merges this reevaluation information with the given info. * * @param other the information to merge with */ public void merge(ExpressionInfo other) { mergeDefaultVariableAccess(other); mergeSystemPropertyAccess(other); mergeAccessedVariableNames(other); mergeAccessedPropertyNames(other); mergeMisbehavingExpressionTypes(other); }
@Override public final void collectExpressionInfo(final ExpressionInfo info) { info .addVariableNameAccess(SourcePriorityNameMapping.LEGACY_LEGACY_NAME); } };