1 16 17 package Raptor.listeners; 18 19 import Jmc.baseGui.*; 20 import Jmc.baseTools.*; 21 import Raptor.model.*; 22 import Jmc.commonGui.*; 23 24 34 public class updateFactPar_li implements base_guiListener 35 { 36 public void pcmf_execListener(base_guiObj xParam) throws Exception 37 { 38 base_appl_if l_appl = xParam.pcmf_getAppl(); 39 raptor_mainModel l_model = (raptor_mainModel)l_appl.pcmf_getGuiObj().pcmf_getModel(); 40 41 try 42 { 43 String l_path = (String )base_environment.pcmf_getParameter("environment.xml", xParam.pcmf_getValue().toString(), "FACTORY_DEF"); 44 ((base_guiObj)base_registredObject.pcmf_getObjByName("FactField")).pcmf_setValue(l_path); 45 l_model.getPem_settings().setPem_actTplKitPar(l_path); 46 l_model.getPem_settings().setPem_actTplKit(xParam.pcmf_getValue().toString()); 47 l_model.setPem_fact(new gui_objFactory (l_path)); 48 l_model.pcmf_loadTplKitValues(xParam.pcmf_getValue().toString()); 49 l_model.pcmf_createAutoWdgPreview(); 50 ((base_guiObj)base_registredObject.pcmf_getObjByName("KitTplTable")).pcmf_repaint(); 51 l_model.getPem_settings().pcmf_readPluginDef(); 52 l_model.getPem_settings().pcmf_showPlDetail(); 53 54 l_appl.pcmf_getGuiObj().pcmf_repaint(); 55 } 56 catch (Exception e) 57 { 58 l_model.pcmf_addMessage("- no widget to view selected", raptor_mainModel.RAPTOR_MESSAGE); 59 base_log.pcmf_logException(l_appl.pcmf_getGuiObj().pcmf_getName(), this, e); 60 }; 61 } 62 } | Popular Tags |