1 16 17 package packager.listeners; 18 19 import Jmc.baseGui.*; 20 import Jmc.baseTools.*; 21 import Jmc.commonGui.*; 22 import java.io.*; 23 24 import packager.model.*; 25 26 36 public class SelectTarget_li implements base_guiListener 37 { 38 47 public void pcmf_execListener(base_guiObj xParam) throws Exception 48 { 49 base_treeView_if l_tree = (base_treeView_if)xParam; 51 base_text_if l_label = (base_text_if)base_registredObject.pcmf_getObjByName("targetLabel"); 52 MainModel l_model = (MainModel)xParam.pcmf_getAppl().pcmf_getGuiObj().pcmf_getModel(); 53 File l_file = null; 54 55 if (l_tree.pcmf_getToggled() == null && l_tree.pcmf_getValue() instanceof base_treeNode) 57 { 58 Object l_obj = ((base_treeNode)l_tree.pcmf_getValue()).pcmf_getValue(); 59 if (l_obj instanceof File) 60 { 61 l_file = (File)((base_treeNode)l_tree.pcmf_getValue()).pcmf_getValue(); 62 l_label.pcmf_getGuiObj().pcmf_setValue("Target: " + l_file.getAbsolutePath()); 63 } 64 else 65 l_label.pcmf_getGuiObj().pcmf_setValue("Target: " + l_obj.toString()); 66 67 l_model.pcmf_setTarget(((base_treeNode)l_tree.pcmf_getValue())); 69 70 l_model.pcmf_updateTargetView(); 72 } 73 } 74 } 75 | Popular Tags |