class MacOsAdapter { //MAC extends ApplicationAdapter {
private static class MyListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
ApplicationEvent event2 = (ApplicationEvent) event;
int type = event2.getType();
switch (type) {
case ApplicationEvent.ABOUT:
About.showAboutDialog(null);
break;
case ApplicationEvent.QUIT_APPLICATION:
ProjectActions.doQuit();
break;
case ApplicationEvent.OPEN_DOCUMENT:
Startup.doOpen(event2.getFile());
break;
case ApplicationEvent.PRINT_DOCUMENT:
Startup.doPrint(event2.getFile());
break;
case ApplicationEvent.PREFERENCES:
PreferencesFrame.showPreferences();
break;
}