svn commit: r18089 - 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-03-11 12:19:08-0800
New Revision: 18089

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

Log:
Change to call GetMethod rather than getDeclaredMethod as suggested in http://argouml.tigris.org/issues/show_bug.cgi?id=6001

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=18089&r1=18088&r2=18089
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/cmd/GenericArgoMenuBar.java	2010-03-11 12:19:08-0800
@@ -1153,16 +1153,16 @@
                 // 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(
+                OSXAdapter.setQuitHandler(this, getClass().getMethod(
                         "macQuit", (Class[]) null));
                 LOG.info("Registering About handler for Mac");
-                OSXAdapter.setAboutHandler(this, getClass().getDeclaredMethod(
+                OSXAdapter.setAboutHandler(this, getClass().getMethod(
                         "macAbout", (Class[]) null));
                 LOG.info("Registering Preferences handler for Mac");
                 OSXAdapter.setPreferencesHandler(this, getClass()
-                        .getDeclaredMethod("macPreferences", (Class[]) null));
+                        .getMethod("macPreferences", (Class[]) null));
                 LOG.info("Registering File handler for Mac");
-                OSXAdapter.setFileHandler(this, getClass().getDeclaredMethod(
+                OSXAdapter.setFileHandler(this, getClass().getMethod(
                         "macOpenFile", new Class[] {String.class}));
                 LOG.info("All Mac handlers set");
             } catch (Exception e) {

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

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.