[kepler-dev] getting a tableau
Chad Berkley
berkley at nceas.ucsb.edu
Fri Dec 4 13:10:29 PST 2009
Thanks, Christopher, I'll try that. The models are already opened by
other functions. This is just for the apple extension that makes the
apple-q function work. I basically just want to tell ptolemy to close
everything and prompt the user to save if there are changes to any models.
chad
Christopher Brooks wrote:
> 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
>>
>
More information about the Kepler-dev
mailing list