1 /**
2 * Copyright (C) 2007 Joern Krueger surething@users.sourceforge.net
3 *
4 * This program is free software; you can redistribute
5 * it and/or modify it under the terms of the GNU General
6 * Public License version 2 as published by the Free Software
7 * Foundation.
8 *
9 * This program is distributed in the hope that it will be
10 * useful, but WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place,
18 * Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21 package de.surething.lda;
22
23 /**
24 * TODO: German Language Files
25 */
26 import java.io.File;
27
28 import de.surething.lda.actions.ActionFactory;
29 import de.surething.lda.actions.MailActionSettings;
30 import de.surething.lda.locations.LocationFactory;
31 import de.surething.lda.locations.LocationSettings;
32 import de.surething.lda.ui.MainWindow;
33 import de.surethingies.properties.ParameterFactory;
34 import de.surethingies.ui.ExceptionDialog;
35
36 public class Main {
37
38 public static void main(String[] args) throws Exception {
39 ParameterFactory.addDefaultParameters(MailActionSettings.GROUP, MailActionSettings.params());
40 ParameterFactory.addDefaultParameters(LocationSettings.GROUP, LocationSettings.params());
41 ParameterFactory.init(new File(".locdepaction"));
42 ParameterFactory.instance().loadProperties();
43
44 MainWindow window = new MainWindow();
45
46 try {
47 window.setLocations(LocationFactory.instance().getLocations());
48 window.setActions(ActionFactory.instance().getActions());
49 } catch (Exception e) {
50 new ExceptionDialog(null, e);
51 }
52
53 window.showUI();
54 }
55 }