Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperGui.java |
— | — | @@ -190,6 +190,10 @@ |
191 | 191 | * @param args |
192 | 192 | */ |
193 | 193 | public static void main(String[] args) { |
| 194 | + // Set up some prettification if we're on Mac OS X |
| 195 | + System.setProperty("apple.laf.useScreenMenuBar", "true"); |
| 196 | + System.setProperty("com.apple.mrj.application.apple.menu.about.name", "MediaWiki Import"); |
| 197 | + |
194 | 198 | DumperGui manager = new DumperGui(); |
195 | 199 | } |
196 | 200 | |
Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.java |
— | — | @@ -51,11 +51,12 @@ |
52 | 52 | progressPanel = new javax.swing.JPanel(); |
53 | 53 | progressLabel = new javax.swing.JLabel(); |
54 | 54 | startButton = new javax.swing.JButton(); |
55 | | - maniMenuBar = new javax.swing.JMenuBar(); |
| 55 | + mainMenuBar = new javax.swing.JMenuBar(); |
56 | 56 | fileMenu = new javax.swing.JMenu(); |
57 | 57 | quitItem = new javax.swing.JMenuItem(); |
58 | 58 | |
59 | 59 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
| 60 | + setTitle("MediaWiki data dump importer"); |
60 | 61 | fileText.setText("(no dump file selected)"); |
61 | 62 | |
62 | 63 | browseButton.setText("Browse..."); |
— | — | @@ -277,9 +278,9 @@ |
278 | 279 | |
279 | 280 | fileMenu.add(quitItem); |
280 | 281 | |
281 | | - maniMenuBar.add(fileMenu); |
| 282 | + mainMenuBar.add(fileMenu); |
282 | 283 | |
283 | | - setJMenuBar(maniMenuBar); |
| 284 | + setJMenuBar(mainMenuBar); |
284 | 285 | |
285 | 286 | org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); |
286 | 287 | getContentPane().setLayout(layout); |
— | — | @@ -353,7 +354,7 @@ |
354 | 355 | protected javax.swing.JMenu fileMenu; |
355 | 356 | protected javax.swing.JPanel filePanel; |
356 | 357 | protected javax.swing.JTextField fileText; |
357 | | - protected javax.swing.JMenuBar maniMenuBar; |
| 358 | + protected javax.swing.JMenuBar mainMenuBar; |
358 | 359 | protected javax.swing.JLabel passwordLabel; |
359 | 360 | protected javax.swing.JPasswordField passwordText; |
360 | 361 | protected javax.swing.JLabel portLabel; |
Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.form |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | <NonVisualComponents> |
6 | 6 | <Component class="javax.swing.ButtonGroup" name="schemaRadios"> |
7 | 7 | </Component> |
8 | | - <Menu class="javax.swing.JMenuBar" name="maniMenuBar"> |
| 8 | + <Menu class="javax.swing.JMenuBar" name="mainMenuBar"> |
9 | 9 | <SubComponents> |
10 | 10 | <Menu class="javax.swing.JMenu" name="fileMenu"> |
11 | 11 | <Properties> |
— | — | @@ -26,9 +26,10 @@ |
27 | 27 | </NonVisualComponents> |
28 | 28 | <Properties> |
29 | 29 | <Property name="defaultCloseOperation" type="int" value="3"/> |
| 30 | + <Property name="title" type="java.lang.String" value="MediaWiki data dump importer"/> |
30 | 31 | </Properties> |
31 | 32 | <SyntheticProperties> |
32 | | - <SyntheticProperty name="menuBar" type="java.lang.String" value="maniMenuBar"/> |
| 33 | + <SyntheticProperty name="menuBar" type="java.lang.String" value="mainMenuBar"/> |
33 | 34 | <SyntheticProperty name="formSizePolicy" type="int" value="1"/> |
34 | 35 | </SyntheticProperties> |
35 | 36 | <AuxValues> |