[kepler-users] saving workflow from actor code
Christopher Brooks
cxh at eecs.berkeley.edu
Mon Jun 22 09:49:52 PDT 2009
Try something like:
import ptolemy.actor.gui.Configuration;
import ptolemy.actor.gui.Effigy;
...
Effigy effigy = Configuration.findEffigy(model.toplevel());
effigy.setModified(true);
...
_Christopher
Ufuk Utku Turuncoglu wrote:
> Hi,
>
> Thanks for your suggestion. Is it necessary to create MoMLChangeRequest
> for this purpose? Is there any example of it?
>
> Thanks,
>
> --ufuk
>
> Edward A. Lee wrote:
>>
>> Are you sure you want to do that? Saving a workflow without the user's
>> intervention seems dangerous.
>>
>> An alternative is to just mark the model modified so that when it is
>> closed,
>> the user is prompted about whether to save.
>>
>> Edward
>>
>>
>> Ufuk Utku Turuncoglu wrote:
>>> Hi,
>>>
>>> Is there any way to save the workflow from actor code? My custom
>>> actor changes its parameter value and i need the save the workflow
>>> when parameter field changes.
>>>
>>> Thanks,
>>>
>>> --ufuk
>>> _______________________________________________
>>> Kepler-users mailing list
>>> Kepler-users at kepler-project.org
>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks (cxh at eecs berkeley edu) 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 (W-F) 510.655.5480
More information about the Kepler-users
mailing list