http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5723
Christopher Brooks <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Hours Worked| |1.00 CC| |[email protected] Hours Left|0.00 |2.00 --- Comment #1 from Christopher Brooks <[email protected]> --- That's a strange bug. I think the problem is with the $x syntax in the pattern PortParameter that is in string mode. ptolemy/actor/gui/RenameConfigurer.java generates a MoMLChangeRequest that looks like: <property name="x"><rename name="y"/></property> MoMLParser parses it and calls ptolemy.data.expr.Variable.setName() which finds the listeners and sets the expression in an unusual manner: --start-- if (_valueListeners != null) { Iterator listeners = _valueListeners.iterator(); while (listeners.hasNext()) { ValueListener listener = (ValueListener) listeners .next(); if (listener instanceof Variable) { // The listener could be referencing this variable. ParseTreeFreeVariableRenamer renamer = new ParseTreeFreeVariableRenamer(); ((Variable) listener)._parseIfNecessary(); renamer.renameVariables( ((Variable) listener)._parseTree, (Variable) listener, this, name); ParseTreeWriter writer = new ParseTreeWriter(); ((Variable) listener) .setExpression(writer .parseTreeToExpression(((Variable) listener)._parseTree)); changed.add(listener); } } } super.setName(name); // With the new name, we may now shadow variables that // were not previously shadowed. Invalidate those. _invalidateShadowedSettables(getContainer()); validate(); --end--- I think the problem is that the $x expression is getting evaluated somewhere. -- You are receiving this mail because: You are the QA Contact for the bug.
_______________________________________________ Kepler-dev mailing list [email protected] http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
