01: package net.sourceforge.squirrel_sql.client.resources;
02:
03: /*
04: * Copyright (C) 2001-2002 Colin Bell
05: * colbell@users.sourceforge.net
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library 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: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this library; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: */
21: import java.net.URL;
22:
23: import net.sourceforge.squirrel_sql.fw.util.Resources;
24:
25: public class SquirrelResources extends Resources {
26: //public final static int S_SPLASH_IMAGE_BACKGROUND = 0xADAFC4;
27: public final static int S_SPLASH_IMAGE_BACKGROUND = 0xAEB0C5;
28:
29: private final String _defaultsPath;
30:
31: public interface IMenuResourceKeys {
32: String ALIASES = "aliases";
33: String CLOSE_ALL_SQL_RESULTS = "close_all_sql_results";
34: String DRIVERS = "drivers";
35: // String EDIT = "edit";
36: String OSX_FILE = "osxFile";
37: String HELP = "help";
38: String PLUGINS = "plugins";
39: String PLUGIN_CHANGE_LOG = "pluginChangeLog";
40: String PLUGIN_HELP = "pluginHelp";
41: String PLUGIN_LICENCE = "pluginLicence";
42: String SESSION = "session";
43: String WINDOWS = "windows";
44: String FILE = "file";
45: String TRANSACTION = "transaction";
46: }
47:
48: public interface IImageNames {
49: String APPLICATION_ICON = "AppIcon";
50: String COPY_SELECTED = "CopySelected";
51: String SQL_HISTORY = "SQLHistory";
52: String EMPTY16 = "Empty16";
53: String HELP_TOPIC = "HelpTopic";
54: String HELP_TOC_CLOSED = "HelpTocClosed";
55: String HELP_TOC_OPEN = "HelpTocOpen";
56: String PERFORMANCE_WARNING = "PerformanceWarning";
57: String PLUGINS = "Plugins";
58: String SPLASH_SCREEN = "SplashScreen";
59: String VIEW = "View";
60:
61: String TRASH = "trash";
62:
63: String GREEN_GEM = "green_gem";
64: String YELLOW_GEM = "yellow_gem";
65: String RED_GEM = "red_gem";
66: String WHITE_GEM = "white_gem";
67: String LOGS = "logs";
68: String ALIAS_PROPERTIES = "aliasProperties";
69:
70: }
71:
72: public SquirrelResources(String rsrcBundleBaseName)
73: throws IllegalArgumentException {
74: super (rsrcBundleBaseName, SquirrelResources.class
75: .getClassLoader());
76: _defaultsPath = getBundle().getString("path.defaults");
77: }
78:
79: public URL getDefaultDriversUrl() {
80: return getClass().getResource(
81: _defaultsPath + "default_drivers.xml");
82: }
83:
84: public URL getCreditsURL() {
85: return getClass().getResource(
86: getBundle().getString("Credits.file"));
87: }
88: }
|