1 package org.argosfields.preference;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import org.argosfields.util.SpecialFolders;
7 import org.eclipse.jface.preference.PreferenceStore;
8
9 /***
10 * DefaultPreferenceStore.java
11 * @author Xavier Cho
12 * @version $Revision: 1.1 $ $Date: 2004/04/15 05:43:55 $
13 */
14 public class DefaultPreferenceStore extends PreferenceStore {
15 public DefaultPreferenceStore() throws IOException {
16 String path = SpecialFolders.getPreferenceFilePath();
17 setFilename(path);
18
19 setDefault("info.panel.visible", true);
20 setDefault("message.panel.visible", true);
21
22 setDefault("remote.server.host", "localhost");
23 setDefault("remote.server.port", 9998);
24 setDefault("server.port", 9998);
25 setDefault("max.users", 100);
26 setDefault("allow.new.user", true);
27
28 setDefault("location.x", 100);
29 setDefault("location.y", 100);
30 setDefault("size.width", 600);
31 setDefault("size.height", 500);
32
33 if ((new File(path)).exists()) {
34 load();
35 }
36 }
37 }
This page was automatically generated by Maven