1 19 package org.netbeans.modules.subversion.ui.browser; 20 21 import java.beans.PropertyVetoException ; 22 import javax.swing.AbstractAction ; 23 import org.openide.explorer.ExplorerManager; 24 import org.openide.nodes.Node; 25 26 30 public abstract class BrowserAction extends AbstractAction { 31 private Browser browser; 32 33 protected Browser getBrowser() { 34 return browser; 35 } 36 37 public void setBrowser(Browser browser) { 38 this.browser = browser; 39 } 40 41 protected ExplorerManager getExplorerManager() { 42 return getBrowser().getExplorerManager(); 43 } 44 45 protected Node[] getSelectedNodes() { 46 return getBrowser().getSelectedNodes(); 47 } 48 49 protected void setSelectedNodes(Node[] selection ) throws PropertyVetoException { 50 getBrowser().setSelectedNodes(selection); 51 } 52 53 } 54 | Popular Tags |