GLOBAL.uiTools.selectTool(Integer.parseInt(source.getName()));
}
try {
GUIEvent e2 = new GUIEvent(null, null);
if (!source.getName().startsWith("menuitem"))
e2.val = Integer.parseInt(source.getName());
Method m = GLOBAL.uiTools.getClass().getDeclaredMethod(
source.getActionCommand(), new Class[] { e2.getClass() });
try {
m.invoke(GLOBAL.uiTools, new Object[] { e2 });
} catch (InvocationTargetException ex) {
LOGGER.error(ex.getCause().getMessage());
} catch (IllegalAccessException illegalaccessexception) {