1 26 27 package org.objectweb.openccm.packaging; 28 29 33 public class PropertyfileEditActionListener 34 implements org.objectweb.util.browser.api.MenuItem 35 { 36 41 public int 42 getStatus(org.objectweb.util.browser.api.TreeView treeView) 43 { 44 return org.objectweb.util.browser.api.MenuItem.ENABLED_STATUS; 45 } 46 47 public void 48 actionPerformed (org.objectweb.util.browser.api.MenuItemTreeView the_event) 49 { 50 org.objectweb.util.browser.core.common.DynamicTree calling_tree 52 = (org.objectweb.util.browser.core.common.DynamicTree) 53 the_event.getTree(); 54 55 org.objectweb.apollon.gui.ApollonFrame calling_frame 57 = (org.objectweb.apollon.gui.ApollonFrame) 58 calling_tree.getRootPane().getParent(); 59 60 org.objectweb.openccm.descriptor.softpkg.beans.PropertyfileBean zeus_instance 62 = (org.objectweb.openccm.descriptor.softpkg.beans.PropertyfileBean) 63 the_event.getSelectedObject(); 64 65 FileOperations.open_file( 66 new java.io.File (zeus_instance.getFileinarchive().getName()) 67 , calling_frame 68 ); 69 } 70 } 71 | Popular Tags |