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