1 16 17 package Raptor.transactions; 18 19 import Jmc.seviceLayer.base_transaction; 20 import Jmc.baseTools.*; 21 import Jmc.commonGui.*; 22 import Jmc.baseGui.*; 23 24 import Raptor.model.*; 25 26 36 public class previewClean_tr extends base_transaction 37 { 38 39 42 public previewClean_tr() 43 { 44 super(); 45 46 this.pcmf_setWorkFct(new work ()); 47 } 48 49 class work implements base_executableObject_if 50 { 51 public Object pcmf_execObj(Object xObj) 52 { 53 base_guiObj l_obj = (base_guiObj)xObj; 54 base_appl_if l_appl = l_obj.pcmf_getAppl(); 55 raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel(); 56 57 try 58 { 59 l_model.pcmf_cleanupPreview(); 60 } 61 catch (Exception e) 62 { 63 l_model.pcmf_addMessage("- error cleaning-up preview, save work and exit", raptor_mainModel.RAPTOR_ERROR); 64 base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e); 65 }; 66 67 l_appl.pcmf_setActive(null); 68 return (null); 69 }; 70 }; 71 } | Popular Tags |