1 28 29 package org.objectweb.fractal.explorer.menu; 30 31 import org.objectweb.fractal.api.Component; 32 import org.objectweb.fractal.api.NoSuchInterfaceException; 33 import org.objectweb.fractal.api.control.NameController; 34 import org.objectweb.fractal.explorer.FcExplorer; 35 import org.objectweb.util.explorer.api.MenuItemTreeView; 36 37 43 public class FixComponentNameOnComponentAction 44 extends FixComponentNameAction 45 { 46 52 58 64 67 protected NameController getNameController(MenuItemTreeView e){ 68 Component component = (Component)e.getSelectedObject(); 69 try{ 70 return FcExplorer.getNameController(component); 71 } catch (NoSuchInterfaceException ex) { 72 return null; 73 } 74 } 75 76 82 88 91 public void executeAction() throws Exception { 92 super.executeAction(); 93 tree_.renameSelectedNode(oldName_,nameBox_.getLabel()); 96 } 97 98 } | Popular Tags |