private void makeActionsSystem ( ) { /* aboutAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { new AboutWindow(); } }; BAMutil.setActionProperties( aboutAction, null, "About", false, 'A', 0); */ /* printAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { PrinterJob printJob = PrinterJob.getPrinterJob(); PageFormat pf = printJob.defaultPage(); // do we need to rotate ?? if (panz.wantRotate( pf.getImageableWidth(), pf.getImageableHeight())) pf.setOrientation( PageFormat.LANDSCAPE); else pf.setOrientation(PageFormat.PORTRAIT); printJob.setPrintable(controller.getPrintable(), pf); if (printJob.printDialog()) { try { if (Debug.isSet("print.job")) System.out.println("call printJob.print"); printJob.print(); if (Debug.isSet("print.job")) System.out.println(" printJob done"); } catch (Exception PrintException) { PrintException.printStackTrace(); } } } }; BAMutil.setActionProperties( printAction, "Print", "Print...", false, 'P', KeyEvent.VK_P); sysConfigAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { if (sysConfigDialog == null) makeSysConfigWindow(); sysConfigDialog.show(); } }; BAMutil.setActionProperties( sysConfigAction, "Preferences", "Configure...", false, 'C', -1); clearDebugFlagsAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { Debug.clear(); } }; BAMutil.setActionProperties( clearDebugFlagsAction, null, "Clear DebugFlags", false, 'D', -1); clearRecentAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { recentDatasetList = new ArrayList(); } }; BAMutil.setActionProperties( clearRecentAction, null, "Clear Recent Datasets", false, 'R', -1); */ AbstractAction clearDebugFlagsAction = new AbstractAction ( ) { public void actionPerformed ( ActionEvent e ) { /* Debug.clear(); */ } } ; BAMutil . setActionProperties ( clearDebugFlagsAction , null , "Clear Debug Flags" , false , ' ' , - 1 ) ; /* AbstractAction setDebugFlagsAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { // LOOK set netcdf debug flags InvCatalogFactory.debugURL = Debug.isSet("InvCatalogFactory/debugURL"); InvCatalogFactory.debugOpen = Debug.isSet("InvCatalogFactory/debugOpen"); InvCatalogFactory.debugVersion = Debug.isSet("InvCatalogFactory/debugVersion"); InvCatalogFactory.showParsedXML = Debug.isSet("InvCatalogFactory/showParsedXML"); InvCatalogFactory.showStackTrace = Debug.isSet("InvCatalogFactory/showStackTrace"); InvCatalogFactory.debugXML = Debug.isSet("InvCatalogFactory/debugXML"); InvCatalogFactory.debugDBurl = Debug.isSet("InvCatalogFactory/debugDBurl"); InvCatalogFactory.debugXMLopen = Debug.isSet("InvCatalogFactory/debugXMLopen"); InvCatalogFactory.showCatalogXML = Debug.isSet("InvCatalogFactory/showCatalogXML"); } }; BAMutil.setActionProperties(setDebugFlagsAction, null, "Set Debug Flags", false, 'S', -1); */ /* exitAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { topLevel.close(); } }; BAMutil.setActionProperties( exitAction, "Exit", "Exit", false, 'X', -1); */ }
actions that are system - wide