From: <no...@us...> - 2007-12-05 00:05:04
|
Revision: 1257 http://obo.svn.sourceforge.net/obo/?rev=1257&view=rev Author: nomi Date: 2007-12-04 16:04:47 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Call Phenote's showAboutFrame method when the top-level "About" menu item is invoked. (It was calling OBO-Edit's.) Modified Paths: -------------- phenote/trunk/src/java/phenote/main/PhenoteStartupTask.java Modified: phenote/trunk/src/java/phenote/main/PhenoteStartupTask.java =================================================================== --- phenote/trunk/src/java/phenote/main/PhenoteStartupTask.java 2007-12-05 00:02:23 UTC (rev 1256) +++ phenote/trunk/src/java/phenote/main/PhenoteStartupTask.java 2007-12-05 00:04:47 UTC (rev 1257) @@ -6,6 +6,9 @@ import java.util.List; import java.awt.Dimension; +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import javax.swing.Action; import javax.swing.JMenuItem; import javax.swing.JPanel; @@ -35,6 +38,7 @@ import phenote.gui.TermInfo2; import phenote.gui.NcbiInfo; import phenote.gui.field.FieldPanel; +import phenote.gui.HelpMenu; import phenote.gui.selection.SelectionBridge; import phenote.gui.menu.FileMenu; import phenote.gui.menu.EditMenu; @@ -95,6 +99,15 @@ return "Phenote"; // "DScribe"??? } + protected Action getAboutAction() { + return new AbstractAction("About") { + + public void actionPerformed(ActionEvent actionEvent) { + (new HelpMenu()).showAboutFrame(); + } + }; + } + @Override // ?? protected String getPerspectiveResourceDir() { // not using org This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |