public class Debug
extends java.lang.Object
if (Debug.isSet("Map.draw")) {
System.out.println("Map.draw: makeShapes with "+displayProject);
}
Example: adding the debug menu to a "System" menu
private JMenu debugMenu;
JMenu sysMenu = new JMenu("System");
debugMenu = (JMenu) sysMenu.add(new JMenu("Debug"));
debugMenu.addMenuListener( new MenuListener() {
public void menuSelected(MenuEvent e) { ucar.unidata.util.Debug.constructMenu(debugMenu); }
public void menuDeselected(MenuEvent e) {}
public void menuCanceled(MenuEvent e) {}
});
| Constructor and Description |
|---|
Debug() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
_more_
|
static void |
constructMenu(javax.swing.JMenu topMenu)
_more_
|
static void |
fetchPersistentData(PersistentStore store)
call this when you want to fetch the persistent data
|
static boolean |
isSet(java.lang.String flagName)
_more_
|
static void |
set(java.lang.String flagName,
boolean value)
_more_
|
static void |
storePersistentData(PersistentStore store)
call this when you want to store the persistent data
|
public static void fetchPersistentData(PersistentStore store)
store - public static void storePersistentData(PersistentStore store)
store - public static boolean isSet(java.lang.String flagName)
flagName - public static void set(java.lang.String flagName,
boolean value)
flagName - value - public static void clear()
public static void constructMenu(javax.swing.JMenu topMenu)
topMenu -