Better, Faster, Freer

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: i386 ]
Version: HEAD ]

001 /*************************************************************************
002  *
003  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004  * 
005  * Copyright 2008 by Sun Microsystems, Inc.
006  *
007  * OpenOffice.org - a multi-platform office productivity suite
008  *
009  * $RCSfile: Main.java,v $
010  * $Revision: 1.3 $
011  *
012  * This file is part of OpenOffice.org.
013  *
014  * OpenOffice.org is free software: you can redistribute it and/or modify
015  * it under the terms of the GNU Lesser General Public License version 3
016  * only, as published by the Free Software Foundation.
017  *
018  * OpenOffice.org is distributed in the hope that it will be useful,
019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
021  * GNU Lesser General Public License version 3 for more details
022  * (a copy is included in the LICENSE file that accompanied this code).
023  *
024  * You should have received a copy of the GNU Lesser General Public License
025  * version 3 along with OpenOffice.org.  If not, see
026  * <http://www.openoffice.org/license.html>
027  * for a copy of the LGPLv3 License.
028  *
029  ************************************************************************/
030  
031 package org.openoffice.setup;
032 
033 import org.openoffice.setup.Controller.AcceptLicenseCtrl;
034 import org.openoffice.setup.Controller.ChooseComponentsCtrl;
035 import org.openoffice.setup.Controller.ChooseUninstallationComponentsCtrl;
036 import org.openoffice.setup.Controller.ChooseUninstallationTypeCtrl;
037 import org.openoffice.setup.Controller.ChooseDirectoryCtrl;
038 import org.openoffice.setup.Controller.ChooseInstallationTypeCtrl;
039 import org.openoffice.setup.Controller.UninstallationCompletedCtrl;
040 import org.openoffice.setup.Controller.UninstallationImminentCtrl;
041 import org.openoffice.setup.Controller.UninstallationOngoingCtrl;
042 import org.openoffice.setup.Controller.UninstallationPrologueCtrl;
043 import org.openoffice.setup.Controller.InstallationCompletedCtrl;
044 import org.openoffice.setup.Controller.InstallationImminentCtrl;
045 import org.openoffice.setup.Controller.InstallationOngoingCtrl;
046 import org.openoffice.setup.Controller.PrologueCtrl;
047 // import org.openoffice.setup.Util.Dumper;
048 
049 public class Main {
050  
051     public static void main(String[] args) {
052         // try {
053         //    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
054         // } catch (Exception e) { }
055 
056         // Dumper.dumpAllProperties();
057         SetupFrame frame = new SetupFrame();
058         InstallData data = InstallData.getInstance();
059         if ( data.isInstallationMode() ) {
060             PanelController controller1 = new PrologueCtrl();
061             frame.addPanel(controller1, controller1.getName());
062             PanelController controller2 = new AcceptLicenseCtrl();
063             frame.addPanel(controller2, controller2.getName());
064             PanelController controller3 = new ChooseDirectoryCtrl();
065             frame.addPanel(controller3, controller3.getName());
066             PanelController controller4 = new ChooseInstallationTypeCtrl();
067             frame.addPanel(controller4, controller4.getName());
068             PanelController controller5 = new ChooseComponentsCtrl();
069             frame.addPanel(controller5, controller5.getName());
070             PanelController controller6 = new InstallationImminentCtrl();
071             frame.addPanel(controller6, controller6.getName());
072             PanelController controller7 = new InstallationOngoingCtrl();
073             frame.addPanel(controller7, controller7.getName());
074             PanelController controller8 = new InstallationCompletedCtrl();
075             frame.addPanel(controller8, controller8.getName());
076             frame.setCurrentPanel(controller1.getName(), false, true);
077         } else {
078             PanelController controller1 = new UninstallationPrologueCtrl();
079             frame.addPanel(controller1, controller1.getName());
080             PanelController controller2 = new ChooseUninstallationTypeCtrl();
081             frame.addPanel(controller2, controller2.getName());
082             PanelController controller3 = new ChooseUninstallationComponentsCtrl();
083             frame.addPanel(controller3, controller3.getName());
084             PanelController controller4 = new UninstallationImminentCtrl();
085             frame.addPanel(controller4, controller4.getName());
086             PanelController controller5 = new UninstallationOngoingCtrl();
087             frame.addPanel(controller5, controller5.getName());
088             PanelController controller6 = new UninstallationCompletedCtrl();
089             frame.addPanel(controller6, controller6.getName());
090             frame.setCurrentPanel(controller1.getName(), false, true);            
091         }
092                 
093         int ret = frame.showFrame();
094 
095         while ( data.stillRunning() ) {
096             for (int i = 0; i < 100; i++) {}    // why?
097         }
098 
099         System.exit(0);
100     }
101 }

source navigation ] diff markup ] identifier search ] general search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!