Hi Daniel, Thanks, I folded that patch in. I also created a test case that illustrates the bug.
Interestingly, another bug is that if I create a Case Actor that has a case with a pattern "A" that is double-quote A double-quote then the double quotes are not properly translated and the model fails to open because the MoML looks like: <entity name=""A"" class="ptolemy.actor.lib.hoc.Refinement"> _Christopher -------- Hi ptolemy-hackers, The Case director does not find the correct Refinement when the control token is a string. Attached is a patch. Thanks, --dan --------------060406080604070009040009 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="patch-CaseDirector.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-CaseDirector.diff" Index: CaseDirector.java =================================================================== RCS file: /home/cvs/cvsanon/ptII/ptolemy/actor/lib/hoc/CaseDirector.java,v retrieving revision 1.10 diff -r1.10 CaseDirector.java 40a41 > import ptolemy.data.StringToken; 180c181,190 < String controlValue = container.control.getToken().toString() ; --- > String controlValue; > Token t = container.control.getToken(); > // if it's a string, use stringValue() otherwise there > // are quotes around the string. > if (t instanceof StringToken) { > controlValue = ((StringToken)t).stringValue(); > } else { > controlValue = t.toString(); > } > ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]