~veger/ganttproject/manual-import

« back to all changes in this revision

Viewing changes to ganttproject/src/net/sourceforge/ganttproject/OSXAdapter.java

  • Committer: Maarten Bezemer
  • Date: 2012-01-22 12:20:00 UTC
  • Revision ID: maarten.bezemer@gmail.com-20120122122000-qwyec45rjx86wi7o
Updated till 2fe683a778c3 

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
This program is free software; you can redistribute it and/or
6
6
modify it under the terms of the GNU General Public License
7
 
as published by the Free Software Foundation; either version 2
 
7
as published by the Free Software Foundation; either version 3
8
8
of the License, or (at your option) any later version.
9
9
 
10
10
This program is distributed in the hope that it will be useful,
15
15
You should have received a copy of the GNU General Public License
16
16
along with this program; if not, write to the Free Software
17
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 
 */
 
18
*/
19
19
package net.sourceforge.ganttproject;
20
20
 
21
21
import java.io.IOException;
22
22
 
23
23
import net.sourceforge.ganttproject.document.Document;
24
24
import net.sourceforge.ganttproject.document.Document.DocumentException;
25
 
import net.sourceforge.ganttproject.gui.about.AboutDialog;
 
25
import net.sourceforge.ganttproject.gui.about.AboutDialog2;
26
26
 
27
27
import com.apple.eawt.ApplicationAdapter;
28
28
import com.apple.eawt.ApplicationEvent;
64
64
    /** Handle the Mac OSX "about" menu option. */
65
65
    @Override
66
66
    public void handleAbout(ApplicationEvent event) {
67
 
        AboutDialog abd = new AboutDialog(myProj);
68
 
        abd.setVisible(true);
 
67
        AboutDialog2 abd = new AboutDialog2(myProj.getUIFacade());
 
68
        abd.show();
69
69
        // Indicate we've handled this event ourselves
70
70
        event.setHandled(true);
71
71
    }