[kepler-dev] getting a tableau

Christopher Brooks cxh at eecs.berkeley.edu
Fri Dec 4 13:00:05 PST 2009


Hi Chad,
The Configuration class comment says:

  <p>To access the configuration from a random place, if you have a
  NamedObj <code>foo</code>, then you can call:
  <pre>
  Effigy effigy = Configuration.findEffigy(foo.toplevel());
  Configuration configuration = effigy.toplevel();
  </pre>

Once you have the Effigy, you could call Effigy.closeTableau().

Of course, for this to work, you would have to have called
Configuration.openModel() so that the model is registered
in the ModelDirectory of the Configuration.  If you are not
calling openModel() to open files, then I'm not sure how
you would use the Configuration.

_Christopher




Chad Berkley wrote:
> Hi,
> 
> I was wondering if there's a way to get a reference to the topLevel 
> tableau from the configuration effigy without calling openModel().  I 
> don't actually want to view the tableau, I just want to get a reference 
> to it so I can tell ptolemy to quit.  Calling openModel() is having some 
> repercussions with kepler when I quit kepler with the apple-q command. I 
> think it's basically trying to open the tableau when we actually just 
> want the reference to the already open tableau so we can tell it to quit.
> 
> thanks,
> chad
> 

-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670


More information about the Kepler-dev mailing list