r12973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12972‎ | r12973 | r12974 >
Date:10:50, 7 February 2006
Author:vibber
Status:old
Tags:
Comment:
tweak
Modified paths:
  • /trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperGui.java (modified) (history)
  • /trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.form (modified) (history)
  • /trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.java (modified) (history)

Diff [purge]

Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperGui.java
@@ -190,6 +190,10 @@
191191 * @param args
192192 */
193193 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+
194198 DumperGui manager = new DumperGui();
195199 }
196200
Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.java
@@ -51,11 +51,12 @@
5252 progressPanel = new javax.swing.JPanel();
5353 progressLabel = new javax.swing.JLabel();
5454 startButton = new javax.swing.JButton();
55 - maniMenuBar = new javax.swing.JMenuBar();
 55+ mainMenuBar = new javax.swing.JMenuBar();
5656 fileMenu = new javax.swing.JMenu();
5757 quitItem = new javax.swing.JMenuItem();
5858
5959 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 60+ setTitle("MediaWiki data dump importer");
6061 fileText.setText("(no dump file selected)");
6162
6263 browseButton.setText("Browse...");
@@ -277,9 +278,9 @@
278279
279280 fileMenu.add(quitItem);
280281
281 - maniMenuBar.add(fileMenu);
 282+ mainMenuBar.add(fileMenu);
282283
283 - setJMenuBar(maniMenuBar);
 284+ setJMenuBar(mainMenuBar);
284285
285286 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
286287 getContentPane().setLayout(layout);
@@ -353,7 +354,7 @@
354355 protected javax.swing.JMenu fileMenu;
355356 protected javax.swing.JPanel filePanel;
356357 protected javax.swing.JTextField fileText;
357 - protected javax.swing.JMenuBar maniMenuBar;
 358+ protected javax.swing.JMenuBar mainMenuBar;
358359 protected javax.swing.JLabel passwordLabel;
359360 protected javax.swing.JPasswordField passwordText;
360361 protected javax.swing.JLabel portLabel;
Index: trunk/mwdumper/src/org/mediawiki/dumper/gui/DumperWindowForm.form
@@ -4,7 +4,7 @@
55 <NonVisualComponents>
66 <Component class="javax.swing.ButtonGroup" name="schemaRadios">
77 </Component>
8 - <Menu class="javax.swing.JMenuBar" name="maniMenuBar">
 8+ <Menu class="javax.swing.JMenuBar" name="mainMenuBar">
99 <SubComponents>
1010 <Menu class="javax.swing.JMenu" name="fileMenu">
1111 <Properties>
@@ -26,9 +26,10 @@
2727 </NonVisualComponents>
2828 <Properties>
2929 <Property name="defaultCloseOperation" type="int" value="3"/>
 30+ <Property name="title" type="java.lang.String" value="MediaWiki data dump importer"/>
3031 </Properties>
3132 <SyntheticProperties>
32 - <SyntheticProperty name="menuBar" type="java.lang.String" value="maniMenuBar"/>
 33+ <SyntheticProperty name="menuBar" type="java.lang.String" value="mainMenuBar"/>
3334 <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
3435 </SyntheticProperties>
3536 <AuxValues>

Status & tagging log