1 19 20 package org.netbeans.modules.db.explorer.actions; 21 22 import java.text.MessageFormat ; 23 import org.netbeans.modules.db.explorer.infos.TableOperations; 24 25 import org.openide.*; 26 import org.openide.nodes.Node; 27 28 import org.netbeans.modules.db.explorer.infos.DatabaseNodeInfo; 29 30 public class CreateProcedureAction extends DatabaseAction 31 { 32 static final long serialVersionUID =6900032866933824412L; 33 public void performAction(Node[] activatedNodes) 34 { 35 Node node; 36 if (activatedNodes != null && activatedNodes.length>0) 37 node = activatedNodes[0]; 38 else 39 return; 40 41 try { 42 DatabaseNodeInfo info = (DatabaseNodeInfo)node.getCookie(DatabaseNodeInfo.class); 43 TableOperations nfo = (TableOperations)info.getParent(nodename); 44 } catch(Exception exc) { 45 String message = MessageFormat.format(bundle().getString("ERR_UnableToCreateProcedure"), new String [] {exc.getMessage()}); DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); 47 } 48 } 49 } 50 | Popular Tags |