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 import Jmc.model.*; 24 25 import Raptor.model.*; 26 27 public class treeGoUp_tr extends base_transaction 28 { 29 public treeGoUp_tr() 30 { 31 super(); 32 33 this.pcmf_setWorkFct(new work ()); 34 } 35 36 class work implements base_executableObject_if 37 { 38 public Object pcmf_execObj(Object xObj) 39 { 40 base_guiObj l_obj = (base_guiObj)xObj; 41 base_appl_if l_appl = l_obj.pcmf_getAppl(); 42 raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel(); 43 base_treeView_if l_tree = (base_treeView_if)l_model.getPem_appTree(); 44 base_multipleModelValue_if l_select= l_model.getPem_treeSelection(); 45 46 try 47 { 48 base_treeNode l_parent = ((base_treeNode)l_select).pcmf_getParentNode(); 49 if (l_parent != null) 50 l_tree.pcmf_setRoot(l_parent); 51 else 52 l_model.pcmf_addMessage("- cannot go one step up, top is reached", raptor_mainModel.RAPTOR_INFO); 53 } 54 catch (Exception e) 55 { 56 l_model.pcmf_addMessage("- cannot go one step up, top is reached", raptor_mainModel.RAPTOR_INFO); 57 base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e); 58 }; 59 60 l_appl.pcmf_setActive(null); 61 62 return (null); 63 }; 64 }; 65 } | Popular Tags |