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 public class treeGoTop_tr extends base_transaction 27 { 28 public treeGoTop_tr() 29 { 30 super(); 31 32 this.pcmf_setWorkFct(new work ()); 33 } 34 35 class work implements base_executableObject_if 36 { 37 public Object pcmf_execObj(Object xObj) 38 { 39 base_guiObj l_obj = (base_guiObj)xObj; 40 base_appl_if l_appl = l_obj.pcmf_getAppl(); 41 raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel(); 42 base_treeView_if l_tree = (base_treeView_if)l_model.getPem_appTree(); 43 44 try 45 { 46 l_tree.pcmf_setRoot((base_treeNode)l_model.getPem_root()); 47 } 48 catch (Exception e) 49 { 50 l_model.pcmf_addMessage("- fatal error, can not recover", raptor_mainModel.RAPTOR_ERROR); 51 base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e); 52 }; 53 54 l_appl.pcmf_setActive(null); 55 56 return (null); 57 }; 58 }; 59 } | Popular Tags |