01: /*
02: * Copyright (c) 2000, Jacob Smullyan.
03: *
04: * This is part of SkunkDAV, a WebDAV client. See http://skunkdav.sourceforge.net/
05: * for the latest version.
06: *
07: * SkunkDAV is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License as published
09: * by the Free Software Foundation; either version 2, or (at your option)
10: * any later version.
11: *
12: * SkunkDAV is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with SkunkDAV; see the file COPYING. If not, write to the Free
19: * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20: * 02111-1307, USA.
21: */
22:
23: package org.skunk.dav.client.gui.action;
24:
25: import java.awt.event.ActionEvent;
26: import javax.swing.AbstractAction;
27: import org.skunk.config.Configurator;
28: import org.skunk.dav.client.gui.NetworkCustomizer;
29: import org.skunk.dav.client.gui.PreferencesCustomizer;
30: import org.skunk.dav.client.gui.PreferencesPanel;
31: import org.skunk.dav.client.gui.ResourceManager;
32: import org.skunk.dav.client.gui.TableViewCustomizer;
33: import org.skunk.dav.client.gui.TextEditorCustomizer;
34:
35: public class PreferencesAction extends AbstractAction {
36: PreferencesPanel pp;
37:
38: public PreferencesAction() {
39: super ();
40: pp = new PreferencesPanel();
41: PreferencesCustomizer pc;
42: String title;
43:
44: title = ResourceManager
45: .getMessage(ResourceManager.NETWORK_CUSTOMIZER_TITLE);
46: pc = new NetworkCustomizer(title, Configurator
47: .getConfigurator());
48: pp.addPreferencesCustomizer(pc);
49:
50: title = ResourceManager
51: .getMessage(ResourceManager.TABLE_VIEW_CUSTOMIZER_TITLE);
52: pc = new TableViewCustomizer(title, Configurator
53: .getConfigurator());
54: pp.addPreferencesCustomizer(pc);
55:
56: title = ResourceManager
57: .getMessage(ResourceManager.TEXT_EDITOR_CUSTOMIZER_TITLE);
58: pc = new TextEditorCustomizer(title, Configurator
59: .getConfigurator());
60: pp.addPreferencesCustomizer(pc);
61: }
62:
63: public void actionPerformed(ActionEvent ae) {
64: pp.showDialog();
65: }
66: }
67:
68: /* $Log: PreferencesAction.java,v $
69: /* Revision 1.7 2001/02/06 22:13:40 smulloni
70: /* first more-or-less working version of syntax highlighting, with customization.
71: /*
72: /* Revision 1.6 2001/02/02 23:30:33 smulloni
73: /* adding customization features to the text editor.
74: /*
75: /* Revision 1.5 2001/01/23 20:50:09 smulloni
76: /* added configurable socket timeout
77: /*
78: /* Revision 1.4 2000/12/19 22:36:05 smulloni
79: /* adjustments to preamble.
80: /*
81: /* Revision 1.3 2000/12/03 23:53:26 smulloni
82: /* added license and copyright preamble to java files.
83: /*
84: /* Revision 1.2 2000/11/09 23:35:04 smullyan
85: /* log added to every Java file, with the help of python. Lock stealing
86: /* implemented, and treatment of locks made more robust.
87: /* */
|