svn commit: r18023 - trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2010-02-16 00:38:55-0800
New Revision: 18023

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java

Log:
Logging only

Modified: trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java?view=diff&pathrev=18023&r1=18022&r2=18023
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java	2010-02-16 00:38:55-0800
@@ -1145,19 +1145,26 @@
     }
     
     private void registerForMacEvents() {
+        LOG.info("Determining if Mac OS to set special handlers");
         if (OsUtil.isMacOSX()) {
+            LOG.info("System is Mac OS - setting special handlers");
             try {
                 // Generate and register the OSXAdapter, passing the methods 
                 // we wish to use as delegates for various
                 // com.apple.eawt.ApplicationListener methods
+                LOG.info("Registering Quit handler for Mac");
                 OSXAdapter.setQuitHandler(this, getClass().getDeclaredMethod(
                         "macQuit", (Class[]) null));
+                LOG.info("Registering About handler for Mac");
                 OSXAdapter.setAboutHandler(this, getClass().getDeclaredMethod(
                         "macAbout", (Class[]) null));
+                LOG.info("Registering Preferences handler for Mac");
                 OSXAdapter.setPreferencesHandler(this, getClass()
                         .getDeclaredMethod("macPreferences", (Class[]) null));
+                LOG.info("Registering File handler for Mac");
                 OSXAdapter.setFileHandler(this, getClass().getDeclaredMethod(
                         "macOpenFile", new Class[] {String.class}));
+                LOG.info("All Mac handlers set");
             } catch (Exception e) {
                 LOG.error("Error while loading the OSXAdapter:", e);
             }
@@ -1168,6 +1175,7 @@
      * Internal use only.  Do not use.
      */
     public void macQuit() {
+        LOG.info("Quit has been chosen on a Mac");
         exitAction.actionPerformed(null);
     }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2447991

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.