Source Code Cross Referenced for Resources.java in  » Content-Management-System » contelligent » de » finix » contelligent » client » i18n » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » contelligent » de.finix.contelligent.client.i18n 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * Copyright 2001-2006 C:1 Financial Services GmbH
0003:         *
0004:         * This software is free software; you can redistribute it and/or
0005:         * modify it under the terms of the GNU Lesser General Public
0006:         * License Version 2.1, as published by the Free Software Foundation.
0007:         *
0008:         * This software is distributed in the hope that it will be useful,
0009:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
0010:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0011:         * Lesser General Public License for more details.
0012:         *
0013:         * You should have received a copy of the GNU Lesser General Public
0014:         * License along with this library; if not, write to the Free Software
0015:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
0016:         */
0017:
0018:        package de.finix.contelligent.client.i18n;
0019:
0020:        import java.awt.Graphics;
0021:        import java.awt.Image;
0022:        import java.awt.image.BufferedImage;
0023:        import java.io.BufferedReader;
0024:        import java.io.IOException;
0025:        import java.io.InputStream;
0026:        import java.io.InputStreamReader;
0027:        import java.net.MalformedURLException;
0028:        import java.net.URL;
0029:        import java.text.MessageFormat;
0030:        import java.util.HashMap;
0031:        import java.util.Locale;
0032:        import java.util.Map;
0033:        import java.util.MissingResourceException;
0034:        import java.util.ResourceBundle;
0035:        import java.util.logging.Level;
0036:        import java.util.logging.Logger;
0037:        import java.util.prefs.PreferenceChangeEvent;
0038:        import java.util.prefs.PreferenceChangeListener;
0039:        import java.util.prefs.Preferences;
0040:
0041:        import javax.swing.ImageIcon;
0042:
0043:        import org.apache.commons.httpclient.methods.GetMethod;
0044:        import org.apache.commons.httpclient.util.HttpURLConnection;
0045:
0046:        import de.finix.contelligent.client.ContelligentClient;
0047:        import de.finix.contelligent.client.base.ServerInfo;
0048:        import de.finix.contelligent.client.modules.preferences.PreferencesModule;
0049:        import de.finix.contelligent.client.remote.RemoteActionException;
0050:        import de.finix.contelligent.client.remote.ServerConnector;
0051:        import de.finix.contelligent.client.util.URLImageProducer;
0052:
0053:        final public class Resources {
0054:
0055:            private static Logger logger = Logger.getLogger(Resources.class
0056:                    .getName());
0057:
0058:            // this is realy ugly, but done for compatibility
0059:            private static Locale[] supportedLocales = new Locale[] {
0060:                    Locale.GERMAN, Locale.ENGLISH };
0061:
0062:            private static Locale locale;
0063:
0064:            private static String language;
0065:
0066:            private static String country;
0067:
0068:            private static String baseName;
0069:
0070:            private static ResourceBundle resourceBundle;
0071:
0072:            private static Map<String, ImageIcon> icons = new HashMap<String, ImageIcon>();
0073:
0074:            static {
0075:                addIcon("file", new ImageIcon(Thread.currentThread()
0076:                        .getContextClassLoader().getResource(
0077:                                "images/tree/files/file_generic.gif")));
0078:                addIcon("gifFile", new ImageIcon(Thread.currentThread()
0079:                        .getContextClassLoader().getResource(
0080:                                "images/tree/files/file_gif.gif")));
0081:                addIcon("jpgFile", new ImageIcon(Thread.currentThread()
0082:                        .getContextClassLoader().getResource(
0083:                                "images/tree/files/file_jpg.gif")));
0084:                addIcon("flashFile", new ImageIcon(Thread.currentThread()
0085:                        .getContextClassLoader().getResource(
0086:                                "images/tree/files/file_flash.gif")));
0087:                addIcon("htmlFile", new ImageIcon(Thread.currentThread()
0088:                        .getContextClassLoader().getResource(
0089:                                "images/tree/files/file_html.gif")));
0090:                addIcon("jspFile", new ImageIcon(Thread.currentThread()
0091:                        .getContextClassLoader().getResource(
0092:                                "images/tree/files/file_jsp.gif")));
0093:                addIcon("pdfFile", new ImageIcon(Thread.currentThread()
0094:                        .getContextClassLoader().getResource(
0095:                                "images/tree/files/file_pdf.gif")));
0096:                addIcon("shockwaveFile", new ImageIcon(Thread.currentThread()
0097:                        .getContextClassLoader().getResource(
0098:                                "images/tree/files/file_shockwave.gif")));
0099:                addIcon("textFile", new ImageIcon(Thread.currentThread()
0100:                        .getContextClassLoader().getResource(
0101:                                "images/tree/files/file_text.gif")));
0102:                addIcon("xml", new ImageIcon(Thread.currentThread()
0103:                        .getContextClassLoader().getResource(
0104:                                "images/tree/files/file_xml.gif")));
0105:                addIcon("xsl", new ImageIcon(Thread.currentThread()
0106:                        .getContextClassLoader().getResource(
0107:                                "images/tree/files/file_xsl.gif")));
0108:                addIcon("action", new ImageIcon(Thread.currentThread()
0109:                        .getContextClassLoader().getResource(
0110:                                "images/tree/actions/action_generic.gif")));
0111:                addIcon("parameter", new ImageIcon(Thread.currentThread()
0112:                        .getContextClassLoader().getResource(
0113:                                "images/tree/actions/action_parameter.gif")));
0114:                addIcon("actionFolder", new ImageIcon(Thread.currentThread()
0115:                        .getContextClassLoader().getResource(
0116:                                "images/tree/folder/folder_action.gif")));
0117:                addIcon("pagesFolder", new ImageIcon(Thread.currentThread()
0118:                        .getContextClassLoader().getResource(
0119:                                "images/tree/folder/folder_content.gif")));
0120:                addIcon("imageFolder", new ImageIcon(Thread.currentThread()
0121:                        .getContextClassLoader().getResource(
0122:                                "images/tree/folder/folder_image.gif")));
0123:                addIcon("sortableFolder", new ImageIcon(Thread.currentThread()
0124:                        .getContextClassLoader().getResource(
0125:                                "images/tree/folder/folder_sorted.gif")));
0126:                addIcon("siteFolder", new ImageIcon(Thread.currentThread()
0127:                        .getContextClassLoader().getResource(
0128:                                "images/tree/folder/folder_site.gif")));
0129:                addIcon("folder", new ImageIcon(Thread.currentThread()
0130:                        .getContextClassLoader().getResource(
0131:                                "images/tree/folder/folder_generic.gif")));
0132:                addIcon("category", new ImageIcon(Thread.currentThread()
0133:                        .getContextClassLoader().getResource(
0134:                                "images/tree/folder/folder_category.gif")));
0135:                addIcon("banking", new ImageIcon(Thread.currentThread()
0136:                        .getContextClassLoader().getResource(
0137:                                "images/tree/library/banking.gif")));
0138:                addIcon("brokerage", new ImageIcon(Thread.currentThread()
0139:                        .getContextClassLoader().getResource(
0140:                                "images/tree/library/brokerage.gif")));
0141:                addIcon("checkbox", new ImageIcon(Thread.currentThread()
0142:                        .getContextClassLoader().getResource(
0143:                                "images/tree/web/web_checkbox.gif")));
0144:                addIcon("textfield", new ImageIcon(Thread.currentThread()
0145:                        .getContextClassLoader().getResource(
0146:                                "images/tree/web/web_textfield.gif")));
0147:                addIcon("inputfield", new ImageIcon(Thread.currentThread()
0148:                        .getContextClassLoader().getResource(
0149:                                "images/tree/web/web_textfield.gif")));
0150:                addIcon("inputField", new ImageIcon(Thread.currentThread()
0151:                        .getContextClassLoader().getResource(
0152:                                "images/tree/web/web_textfield.gif")));
0153:                addIcon("passwordfield", new ImageIcon(Thread.currentThread()
0154:                        .getContextClassLoader().getResource(
0155:                                "images/tree/web/web_password.gif")));
0156:                addIcon("formfield", new ImageIcon(Thread.currentThread()
0157:                        .getContextClassLoader().getResource(
0158:                                "images/tree/web/web_formfield.gif")));
0159:                addIcon("list", new ImageIcon(Thread.currentThread()
0160:                        .getContextClassLoader().getResource(
0161:                                "images/tree/web/web_formlist.gif")));
0162:                addIcon("hiddenfield", new ImageIcon(Thread.currentThread()
0163:                        .getContextClassLoader().getResource(
0164:                                "images/tree/web/web_formfield.gif")));
0165:                addIcon("textarea", new ImageIcon(Thread.currentThread()
0166:                        .getContextClassLoader().getResource(
0167:                                "images/tree/web/web_textarea.gif")));
0168:                addIcon("submit", new ImageIcon(Thread.currentThread()
0169:                        .getContextClassLoader().getResource(
0170:                                "images/tree/web/web_submit.gif")));
0171:                addIcon("radiobutton", new ImageIcon(Thread.currentThread()
0172:                        .getContextClassLoader().getResource(
0173:                                "images/tree/web/web_radiobutton.gif")));
0174:                addIcon("element", new ImageIcon(Thread.currentThread()
0175:                        .getContextClassLoader().getResource(
0176:                                "images/tree/web/web_generic.gif")));
0177:                addIcon("text", new ImageIcon(Thread.currentThread()
0178:                        .getContextClassLoader().getResource(
0179:                                "images/tree/types/type_text.gif")));
0180:                addIcon("color", new ImageIcon(Thread.currentThread()
0181:                        .getContextClassLoader().getResource(
0182:                                "images/tree/types/type_color.gif")));
0183:                addIcon("boolean", new ImageIcon(Thread.currentThread()
0184:                        .getContextClassLoader().getResource(
0185:                                "images/tree/types/type_boolean.gif")));
0186:                addIcon("string", new ImageIcon(Thread.currentThread()
0187:                        .getContextClassLoader().getResource(
0188:                                "images/tree/types/type_string.gif")));
0189:                addIcon("styledText", new ImageIcon(Thread.currentThread()
0190:                        .getContextClassLoader().getResource(
0191:                                "images/tree/types/type_styled_text.gif")));
0192:                addIcon("userFactory", new ImageIcon(Thread.currentThread()
0193:                        .getContextClassLoader().getResource(
0194:                                "images/tree/types/type_userfactory.gif")));
0195:                addIcon("xmlTemplate", new ImageIcon(Thread.currentThread()
0196:                        .getContextClassLoader().getResource(
0197:                                "images/tree/types/type_xmltemplate.gif")));
0198:                addIcon("xslTemplate", new ImageIcon(Thread.currentThread()
0199:                        .getContextClassLoader().getResource(
0200:                                "images/tree/types/type_xsltemplate.gif")));
0201:                addIcon("xslTransformer", new ImageIcon(Thread.currentThread()
0202:                        .getContextClassLoader().getResource(
0203:                                "images/tree/types/type_xsltransformer.gif")));
0204:                addIcon("tclInterpreter", new ImageIcon(Thread.currentThread()
0205:                        .getContextClassLoader().getResource(
0206:                                "images/tree/types/type_tclinterp.gif")));
0207:                addIcon("password", new ImageIcon(Thread.currentThread()
0208:                        .getContextClassLoader().getResource(
0209:                                "images/tree/types/type_password.gif")));
0210:                addIcon("page", new ImageIcon(Thread.currentThread()
0211:                        .getContextClassLoader().getResource(
0212:                                "images/tree/types/type_page.gif")));
0213:                addIcon("number", new ImageIcon(Thread.currentThread()
0214:                        .getContextClassLoader().getResource(
0215:                                "images/tree/types/type_number.gif")));
0216:                addIcon("date", new ImageIcon(Thread.currentThread()
0217:                        .getContextClassLoader().getResource(
0218:                                "images/tree/types/type_date.gif")));
0219:                addIcon("clientModule", new ImageIcon(Thread.currentThread()
0220:                        .getContextClassLoader().getResource(
0221:                                "images/tree/types/type_view.gif")));
0222:                addIcon("workflow", new ImageIcon(Thread.currentThread()
0223:                        .getContextClassLoader().getResource(
0224:                                "images/tree/types/type_wf.gif")));
0225:                addIcon("workflowFolder", new ImageIcon(Thread.currentThread()
0226:                        .getContextClassLoader().getResource(
0227:                                "images/tree/folder/folder_wf.gif")));
0228:                addIcon("form", new ImageIcon(Thread.currentThread()
0229:                        .getContextClassLoader().getResource(
0230:                                "images/tree/types/form.gif")));
0231:                addIcon("genericType", new ImageIcon(Thread.currentThread()
0232:                        .getContextClassLoader().getResource(
0233:                                "images/tree/types/type_generic.gif")));
0234:                addIcon("generic", new ImageIcon(Thread.currentThread()
0235:                        .getContextClassLoader().getResource(
0236:                                "images/tree/types/type_generic.gif")));
0237:                addIcon("link", new ImageIcon(Thread.currentThread()
0238:                        .getContextClassLoader().getResource(
0239:                                "images/tree/alias/alias_link.gif")));
0240:                addIcon("error", new ImageIcon(Thread.currentThread()
0241:                        .getContextClassLoader().getResource(
0242:                                "images/tree/server/server_error.gif")));
0243:                addIcon("hotlink", new ImageIcon(Thread.currentThread()
0244:                        .getContextClassLoader().getResource(
0245:                                "images/tree/types/hotlink.gif")));
0246:                addIcon("hotlinkFolder", new ImageIcon(Thread.currentThread()
0247:                        .getContextClassLoader().getResource(
0248:                                "images/tree/folder/folder_hotlink.gif")));
0249:                addIcon("config", new ImageIcon(Thread.currentThread()
0250:                        .getContextClassLoader().getResource(
0251:                                "images/tree/types/type_config.gif")));
0252:                addIcon("configFolder", new ImageIcon(Thread.currentThread()
0253:                        .getContextClassLoader().getResource(
0254:                                "images/tree/folder/folder_config.gif")));
0255:                addIcon(
0256:                        "preview",
0257:                        new ImageIcon(
0258:                                Thread
0259:                                        .currentThread()
0260:                                        .getContextClassLoader()
0261:                                        .getResource(
0262:                                                "images/tree/types/type_previewconfiguration.gif")));
0263:
0264:                Preferences prefs = PreferencesModule.getPreferences();
0265:                language = PreferencesModule.getDefaultLanguage();
0266:                country = prefs.get(PreferencesModule.COUNTRY,
0267:                        PreferencesModule.DEFAULT_COUNTRY);
0268:                logger.log(Level.FINE, "Initial locale: language=" + language
0269:                        + ", country=" + country);
0270:                locale = new Locale(language, country);
0271:                Locale.setDefault(locale);
0272:
0273:                baseName = prefs.get(PreferencesModule.LANG_BASENAME,
0274:                        PreferencesModule.DEFAULT_LANG_BASENAME);
0275:                resourceBundle = java.util.ResourceBundle.getBundle(baseName,
0276:                        locale);
0277:
0278:                prefs
0279:                        .addPreferenceChangeListener(new PreferenceChangeListener() {
0280:                            public void preferenceChange(
0281:                                    PreferenceChangeEvent property) {
0282:                                if (property.getKey().equals(
0283:                                        PreferencesModule.LANGUAGE)) {
0284:                                    String prop = property.getNewValue();
0285:                                    if (!language.equals(prop)) {
0286:                                        language = prop;
0287:                                        locale = new Locale(language, country);
0288:                                        resourceBundle = java.util.ResourceBundle
0289:                                                .getBundle(baseName, locale);
0290:                                        ContelligentClient.getFrame()
0291:                                                .getMainPanel().refresh();
0292:                                        logger.log(Level.FINE,
0293:                                                "Language switched to "
0294:                                                        + language);
0295:                                    }
0296:                                } else if (property.getKey().equals(
0297:                                        PreferencesModule.COUNTRY)) {
0298:                                    String prop = property.getNewValue();
0299:                                    if (!country.equals(prop)) {
0300:                                        country = prop;
0301:                                        locale = new Locale(language, country);
0302:                                        ContelligentClient.getFrame()
0303:                                                .getMainPanel().refresh();
0304:                                        resourceBundle = java.util.ResourceBundle
0305:                                                .getBundle(baseName, locale);
0306:                                        logger.log(Level.FINE,
0307:                                                "Country switched to "
0308:                                                        + country);
0309:                                    }
0310:                                } else if (property.getKey().equals(
0311:                                        PreferencesModule.LANG_BASENAME)) {
0312:                                    String prop = property.getNewValue();
0313:                                    if (!baseName.equals(prop)) {
0314:                                        baseName = prop;
0315:                                        resourceBundle = java.util.ResourceBundle
0316:                                                .getBundle(baseName, locale);
0317:                                        ContelligentClient.getFrame()
0318:                                                .getMainPanel().refresh();
0319:                                        logger.log(Level.FINE,
0320:                                                "Language basename switched to "
0321:                                                        + baseName);
0322:                                    }
0323:                                }
0324:                            }
0325:                        });
0326:            }
0327:
0328:            public static ImageIcon severity0Icon = new ImageIcon(Thread
0329:                    .currentThread().getContextClassLoader().getResource(
0330:                            "images/toolbar/xml/severity0.gif"));
0331:
0332:            public static ImageIcon severity1Icon = new ImageIcon(Thread
0333:                    .currentThread().getContextClassLoader().getResource(
0334:                            "images/toolbar/xml/severity1.gif"));
0335:
0336:            public static ImageIcon severity2Icon = new ImageIcon(Thread
0337:                    .currentThread().getContextClassLoader().getResource(
0338:                            "images/toolbar/xml/severity2.gif"));
0339:
0340:            public static ImageIcon severity3Icon = new ImageIcon(Thread
0341:                    .currentThread().getContextClassLoader().getResource(
0342:                            "images/toolbar/xml/severity3.gif"));
0343:
0344:            public static ImageIcon severity4Icon = new ImageIcon(Thread
0345:                    .currentThread().getContextClassLoader().getResource(
0346:                            "images/toolbar/xml/severity4.gif"));
0347:
0348:            public static ImageIcon severity5Icon = new ImageIcon(Thread
0349:                    .currentThread().getContextClassLoader().getResource(
0350:                            "images/toolbar/xml/severity5.gif"));
0351:
0352:            public static final ImageIcon fileIcon = new ImageIcon(Thread
0353:                    .currentThread().getContextClassLoader().getResource(
0354:                            "images/tree/files/file_generic.gif"));
0355:
0356:            public static final ImageIcon gifIcon = new ImageIcon(Thread
0357:                    .currentThread().getContextClassLoader().getResource(
0358:                            "images/tree/files/file_gif.gif"));
0359:
0360:            public static final ImageIcon jpegIcon = new ImageIcon(Thread
0361:                    .currentThread().getContextClassLoader().getResource(
0362:                            "images/tree/files/file_jpg.gif"));
0363:
0364:            public static final ImageIcon tiffIcon = new ImageIcon(Thread
0365:                    .currentThread().getContextClassLoader().getResource(
0366:                            "images/tree/files/file_gif.gif"));
0367:
0368:            public static final ImageIcon flashIcon = new ImageIcon(Thread
0369:                    .currentThread().getContextClassLoader().getResource(
0370:                            "images/tree/files/file_flash.gif"));
0371:
0372:            public static final ImageIcon htmlIcon = new ImageIcon(Thread
0373:                    .currentThread().getContextClassLoader().getResource(
0374:                            "images/tree/files/file_html.gif"));
0375:
0376:            public static final ImageIcon jspIcon = new ImageIcon(Thread
0377:                    .currentThread().getContextClassLoader().getResource(
0378:                            "images/tree/files/file_jsp.gif"));
0379:
0380:            public static final ImageIcon pdfIcon = new ImageIcon(Thread
0381:                    .currentThread().getContextClassLoader().getResource(
0382:                            "images/tree/files/file_pdf.gif"));
0383:
0384:            public static final ImageIcon shockwaveIcon = new ImageIcon(Thread
0385:                    .currentThread().getContextClassLoader().getResource(
0386:                            "images/tree/files/file_shockwave.gif"));
0387:
0388:            public static final ImageIcon textIcon = new ImageIcon(Thread
0389:                    .currentThread().getContextClassLoader().getResource(
0390:                            "images/tree/files/file_text.gif"));
0391:
0392:            public static final ImageIcon msmediaIcon = new ImageIcon(Thread
0393:                    .currentThread().getContextClassLoader().getResource(
0394:                            "images/tree/files/file_msmedia.gif"));
0395:
0396:            public static final ImageIcon quicktimeIcon = new ImageIcon(Thread
0397:                    .currentThread().getContextClassLoader().getResource(
0398:                            "images/tree/files/file_quicktime.gif"));
0399:
0400:            public static ImageIcon componentNotFoundIcon = new ImageIcon(
0401:                    Thread.currentThread().getContextClassLoader().getResource(
0402:                            "images/toolbar/main/main_stop.gif"));
0403:
0404:            public static ImageIcon defaultViewIcon = new ImageIcon(Thread
0405:                    .currentThread().getContextClassLoader().getResource(
0406:                            "images/toolbar/view/view_default.gif"));
0407:
0408:            public static ImageIcon defaultViewIconRollOver = new ImageIcon(
0409:                    Thread.currentThread().getContextClassLoader().getResource(
0410:                            "images/toolbar/view/view_default_over.gif"));
0411:
0412:            public static ImageIcon taskViewIcon = new ImageIcon(Thread
0413:                    .currentThread().getContextClassLoader().getResource(
0414:                            "images/toolbar/view/view_roles.gif"));
0415:
0416:            public static ImageIcon taskViewIconRollOver = new ImageIcon(Thread
0417:                    .currentThread().getContextClassLoader().getResource(
0418:                            "images/toolbar/view/view_roles_over.gif"));
0419:
0420:            public static ImageIcon browsableViewIcon = new ImageIcon(Thread
0421:                    .currentThread().getContextClassLoader().getResource(
0422:                            "images/toolbar/main/main_folder.gif"));
0423:
0424:            public static ImageIcon browsableViewIconRollOver = new ImageIcon(
0425:                    Thread.currentThread().getContextClassLoader().getResource(
0426:                            "images/toolbar/main/main_folder_over.gif"));
0427:
0428:            public static ImageIcon treeViewIcon = new ImageIcon(Thread
0429:                    .currentThread().getContextClassLoader().getResource(
0430:                            "images/toolbar/main/main_tree.gif"));
0431:
0432:            public static ImageIcon treeViewIconRollOver = new ImageIcon(Thread
0433:                    .currentThread().getContextClassLoader().getResource(
0434:                            "images/toolbar/main/main_tree_over.gif"));
0435:
0436:            public static ImageIcon uploadIcon = new ImageIcon(Thread
0437:                    .currentThread().getContextClassLoader().getResource(
0438:                            "images/toolbar/main/main_upload.gif"));
0439:
0440:            public static ImageIcon uploadIconRollOver = new ImageIcon(Thread
0441:                    .currentThread().getContextClassLoader().getResource(
0442:                            "images/toolbar/main/main_upload_over.gif"));
0443:
0444:            public static ImageIcon boldIcon = new ImageIcon(Thread
0445:                    .currentThread().getContextClassLoader().getResource(
0446:                            "images/toolbar/text/text_bold.gif"));
0447:
0448:            public static ImageIcon boldIconRollOver = new ImageIcon(Thread
0449:                    .currentThread().getContextClassLoader().getResource(
0450:                            "images/toolbar/text/text_bold_over.gif"));
0451:
0452:            public static ImageIcon italicIcon = new ImageIcon(Thread
0453:                    .currentThread().getContextClassLoader().getResource(
0454:                            "images/toolbar/text/text_italic.gif"));
0455:
0456:            public static ImageIcon italicIconRollOver = new ImageIcon(Thread
0457:                    .currentThread().getContextClassLoader().getResource(
0458:                            "images/toolbar/text/text_italic_over.gif"));
0459:
0460:            public static ImageIcon normalIcon = new ImageIcon(Thread
0461:                    .currentThread().getContextClassLoader().getResource(
0462:                            "images/toolbar/text/text_normal.gif"));
0463:
0464:            public static ImageIcon normalIconRollOver = new ImageIcon(Thread
0465:                    .currentThread().getContextClassLoader().getResource(
0466:                            "images/toolbar/text/text_normal_over.gif"));
0467:
0468:            public static ImageIcon underlineIcon = new ImageIcon(Thread
0469:                    .currentThread().getContextClassLoader().getResource(
0470:                            "images/toolbar/text/text_underline.gif"));
0471:
0472:            public static ImageIcon underlineIconRollOver = new ImageIcon(
0473:                    Thread.currentThread().getContextClassLoader().getResource(
0474:                            "images/toolbar/text/text_underline_over.gif"));
0475:
0476:            public static ImageIcon okIcon = new ImageIcon(Thread
0477:                    .currentThread().getContextClassLoader().getResource(
0478:                            "images/toolbar/main/main_apply.gif"));
0479:
0480:            public static ImageIcon okIconRollOver = new ImageIcon(Thread
0481:                    .currentThread().getContextClassLoader().getResource(
0482:                            "images/toolbar/main/main_apply_over.gif"));
0483:
0484:            public static ImageIcon cancelIcon = new ImageIcon(Thread
0485:                    .currentThread().getContextClassLoader().getResource(
0486:                            "images/toolbar/main/main_stop.gif"));
0487:
0488:            public static ImageIcon cancelIconRollOver = new ImageIcon(Thread
0489:                    .currentThread().getContextClassLoader().getResource(
0490:                            "images/toolbar/main/main_stop_over.gif"));
0491:
0492:            public static ImageIcon cutIcon = new ImageIcon(Thread
0493:                    .currentThread().getContextClassLoader().getResource(
0494:                            "images/toolbar/main/main_cut.gif"));
0495:
0496:            public static ImageIcon cutIconRollOver = new ImageIcon(Thread
0497:                    .currentThread().getContextClassLoader().getResource(
0498:                            "images/toolbar/main/main_cut_over.gif"));
0499:
0500:            public static ImageIcon copyIcon = new ImageIcon(Thread
0501:                    .currentThread().getContextClassLoader().getResource(
0502:                            "images/toolbar/main/main_copy.gif"));
0503:
0504:            public static ImageIcon copyIconRollOver = new ImageIcon(Thread
0505:                    .currentThread().getContextClassLoader().getResource(
0506:                            "images/toolbar/main/main_copy_over.gif"));
0507:
0508:            public static ImageIcon pasteIcon = new ImageIcon(Thread
0509:                    .currentThread().getContextClassLoader().getResource(
0510:                            "images/toolbar/main/main_paste.gif"));
0511:
0512:            public static ImageIcon pasteIconRollOver = new ImageIcon(Thread
0513:                    .currentThread().getContextClassLoader().getResource(
0514:                            "images/toolbar/main/main_paste_over.gif"));
0515:
0516:            public static ImageIcon newIcon = new ImageIcon(Thread
0517:                    .currentThread().getContextClassLoader().getResource(
0518:                            "images/toolbar/view/view_add.gif"));
0519:
0520:            public static ImageIcon newIconRollOver = new ImageIcon(Thread
0521:                    .currentThread().getContextClassLoader().getResource(
0522:                            "images/toolbar/view/view_add_over.gif"));
0523:
0524:            public static ImageIcon deleteIcon = new ImageIcon(Thread
0525:                    .currentThread().getContextClassLoader().getResource(
0526:                            "images/toolbar/main/main_delete.gif"));
0527:
0528:            public static ImageIcon deleteIconRollOver = new ImageIcon(Thread
0529:                    .currentThread().getContextClassLoader().getResource(
0530:                            "images/toolbar/main/main_delete_over.gif"));
0531:
0532:            public static ImageIcon upIcon = new ImageIcon(Thread
0533:                    .currentThread().getContextClassLoader().getResource(
0534:                            "images/toolbar/move/move_level.gif"));
0535:
0536:            public static ImageIcon upIconRollOver = new ImageIcon(Thread
0537:                    .currentThread().getContextClassLoader().getResource(
0538:                            "images/toolbar/move/move_level_over.gif"));
0539:
0540:            public static ImageIcon moveUpIcon = new ImageIcon(Thread
0541:                    .currentThread().getContextClassLoader().getResource(
0542:                            "images/toolbar/move/move_up.gif"));
0543:
0544:            public static ImageIcon moveUpIconRollOver = new ImageIcon(Thread
0545:                    .currentThread().getContextClassLoader().getResource(
0546:                            "images/toolbar/move/move_up_over.gif"));
0547:
0548:            public static ImageIcon moveDownIcon = new ImageIcon(Thread
0549:                    .currentThread().getContextClassLoader().getResource(
0550:                            "images/toolbar/move/move_down.gif"));
0551:
0552:            public static ImageIcon moveDownIconRollOver = new ImageIcon(Thread
0553:                    .currentThread().getContextClassLoader().getResource(
0554:                            "images/toolbar/move/move_down_over.gif"));
0555:
0556:            public static ImageIcon moveTopIcon = new ImageIcon(Thread
0557:                    .currentThread().getContextClassLoader().getResource(
0558:                            "images/toolbar/move/move_top.gif"));
0559:
0560:            public static ImageIcon moveBottomIcon = new ImageIcon(Thread
0561:                    .currentThread().getContextClassLoader().getResource(
0562:                            "images/toolbar/move/move_bottom.gif"));
0563:
0564:            public static ImageIcon nextIcon = new ImageIcon(Thread
0565:                    .currentThread().getContextClassLoader().getResource(
0566:                            "images/toolbar/move/move_next.gif"));
0567:
0568:            public static ImageIcon previousIcon = new ImageIcon(Thread
0569:                    .currentThread().getContextClassLoader().getResource(
0570:                            "images/toolbar/move/move_previous.gif"));
0571:
0572:            public static ImageIcon openIcon = new ImageIcon(Thread
0573:                    .currentThread().getContextClassLoader().getResource(
0574:                            "images/toolbar/main/main_upload.gif"));
0575:
0576:            public static ImageIcon openIconRollOver = new ImageIcon(Thread
0577:                    .currentThread().getContextClassLoader().getResource(
0578:                            "images/toolbar/main/main_upload_over.gif"));
0579:
0580:            public static ImageIcon saveIcon = new ImageIcon(Thread
0581:                    .currentThread().getContextClassLoader().getResource(
0582:                            "images/toolbar/main/main_save.gif"));
0583:
0584:            public static ImageIcon saveIconRollOver = new ImageIcon(Thread
0585:                    .currentThread().getContextClassLoader().getResource(
0586:                            "images/toolbar/main/main_save_over.gif"));
0587:
0588:            public static ImageIcon reloadIcon = new ImageIcon(Thread
0589:                    .currentThread().getContextClassLoader().getResource(
0590:                            "images/toolbar/main/main_reload.gif"));
0591:
0592:            public static ImageIcon reloadIconRollOver = new ImageIcon(Thread
0593:                    .currentThread().getContextClassLoader().getResource(
0594:                            "images/toolbar/main/main_reload_over.gif"));
0595:
0596:            public static ImageIcon reloadComponentIcon = new ImageIcon(Thread
0597:                    .currentThread().getContextClassLoader().getResource(
0598:                            "images/toolbar/main/reload_component.gif"));
0599:
0600:            public static ImageIcon editIcon = new ImageIcon(Thread
0601:                    .currentThread().getContextClassLoader().getResource(
0602:                            "images/toolbar/edit/edit_generic.gif"));
0603:
0604:            public static ImageIcon editIconRollOver = new ImageIcon(Thread
0605:                    .currentThread().getContextClassLoader().getResource(
0606:                            "images/toolbar/edit/edit_generic_over.gif"));
0607:
0608:            public static ImageIcon editMainIcon = new ImageIcon(Thread
0609:                    .currentThread().getContextClassLoader().getResource(
0610:                            "images/toolbar/edit/edit_main.gif"));
0611:
0612:            public static ImageIcon editMainIconRollOver = new ImageIcon(Thread
0613:                    .currentThread().getContextClassLoader().getResource(
0614:                            "images/toolbar/edit/edit_main_over.gif"));
0615:
0616:            public static ImageIcon expandIcon = new ImageIcon(Thread
0617:                    .currentThread().getContextClassLoader().getResource(
0618:                            "images/toolbar/main/main_expand.gif"));
0619:
0620:            public static ImageIcon expandIconRollOver = new ImageIcon(Thread
0621:                    .currentThread().getContextClassLoader().getResource(
0622:                            "images/toolbar/main/main_expand_over.gif"));
0623:
0624:            public static ImageIcon compressIcon = new ImageIcon(Thread
0625:                    .currentThread().getContextClassLoader().getResource(
0626:                            "images/toolbar/main/main_compress.gif"));
0627:
0628:            public static ImageIcon compressIconRollOver = new ImageIcon(Thread
0629:                    .currentThread().getContextClassLoader().getResource(
0630:                            "images/toolbar/main/main_compress_over.gif"));
0631:
0632:            public static ImageIcon sortAscendIcon = new ImageIcon(Thread
0633:                    .currentThread().getContextClassLoader().getResource(
0634:                            "images/toolbar/text/text_ascend.gif"));
0635:
0636:            public static ImageIcon sortAscendIconRollOver = new ImageIcon(
0637:                    Thread.currentThread().getContextClassLoader().getResource(
0638:                            "images/toolbar/text/text_ascend_over.gif"));
0639:
0640:            public static ImageIcon sortDescendIcon = new ImageIcon(Thread
0641:                    .currentThread().getContextClassLoader().getResource(
0642:                            "images/toolbar/text/text_descend.gif"));
0643:
0644:            public static ImageIcon sortDescendIconRollOver = new ImageIcon(
0645:                    Thread.currentThread().getContextClassLoader().getResource(
0646:                            "images/toolbar/text/text_descend_over.gif"));
0647:
0648:            public static ImageIcon penIcon = new ImageIcon(Thread
0649:                    .currentThread().getContextClassLoader().getResource(
0650:                            "images/toolbar/util/util_pen.gif"));
0651:
0652:            public static ImageIcon penIconRollOver = new ImageIcon(Thread
0653:                    .currentThread().getContextClassLoader().getResource(
0654:                            "images/toolbar/util/util_pen_over.gif"));
0655:
0656:            public static ImageIcon blueprintAlias = new ImageIcon(Thread
0657:                    .currentThread().getContextClassLoader().getResource(
0658:                            "images/tree/alias/alias_web.gif"));
0659:
0660:            public static ImageIcon linkAlias = new ImageIcon(Thread
0661:                    .currentThread().getContextClassLoader().getResource(
0662:                            "images/tree/alias/alias_link.gif"));
0663:
0664:            public static ImageIcon finalAlias = new ImageIcon(Thread
0665:                    .currentThread().getContextClassLoader().getResource(
0666:                            "images/tree/alias/alias_final.gif"));
0667:
0668:            public static ImageIcon trashAlias = new ImageIcon(Thread
0669:                    .currentThread().getContextClassLoader().getResource(
0670:                            "images/tree/alias/alias_link.gif"));
0671:
0672:            public static ImageIcon workAlias = new ImageIcon(Thread
0673:                    .currentThread().getContextClassLoader().getResource(
0674:                            "images/tree/alias/alias_atwork.gif"));
0675:
0676:            public static ImageIcon lockAlias = new ImageIcon(Thread
0677:                    .currentThread().getContextClassLoader().getResource(
0678:                            "images/tree/alias/alias_lock.gif"));
0679:
0680:            public static ImageIcon addGUIMappingIcon = new ImageIcon(Thread
0681:                    .currentThread().getContextClassLoader().getResource(
0682:                            "images/toolbar/add/add_component.gif"));
0683:
0684:            public static ImageIcon addGUIMappingIconRollOver = new ImageIcon(
0685:                    Thread.currentThread().getContextClassLoader().getResource(
0686:                            "images/toolbar/add/add_component_over.gif"));
0687:
0688:            public static ImageIcon addComponentIcon = new ImageIcon(Thread
0689:                    .currentThread().getContextClassLoader().getResource(
0690:                            "images/toolbar/add/add_component.gif"));
0691:
0692:            public static ImageIcon addComponentIconRollOver = new ImageIcon(
0693:                    Thread.currentThread().getContextClassLoader().getResource(
0694:                            "images/toolbar/add/add_component_over.gif"));
0695:
0696:            public static ImageIcon deleteGUIMappingIcon = new ImageIcon(Thread
0697:                    .currentThread().getContextClassLoader().getResource(
0698:                            "images/toolbar/main/main_delete.gif"));
0699:
0700:            public static ImageIcon deleteGUIMappingIconRollOver = new ImageIcon(
0701:                    Thread.currentThread().getContextClassLoader().getResource(
0702:                            "images/toolbar/main/main_delete_over.gif"));
0703:
0704:            public static ImageIcon importIcon = new ImageIcon(Thread
0705:                    .currentThread().getContextClassLoader().getResource(
0706:                            "images/toolbar/main/main_import.gif"));
0707:
0708:            public static ImageIcon importIconRollOver = new ImageIcon(Thread
0709:                    .currentThread().getContextClassLoader().getResource(
0710:                            "images/toolbar/main/main_import_over.gif"));
0711:
0712:            public static ImageIcon exportIcon = new ImageIcon(Thread
0713:                    .currentThread().getContextClassLoader().getResource(
0714:                            "images/toolbar/main/main_export.gif"));
0715:
0716:            public static ImageIcon exportIconRollOver = new ImageIcon(Thread
0717:                    .currentThread().getContextClassLoader().getResource(
0718:                            "images/toolbar/main/main_export_over.gif"));
0719:
0720:            public static ImageIcon createLinkIcon = new ImageIcon(Thread
0721:                    .currentThread().getContextClassLoader().getResource(
0722:                            "images/toolbar/create/create_link.gif"));
0723:
0724:            public static ImageIcon createLinkIconRollOver = new ImageIcon(
0725:                    Thread.currentThread().getContextClassLoader().getResource(
0726:                            "images/toolbar/create/create_link_over.gif"));
0727:
0728:            public static ImageIcon unlinkIcon = new ImageIcon(Thread
0729:                    .currentThread().getContextClassLoader().getResource(
0730:                            "images/toolbar/create/create_link.gif"));
0731:
0732:            public static ImageIcon createComponentIcon = new ImageIcon(Thread
0733:                    .currentThread().getContextClassLoader().getResource(
0734:                            "images/toolbar/create/create_component.gif"));
0735:
0736:            public static ImageIcon createComponentIconRollOver = new ImageIcon(
0737:                    Thread.currentThread().getContextClassLoader().getResource(
0738:                            "images/toolbar/create/create_component_over.gif"));
0739:
0740:            public static ImageIcon toggleTagIcon = new ImageIcon(Thread
0741:                    .currentThread().getContextClassLoader().getResource(
0742:                            "images/toolbar/main/main_toogle_tag.gif"));
0743:
0744:            public static ImageIcon toggleTagIconRollOver = new ImageIcon(
0745:                    Thread.currentThread().getContextClassLoader().getResource(
0746:                            "images/toolbar/main/main_toogle_tag_over.gif"));
0747:
0748:            public static ImageIcon findIcon = new ImageIcon(Thread
0749:                    .currentThread().getContextClassLoader().getResource(
0750:                            "images/toolbar/search/search_text.gif"));
0751:
0752:            public static ImageIcon replaceIcon = new ImageIcon(Thread
0753:                    .currentThread().getContextClassLoader().getResource(
0754:                            "images/toolbar/search/replace_text.gif"));
0755:
0756:            public static ImageIcon findIconRollOver = new ImageIcon(Thread
0757:                    .currentThread().getContextClassLoader().getResource(
0758:                            "images/toolbar/search/search_text_over.gif"));
0759:
0760:            public static ImageIcon clearSearchIcon = new ImageIcon(Thread
0761:                    .currentThread().getContextClassLoader().getResource(
0762:                            "images/toolbar/search/search_cancel.gif"));
0763:
0764:            public static ImageIcon clearSearchIconRollOver = new ImageIcon(
0765:                    Thread.currentThread().getContextClassLoader().getResource(
0766:                            "images/toolbar/search/search_cancel_over.gif"));
0767:
0768:            public static ImageIcon undoIcon = new ImageIcon(Thread
0769:                    .currentThread().getContextClassLoader().getResource(
0770:                            "images/toolbar/main/main_undo.gif"));
0771:
0772:            public static ImageIcon undoIconRollOver = new ImageIcon(Thread
0773:                    .currentThread().getContextClassLoader().getResource(
0774:                            "images/toolbar/main/main_undo_over.gif"));
0775:
0776:            public static ImageIcon redoIcon = new ImageIcon(Thread
0777:                    .currentThread().getContextClassLoader().getResource(
0778:                            "images/toolbar/main/main_redo.gif"));
0779:
0780:            public static ImageIcon redoIconRollOver = new ImageIcon(Thread
0781:                    .currentThread().getContextClassLoader().getResource(
0782:                            "images/toolbar/main/main_redo_over.gif"));
0783:
0784:            public static ImageIcon editTagIcon = new ImageIcon(Thread
0785:                    .currentThread().getContextClassLoader().getResource(
0786:                            "images/toolbar/edit/edit_tag.gif"));
0787:
0788:            public static ImageIcon editTagIconRollOver = new ImageIcon(Thread
0789:                    .currentThread().getContextClassLoader().getResource(
0790:                            "images/toolbar/edit/edit_tag_over.gif"));
0791:
0792:            public static ImageIcon reloadImageIcon = new ImageIcon(Thread
0793:                    .currentThread().getContextClassLoader().getResource(
0794:                            "images/toolbar/main/main_reload.gif"));
0795:
0796:            public static ImageIcon reloadImageIconRollOver = new ImageIcon(
0797:                    Thread.currentThread().getContextClassLoader().getResource(
0798:                            "images/toolbar/main/main_reload_over.gif"));
0799:
0800:            public static ImageIcon uploadImageIcon = new ImageIcon(Thread
0801:                    .currentThread().getContextClassLoader().getResource(
0802:                            "images/toolbar/main/main_upload.gif"));
0803:
0804:            public static ImageIcon uploadImageIconRollOver = new ImageIcon(
0805:                    Thread.currentThread().getContextClassLoader().getResource(
0806:                            "images/toolbar/main/main_upload_over.gif"));
0807:
0808:            public static ImageIcon switchServerIcon = new ImageIcon(Thread
0809:                    .currentThread().getContextClassLoader().getResource(
0810:                            "images/toolbar/main/main_switch_server.gif"));
0811:
0812:            public static ImageIcon switchServerIconRollOver = new ImageIcon(
0813:                    Thread.currentThread().getContextClassLoader().getResource(
0814:                            "images/toolbar/main/main_switch_server_over.gif"));
0815:
0816:            public static ImageIcon deleteComponentIcon = new ImageIcon(Thread
0817:                    .currentThread().getContextClassLoader().getResource(
0818:                            "images/toolbar/main/main_delete.gif"));
0819:
0820:            public static ImageIcon deleteComponentIconRollOver = new ImageIcon(
0821:                    Thread.currentThread().getContextClassLoader().getResource(
0822:                            "images/toolbar/main/main_delete_over.gif"));
0823:
0824:            public static ImageIcon exportSubtreeIcon = new ImageIcon(Thread
0825:                    .currentThread().getContextClassLoader().getResource(
0826:                            "images/toolbar/main/main_save.gif"));
0827:
0828:            public static ImageIcon exportSubtreeIconRollOver = new ImageIcon(
0829:                    Thread.currentThread().getContextClassLoader().getResource(
0830:                            "images/toolbar/main/main_save_over.gif"));
0831:
0832:            public static ImageIcon deletePermissionIcon = new ImageIcon(Thread
0833:                    .currentThread().getContextClassLoader().getResource(
0834:                            "images/toolbar/delete/delete_permission.gif"));
0835:
0836:            public static ImageIcon deletePermissionIconRollOver = new ImageIcon(
0837:                    Thread.currentThread().getContextClassLoader().getResource(
0838:                            "images/toolbar/delete/delete_permission_over.gif"));
0839:
0840:            public static ImageIcon deleteOwnerIcon = new ImageIcon(Thread
0841:                    .currentThread().getContextClassLoader().getResource(
0842:                            "images/toolbar/delete/delete_owner.gif"));
0843:
0844:            public static ImageIcon deleteOwnerIconRollOver = new ImageIcon(
0845:                    Thread.currentThread().getContextClassLoader().getResource(
0846:                            "images/toolbar/delete/delete_owner_over.gif"));
0847:
0848:            public static ImageIcon addUserIcon = new ImageIcon(Thread
0849:                    .currentThread().getContextClassLoader().getResource(
0850:                            "images/toolbar/add/add_user.gif"));
0851:
0852:            public static ImageIcon addUserIconRollOver = new ImageIcon(Thread
0853:                    .currentThread().getContextClassLoader().getResource(
0854:                            "images/toolbar/add/add_user_over.gif"));
0855:
0856:            public static ImageIcon genericAddIcon = new ImageIcon(Thread
0857:                    .currentThread().getContextClassLoader().getResource(
0858:                            "images/toolbar/add/add_generic.gif"));
0859:
0860:            public static ImageIcon genericAddIconRollOver = new ImageIcon(
0861:                    Thread.currentThread().getContextClassLoader().getResource(
0862:                            "images/toolbar/add/add_generic_over.gif"));
0863:
0864:            public static ImageIcon genericDeleteIcon = new ImageIcon(Thread
0865:                    .currentThread().getContextClassLoader().getResource(
0866:                            "images/toolbar/delete/delete_generic.gif"));
0867:
0868:            public static ImageIcon genericDeleteIconRollOver = new ImageIcon(
0869:                    Thread.currentThread().getContextClassLoader().getResource(
0870:                            "images/toolbar/delete/delete_generic_over.gif"));
0871:
0872:            public static ImageIcon beginEditIcon = new ImageIcon(Thread
0873:                    .currentThread().getContextClassLoader().getResource(
0874:                            "images/toolbar/edit/edit_generic.gif"));
0875:
0876:            public static ImageIcon beginEditIconRollOver = new ImageIcon(
0877:                    Thread.currentThread().getContextClassLoader().getResource(
0878:                            "images/toolbar/edit/edit_generic_over.gif"));
0879:
0880:            public static ImageIcon rollbackEditIcon = new ImageIcon(Thread
0881:                    .currentThread().getContextClassLoader().getResource(
0882:                            "images/toolbar/edit/edit_rollback.gif"));
0883:
0884:            public static ImageIcon rollbackEditIconRollOver = new ImageIcon(
0885:                    Thread.currentThread().getContextClassLoader().getResource(
0886:                            "images/toolbar/edit/edit_rollback_over.gif"));
0887:
0888:            public static ImageIcon commitEditIcon = new ImageIcon(Thread
0889:                    .currentThread().getContextClassLoader().getResource(
0890:                            "images/toolbar/edit/edit_commit.gif"));
0891:
0892:            public static ImageIcon commitEditIconRollOver = new ImageIcon(
0893:                    Thread.currentThread().getContextClassLoader().getResource(
0894:                            "images/toolbar/edit/edit_commit_over.gif"));
0895:
0896:            public static ImageIcon newWindowIcon = new ImageIcon(Thread
0897:                    .currentThread().getContextClassLoader().getResource(
0898:                            "images/toolbar/view/view_new.gif"));
0899:
0900:            public static ImageIcon newWindowIconRollOver = new ImageIcon(
0901:                    Thread.currentThread().getContextClassLoader().getResource(
0902:                            "images/toolbar/view/view_new_over.gif"));
0903:
0904:            public static ImageIcon closeWindowIcon = new ImageIcon(Thread
0905:                    .currentThread().getContextClassLoader().getResource(
0906:                            "images/toolbar/view/view_close.gif"));
0907:
0908:            public static ImageIcon closeWindowIconRollOver = new ImageIcon(
0909:                    Thread.currentThread().getContextClassLoader().getResource(
0910:                            "images/toolbar/view/view_close_over.gif"));
0911:
0912:            public static ImageIcon createWorkflowIcon = new ImageIcon(Thread
0913:                    .currentThread().getContextClassLoader().getResource(
0914:                            "images/toolbar/workflow/create_task.gif"));
0915:
0916:            public static ImageIcon createWorkflowIconRollOver = new ImageIcon(
0917:                    Thread.currentThread().getContextClassLoader().getResource(
0918:                            "images/toolbar/workflow/create_task_over.gif"));
0919:
0920:            public static ImageIcon moveNextIcon = new ImageIcon(Thread
0921:                    .currentThread().getContextClassLoader().getResource(
0922:                            "images/toolbar/workflow/forward_task.gif"));
0923:
0924:            public static ImageIcon moveNextIconRollOver = new ImageIcon(Thread
0925:                    .currentThread().getContextClassLoader().getResource(
0926:                            "images/toolbar/workflow/forward_task_over.gif"));
0927:
0928:            public static ImageIcon movePreviousIcon = new ImageIcon(Thread
0929:                    .currentThread().getContextClassLoader().getResource(
0930:                            "images/toolbar/workflow/reject_task.gif"));
0931:
0932:            public static ImageIcon movePreviousIconRollOver = new ImageIcon(
0933:                    Thread.currentThread().getContextClassLoader().getResource(
0934:                            "images/toolbar/workflow/reject_task_over.gif"));
0935:
0936:            public static ImageIcon commitChangesIcon = new ImageIcon(Thread
0937:                    .currentThread().getContextClassLoader().getResource(
0938:                            "images/toolbar/workflow/commit_task.gif"));
0939:
0940:            public static ImageIcon commitChangesIconRollOver = new ImageIcon(
0941:                    Thread.currentThread().getContextClassLoader().getResource(
0942:                            "images/toolbar/workflow/commit_task_over.gif"));
0943:
0944:            public static ImageIcon discardChangesIcon = new ImageIcon(Thread
0945:                    .currentThread().getContextClassLoader().getResource(
0946:                            "images/toolbar/workflow/discard_task.gif"));
0947:
0948:            public static ImageIcon discardChangesIconRollOver = new ImageIcon(
0949:                    Thread.currentThread().getContextClassLoader().getResource(
0950:                            "images/toolbar/workflow/discard_task_over.gif"));
0951:
0952:            public static ImageIcon serverIcon = new ImageIcon(Thread
0953:                    .currentThread().getContextClassLoader().getResource(
0954:                            "images/tree/server/server_main.gif"));
0955:
0956:            public static ImageIcon editServerIcon = new ImageIcon(Thread
0957:                    .currentThread().getContextClassLoader().getResource(
0958:                            "images/tree/server/server_edit.gif"));
0959:
0960:            public static ImageIcon loginIcon = new ImageIcon(Thread
0961:                    .currentThread().getContextClassLoader().getResource(
0962:                            "images/toolbar/main/main_login.gif"));
0963:
0964:            public static ImageIcon loginIconRollOver = new ImageIcon(Thread
0965:                    .currentThread().getContextClassLoader().getResource(
0966:                            "images/toolbar/main/main_login_over.gif"));
0967:
0968:            public static ImageIcon loginRolloverIcon = new ImageIcon(Thread
0969:                    .currentThread().getContextClassLoader().getResource(
0970:                            "images/panel/gui_link.gif"));
0971:
0972:            public static ImageIcon userIcon = new ImageIcon(Thread
0973:                    .currentThread().getContextClassLoader().getResource(
0974:                            "images/tree/user/user_editor.gif"));
0975:
0976:            public static ImageIcon roleIcon = new ImageIcon(Thread
0977:                    .currentThread().getContextClassLoader().getResource(
0978:                            "images/tree/user/user_group.gif"));
0979:
0980:            public static ImageIcon lowPriorityIcon = new ImageIcon(Thread
0981:                    .currentThread().getContextClassLoader().getResource(
0982:                            "images/toolbar/workflow/low_priority.gif"));
0983:
0984:            public static ImageIcon lowPriorityIconRollOver = new ImageIcon(
0985:                    Thread.currentThread().getContextClassLoader().getResource(
0986:                            "images/toolbar/workflow/low_priority_over.gif"));
0987:
0988:            public static ImageIcon mediumPriorityIcon = new ImageIcon(Thread
0989:                    .currentThread().getContextClassLoader().getResource(
0990:                            "images/toolbar/workflow/medium_priority.gif"));
0991:
0992:            public static ImageIcon mediumPriorityIconRollOver = new ImageIcon(
0993:                    Thread.currentThread().getContextClassLoader().getResource(
0994:                            "images/toolbar/workflow/medium_priority_over.gif"));
0995:
0996:            public static ImageIcon highPriorityIcon = new ImageIcon(Thread
0997:                    .currentThread().getContextClassLoader().getResource(
0998:                            "images/toolbar/workflow/high_priority.gif"));
0999:
1000:            public static ImageIcon highPriorityIconRollOver = new ImageIcon(
1001:                    Thread.currentThread().getContextClassLoader().getResource(
1002:                            "images/toolbar/workflow/high_priority_over.gif"));
1003:
1004:            public static ImageIcon workflowInfoIcon = new ImageIcon(Thread
1005:                    .currentThread().getContextClassLoader().getResource(
1006:                            "images/toolbar/search/search_doc.gif"));
1007:
1008:            public static ImageIcon workflowInfoIconRollOver = new ImageIcon(
1009:                    Thread.currentThread().getContextClassLoader().getResource(
1010:                            "images/toolbar/search/search_doc_over.gif"));
1011:
1012:            public static ImageIcon lastPreviewIcon = new ImageIcon(Thread
1013:                    .currentThread().getContextClassLoader().getResource(
1014:                            "images/toolbar/view/view_browser.gif"));
1015:
1016:            public static ImageIcon previewIcon = new ImageIcon(Thread
1017:                    .currentThread().getContextClassLoader().getResource(
1018:                            "images/toolbar/view/view_browser.gif"));
1019:
1020:            public static ImageIcon previewIconRollOver = new ImageIcon(Thread
1021:                    .currentThread().getContextClassLoader().getResource(
1022:                            "images/toolbar/view/view_browser_over.gif"));
1023:
1024:            public static ImageIcon editPreviewIcon = new ImageIcon(Thread
1025:                    .currentThread().getContextClassLoader().getResource(
1026:                            "images/toolbar/edit/edit_preview.gif"));
1027:
1028:            public static ImageIcon showModifiedIcon = new ImageIcon(Thread
1029:                    .currentThread().getContextClassLoader().getResource(
1030:                            "images/toolbar/edit/show_modified.gif"));
1031:
1032:            public static ImageIcon showDeletedIcon = new ImageIcon(Thread
1033:                    .currentThread().getContextClassLoader().getResource(
1034:                            "images/toolbar/edit/show_deleted.gif"));
1035:
1036:            public static ImageIcon showLockedIcon = new ImageIcon(Thread
1037:                    .currentThread().getContextClassLoader().getResource(
1038:                            "images/toolbar/edit/show_locked.gif"));
1039:
1040:            public static ImageIcon performActionIcon = new ImageIcon(Thread
1041:                    .currentThread().getContextClassLoader().getResource(
1042:                            "images/toolbar/main/main_action.gif"));
1043:
1044:            public static ImageIcon performActionIconRollOver = new ImageIcon(
1045:                    Thread.currentThread().getContextClassLoader().getResource(
1046:                            "images/toolbar/main/main_action_over.gif"));
1047:
1048:            public static ImageIcon openRendererIcon = new ImageIcon(Thread
1049:                    .currentThread().getContextClassLoader().getResource(
1050:                            "images/toolbar/view/view_default.gif"));
1051:
1052:            public static ImageIcon openRendererIconRollOver = new ImageIcon(
1053:                    Thread.currentThread().getContextClassLoader().getResource(
1054:                            "images/toolbar/view/view_default_over.gif"));
1055:
1056:            public static ImageIcon configureIcon = new ImageIcon(Thread
1057:                    .currentThread().getContextClassLoader().getResource(
1058:                            "images/tree/system/system_main.gif"));
1059:
1060:            public static ImageIcon addPropertyIcon = new ImageIcon(Thread
1061:                    .currentThread().getContextClassLoader().getResource(
1062:                            "images/toolbar/add/add_generic.gif"));
1063:
1064:            public static ImageIcon addPropertyIconRollOver = new ImageIcon(
1065:                    Thread.currentThread().getContextClassLoader().getResource(
1066:                            "images/toolbar/add/add_generic_over.gif"));
1067:
1068:            public static ImageIcon deletePropertyIcon = new ImageIcon(Thread
1069:                    .currentThread().getContextClassLoader().getResource(
1070:                            "images/toolbar/delete/delete_generic.gif"));
1071:
1072:            public static ImageIcon deletePropertyIconRollOver = new ImageIcon(
1073:                    Thread.currentThread().getContextClassLoader().getResource(
1074:                            "images/toolbar/delete/delete_generic_over.gif"));
1075:
1076:            public static ImageIcon loggingIcon = new ImageIcon(Thread
1077:                    .currentThread().getContextClassLoader().getResource(
1078:                            "images/tree/system/system_library.gif"));
1079:
1080:            public static ImageIcon privilegeIcon = new ImageIcon(Thread
1081:                    .currentThread().getContextClassLoader().getResource(
1082:                            "images/tree/system/system_config.gif"));
1083:
1084:            public static ImageIcon applicationIcon = new ImageIcon(Thread
1085:                    .currentThread().getContextClassLoader().getResource(
1086:                            "images/tree/server/server_main.gif"));
1087:
1088:            public static ImageIcon launchEditorIcon = new ImageIcon(Thread
1089:                    .currentThread().getContextClassLoader().getResource(
1090:                            "images/toolbar/edit/edit_extern.gif"));
1091:
1092:            public static ImageIcon updateFromExternalIcon = new ImageIcon(
1093:                    Thread.currentThread().getContextClassLoader().getResource(
1094:                            "images/toolbar/edit/update_from_extern.gif"));
1095:
1096:            public static ImageIcon launchEditorIconRollOver = new ImageIcon(
1097:                    Thread.currentThread().getContextClassLoader().getResource(
1098:                            "images/toolbar/edit/edit_extern_over.gif"));
1099:
1100:            public static ImageIcon selectMatrixLayoutIcon = new ImageIcon(
1101:                    Thread.currentThread().getContextClassLoader().getResource(
1102:                            "images/toolbar/kh/raster_1.gif"));
1103:
1104:            public static ImageIcon selectFlatLayoutIcon = new ImageIcon(Thread
1105:                    .currentThread().getContextClassLoader().getResource(
1106:                            "images/toolbar/kh/reiter_1.gif"));
1107:
1108:            public static ImageIcon selectTabbedLayoutIcon = new ImageIcon(
1109:                    Thread.currentThread().getContextClassLoader().getResource(
1110:                            "images/toolbar/kh/reiter_2.gif"));
1111:
1112:            public static ImageIcon showSelectionIcon = new ImageIcon(Thread
1113:                    .currentThread().getContextClassLoader().getResource(
1114:                            "images/toolbar/kh/auge_on.gif"));
1115:
1116:            public static ImageIcon hideSelectionIcon = new ImageIcon(Thread
1117:                    .currentThread().getContextClassLoader().getResource(
1118:                            "images/toolbar/kh/auge_off.gif"));
1119:
1120:            public static ImageIcon flipAxisIcon = new ImageIcon(Thread
1121:                    .currentThread().getContextClassLoader().getResource(
1122:                            "images/toolbar/kh/achse_2.gif"));
1123:
1124:            public static ImageIcon followLinkIcon = new ImageIcon(Thread
1125:                    .currentThread().getContextClassLoader().getResource(
1126:                            "images/toolbar/kh/link_folgen.gif"));
1127:
1128:            public static ImageIcon editCategoriesIcon = new ImageIcon(Thread
1129:                    .currentThread().getContextClassLoader().getResource(
1130:                            "images/toolbar/kh/raster_bearb_1.gif"));
1131:
1132:            public static ImageIcon blueprintMasterIcon = new ImageIcon(Thread
1133:                    .currentThread().getContextClassLoader().getResource(
1134:                            "images/toolbar/kh/master.gif"));
1135:
1136:            public static ImageIcon blueprintInstanceIcon = new ImageIcon(
1137:                    Thread.currentThread().getContextClassLoader().getResource(
1138:                            "images/toolbar/kh/master_zugeordnet.gif"));
1139:
1140:            public static ImageIcon composedBlueprintMasterIcon = new ImageIcon(
1141:                    Thread.currentThread().getContextClassLoader().getResource(
1142:                            "images/toolbar/kh/master_child.gif"));
1143:
1144:            public static ImageIcon composedBlueprintInstanceIcon = new ImageIcon(
1145:                    Thread.currentThread().getContextClassLoader().getResource(
1146:                            "images/toolbar/kh/master_zugeordnet_child.gif"));
1147:
1148:            public static ImageIcon toggleFinalIcon = new ImageIcon(Thread
1149:                    .currentThread().getContextClassLoader().getResource(
1150:                            "images/toolbar/edit/switchFinal.gif"));
1151:
1152:            public static ImageIcon toggleFinalIconRollOver = new ImageIcon(
1153:                    Thread.currentThread().getContextClassLoader().getResource(
1154:                            "images/toolbar/edit/switchFinal_over.gif"));
1155:
1156:            public static ImageIcon spellcheckIcon = new ImageIcon(Thread
1157:                    .currentThread().getContextClassLoader().getResource(
1158:                            "images/toolbar/text/text_spellcheck.gif"));
1159:
1160:            public static ImageIcon logModuleClient = new ImageIcon(Thread
1161:                    .currentThread().getContextClassLoader().getResource(
1162:                            "images/tree/system/server_main.gif"));
1163:
1164:            public static ImageIcon logModulePreview = new ImageIcon(Thread
1165:                    .currentThread().getContextClassLoader().getResource(
1166:                            "images/tree/system/system_runtime.gif"));
1167:
1168:            public static ImageIcon logModuleTcl = new ImageIcon(Thread
1169:                    .currentThread().getContextClassLoader().getResource(
1170:                            "images/tree/types/type_tclinterp.gif"));
1171:
1172:            /* Background Images */
1173:            public static ImageIcon wizard = new ImageIcon(Thread
1174:                    .currentThread().getContextClassLoader().getResource(
1175:                            "images/screen/wizard.jpg"));
1176:
1177:            public static ImageIcon background = new ImageIcon(Thread
1178:                    .currentThread().getContextClassLoader().getResource(
1179:                            "images/screen/screen_main.png"));
1180:
1181:            public static ImageIcon smallAnimation = new ImageIcon(Thread
1182:                    .currentThread().getContextClassLoader().getResource(
1183:                            "images/screen/small_animation.gif"));
1184:
1185:            public static ImageIcon smallStatic = new ImageIcon(Thread
1186:                    .currentThread().getContextClassLoader().getResource(
1187:                            "images/screen/small_static.gif"));
1188:
1189:            public static ImageIcon largeStatic = new ImageIcon(Thread
1190:                    .currentThread().getContextClassLoader().getResource(
1191:                            "images/screen/large_static.gif"));
1192:
1193:            public static ImageIcon contelligentScreen = new ImageIcon(Thread
1194:                    .currentThread().getContextClassLoader().getResource(
1195:                            "images/screen/startup_screen.gif"));
1196:
1197:            /* Panel Images */
1198:            public static ImageIcon genericModule = new ImageIcon(Thread
1199:                    .currentThread().getContextClassLoader().getResource(
1200:                            "images/panel/gui_info.gif"));
1201:
1202:            public static ImageIcon infoModule = new ImageIcon(Thread
1203:                    .currentThread().getContextClassLoader().getResource(
1204:                            "images/panel/gui_access.gif"));
1205:
1206:            public static ImageIcon sessionModule = new ImageIcon(Thread
1207:                    .currentThread().getContextClassLoader().getResource(
1208:                            "images/panel/gui_access.gif"));
1209:
1210:            public static ImageIcon typeModule = new ImageIcon(Thread
1211:                    .currentThread().getContextClassLoader().getResource(
1212:                            "images/panel/gui_access.gif"));
1213:
1214:            public static ImageIcon genericGUI = new ImageIcon(Thread
1215:                    .currentThread().getContextClassLoader().getResource(
1216:                            "images/panel/gui_info.gif"));
1217:
1218:            public static ImageIcon accessGUI = new ImageIcon(Thread
1219:                    .currentThread().getContextClassLoader().getResource(
1220:                            "images/panel/gui_access.gif"));
1221:
1222:            public static ImageIcon actionGUI = new ImageIcon(Thread
1223:                    .currentThread().getContextClassLoader().getResource(
1224:                            "images/panel/gui_action.gif"));
1225:
1226:            public static ImageIcon colorGUI = new ImageIcon(Thread
1227:                    .currentThread().getContextClassLoader().getResource(
1228:                            "images/panel/gui_color.gif"));
1229:
1230:            public static ImageIcon dataGUI = new ImageIcon(Thread
1231:                    .currentThread().getContextClassLoader().getResource(
1232:                            "images/panel/gui_data.gif"));
1233:
1234:            public static ImageIcon textGUI = new ImageIcon(Thread
1235:                    .currentThread().getContextClassLoader().getResource(
1236:                            "images/panel/gui_text.gif"));
1237:
1238:            public static ImageIcon viewGUI = new ImageIcon(Thread
1239:                    .currentThread().getContextClassLoader().getResource(
1240:                            "images/panel/gui_view.gif"));
1241:
1242:            public static ImageIcon previewGUI = new ImageIcon(Thread
1243:                    .currentThread().getContextClassLoader().getResource(
1244:                            "images/panel/gui_preview.gif"));
1245:
1246:            public static ImageIcon folderGUI = new ImageIcon(Thread
1247:                    .currentThread().getContextClassLoader().getResource(
1248:                            "images/panel/gui_folder.gif"));
1249:
1250:            public static ImageIcon treeGUI = new ImageIcon(Thread
1251:                    .currentThread().getContextClassLoader().getResource(
1252:                            "images/panel/gui_tree.gif"));
1253:
1254:            public static ImageIcon tableGUI = new ImageIcon(Thread
1255:                    .currentThread().getContextClassLoader().getResource(
1256:                            "images/panel/gui_table.gif"));
1257:
1258:            public static ImageIcon htmlGUI = new ImageIcon(Thread
1259:                    .currentThread().getContextClassLoader().getResource(
1260:                            "images/panel/gui_htmleditor.gif"));
1261:
1262:            public static ImageIcon propertiesGUI = new ImageIcon(Thread
1263:                    .currentThread().getContextClassLoader().getResource(
1264:                            "images/panel/gui_properties.gif"));
1265:
1266:            public static ImageIcon linkGUI = new ImageIcon(Thread
1267:                    .currentThread().getContextClassLoader().getResource(
1268:                            "images/panel/gui_link.gif"));
1269:
1270:            public static ImageIcon thumbnailPage = new ImageIcon(Thread
1271:                    .currentThread().getContextClassLoader().getResource(
1272:                            "images/thumbnail/thumb_jsp.gif"));
1273:
1274:            public static ImageIcon thumbnailAction = new ImageIcon(Thread
1275:                    .currentThread().getContextClassLoader().getResource(
1276:                            "images/thumbnail/thumb_action.gif"));
1277:
1278:            public static ImageIcon createPageIcon = new ImageIcon(Thread
1279:                    .currentThread().getContextClassLoader().getResource(
1280:                            "images/toolbar/create/create_page.gif"));
1281:
1282:            public static ImageIcon createPageRollOver = new ImageIcon(Thread
1283:                    .currentThread().getContextClassLoader().getResource(
1284:                            "images/toolbar/create/create_page_over.gif"));
1285:
1286:            public static ImageIcon createPagesFolderIcon = new ImageIcon(
1287:                    Thread.currentThread().getContextClassLoader().getResource(
1288:                            "images/toolbar/create/create_pages_folder.gif"));
1289:
1290:            public static ImageIcon createPagesFolderRollOver = new ImageIcon(
1291:                    Thread
1292:                            .currentThread()
1293:                            .getContextClassLoader()
1294:                            .getResource(
1295:                                    "images/toolbar/create/create_pages_folder_over.gif"));
1296:
1297:            public static ImageIcon ledOff = new ImageIcon(Thread
1298:                    .currentThread().getContextClassLoader().getResource(
1299:                            "images/screen/led_off.gif"));
1300:
1301:            public static ImageIcon ledOn = new ImageIcon(Thread
1302:                    .currentThread().getContextClassLoader().getResource(
1303:                            "images/screen/led_on.gif"));
1304:
1305:            public static ImageIcon lockIcon = new ImageIcon(Thread
1306:                    .currentThread().getContextClassLoader().getResource(
1307:                            "images/toolbar/edit/lock.gif"));
1308:
1309:            public static ImageIcon lockIconRollOver = new ImageIcon(Thread
1310:                    .currentThread().getContextClassLoader().getResource(
1311:                            "images/toolbar/edit/lock_over.gif"));
1312:
1313:            public static ImageIcon unlockIcon = new ImageIcon(Thread
1314:                    .currentThread().getContextClassLoader().getResource(
1315:                            "images/toolbar/edit/unlock.gif"));
1316:
1317:            public static ImageIcon unlockIconRollOver = new ImageIcon(Thread
1318:                    .currentThread().getContextClassLoader().getResource(
1319:                            "images/toolbar/edit/unlock_over.gif"));
1320:
1321:            public static ImageIcon sealIcon = new ImageIcon(Thread
1322:                    .currentThread().getContextClassLoader().getResource(
1323:                            "images/toolbar/main/seal.gif"));
1324:
1325:            public static ImageIcon blankIcon = new ImageIcon(Thread
1326:                    .currentThread().getContextClassLoader().getResource(
1327:                            "images/toolbar/main/blank.gif"));
1328:
1329:            public static ImageIcon removeInProgressIcon = new ImageIcon(Thread
1330:                    .currentThread().getContextClassLoader().getResource(
1331:                            "images/tree/delete_progress.gif"));
1332:
1333:            public static ImageIcon addInProgressIcon = new ImageIcon(Thread
1334:                    .currentThread().getContextClassLoader().getResource(
1335:                            "images/tree/copy_progress.gif"));
1336:
1337:            public static ImageIcon lockedByMeIcon = new ImageIcon(Thread
1338:                    .currentThread().getContextClassLoader().getResource(
1339:                            "images/tree/locked_by_me.gif"));
1340:
1341:            public static ImageIcon lockedByWfIcon = new ImageIcon(Thread
1342:                    .currentThread().getContextClassLoader().getResource(
1343:                            "images/tree/locked_by_wf.gif"));
1344:
1345:            public static ImageIcon lockedBySomeoneElseIcon = new ImageIcon(
1346:                    Thread.currentThread().getContextClassLoader().getResource(
1347:                            "images/tree/locked_by_someone_else.gif"));
1348:
1349:            public static ImageIcon lockedByMeSmallIcon = new ImageIcon(Thread
1350:                    .currentThread().getContextClassLoader().getResource(
1351:                            "images/tree/locked_by_me_small.gif"));
1352:
1353:            public static ImageIcon lockedByWfSmallIcon = new ImageIcon(Thread
1354:                    .currentThread().getContextClassLoader().getResource(
1355:                            "images/tree/locked_by_wf_small.gif"));
1356:
1357:            public static ImageIcon lockedBySomeoneElseSmallIcon = new ImageIcon(
1358:                    Thread.currentThread().getContextClassLoader().getResource(
1359:                            "images/tree/locked_by_someone_else_small.gif"));
1360:
1361:            public static ImageIcon editContextIcon = new ImageIcon(Thread
1362:                    .currentThread().getContextClassLoader().getResource(
1363:                            "images/toolbar/edit/edit_context.gif"));
1364:
1365:            public static ImageIcon switchContextIcon = new ImageIcon(Thread
1366:                    .currentThread().getContextClassLoader().getResource(
1367:                            "images/toolbar/edit/switch_context.gif"));
1368:
1369:            public static ImageIcon switchContextIconRollOver = new ImageIcon(
1370:                    Thread.currentThread().getContextClassLoader().getResource(
1371:                            "images/toolbar/edit/switch_context_over.gif"));
1372:
1373:            public static ImageIcon createContextIcon = new ImageIcon(Thread
1374:                    .currentThread().getContextClassLoader().getResource(
1375:                            "images/toolbar/edit/create_context.gif"));
1376:
1377:            public static ImageIcon createContextIconRollOver = new ImageIcon(
1378:                    Thread.currentThread().getContextClassLoader().getResource(
1379:                            "images/toolbar/edit/create_context_over.gif"));
1380:
1381:            public static ImageIcon discardContextIcon = new ImageIcon(Thread
1382:                    .currentThread().getContextClassLoader().getResource(
1383:                            "images/toolbar/edit/discard_context.gif"));
1384:
1385:            public static ImageIcon discardContextIconRollOver = new ImageIcon(
1386:                    Thread.currentThread().getContextClassLoader().getResource(
1387:                            "images/toolbar/edit/discard_context_over.gif"));
1388:
1389:            public static ImageIcon commitContextIcon = new ImageIcon(Thread
1390:                    .currentThread().getContextClassLoader().getResource(
1391:                            "images/toolbar/edit/commit_context.gif"));
1392:
1393:            public static ImageIcon commitContextIconRollOver = new ImageIcon(
1394:                    Thread.currentThread().getContextClassLoader().getResource(
1395:                            "images/toolbar/edit/commit_context_over.gif"));
1396:
1397:            public static ImageIcon helpIcon = new ImageIcon(Thread
1398:                    .currentThread().getContextClassLoader().getResource(
1399:                            "images/toolbar/main/main_help.gif"));
1400:
1401:            public static ImageIcon addElementIcon = new ImageIcon(Thread
1402:                    .currentThread().getContextClassLoader().getResource(
1403:                            "images/toolbar/add/add_generic.gif"));
1404:
1405:            public static ImageIcon removeElementIcon = new ImageIcon(Thread
1406:                    .currentThread().getContextClassLoader().getResource(
1407:                            "images/toolbar/delete/delete_generic.gif"));
1408:
1409:            public static ImageIcon contelligentIcon = new ImageIcon(Thread
1410:                    .currentThread().getContextClassLoader().getResource(
1411:                            "icon/iconimage.gif"));
1412:
1413:            public static ImageIcon addToBlueprintInstancesIcon = new ImageIcon(
1414:                    Thread.currentThread().getContextClassLoader().getResource(
1415:                            "images/toolbar/add/add_generic.gif"));
1416:
1417:            public static ImageIcon cleanUpBlueprintInstancesIcon = new ImageIcon(
1418:                    Thread.currentThread().getContextClassLoader().getResource(
1419:                            "images/toolbar/add/add_generic.gif"));
1420:
1421:            public static ImageIcon commitSubtreeIcon = new ImageIcon(Thread
1422:                    .currentThread().getContextClassLoader().getResource(
1423:                            "images/toolbar/add/add_generic.gif"));
1424:
1425:            public static ImageIcon rollbackSubtreeIcon = new ImageIcon(Thread
1426:                    .currentThread().getContextClassLoader().getResource(
1427:                            "images/toolbar/add/add_generic.gif"));
1428:
1429:            public static ImageIcon accessStartEndOffIcon = new ImageIcon(
1430:                    Thread.currentThread().getContextClassLoader().getResource(
1431:                            "images/access/startendoff.gif"));
1432:
1433:            public static ImageIcon accessStartEndOnIcon = new ImageIcon(Thread
1434:                    .currentThread().getContextClassLoader().getResource(
1435:                            "images/access/startendon.gif"));
1436:
1437:            public static ImageIcon accessOnIcon = new ImageIcon(Thread
1438:                    .currentThread().getContextClassLoader().getResource(
1439:                            "images/access/on.gif"));
1440:
1441:            public static ImageIcon accessStartOffIcon = new ImageIcon(Thread
1442:                    .currentThread().getContextClassLoader().getResource(
1443:                            "images/access/startoff.gif"));
1444:
1445:            public static ImageIcon accessStartOnIcon = new ImageIcon(Thread
1446:                    .currentThread().getContextClassLoader().getResource(
1447:                            "images/access/starton.gif"));
1448:
1449:            public static ImageIcon accessExpiredIcon = new ImageIcon(Thread
1450:                    .currentThread().getContextClassLoader().getResource(
1451:                            "images/access/expired.gif"));
1452:
1453:            public static ImageIcon accessEndOnIcon = new ImageIcon(Thread
1454:                    .currentThread().getContextClassLoader().getResource(
1455:                            "images/access/endon.gif"));
1456:
1457:            public static ImageIcon addBookmarkIcon = new ImageIcon(Thread
1458:                    .currentThread().getContextClassLoader().getResource(
1459:                            "images/toolbar/add/add_generic.gif"));
1460:
1461:            public static ImageIcon addBookmarkIconRollOver = new ImageIcon(
1462:                    Thread.currentThread().getContextClassLoader().getResource(
1463:                            "images/toolbar/add/add_generic_over.gif"));
1464:
1465:            public static ImageIcon manageBookmarkIcon = new ImageIcon(Thread
1466:                    .currentThread().getContextClassLoader().getResource(
1467:                            "images/toolbar/edit/edit_tag.gif"));
1468:
1469:            public static ImageIcon manageBookmarkIconRollOver = new ImageIcon(
1470:                    Thread.currentThread().getContextClassLoader().getResource(
1471:                            "images/toolbar/edit/edit_tag_over.gif"));
1472:
1473:            public static void addIcon(String symbolicName, ImageIcon icon) {
1474:                icons.put(symbolicName, icon);
1475:            }
1476:
1477:            public static boolean isSystemIcon(String symbolicName) {
1478:                return icons.containsKey(symbolicName);
1479:            }
1480:
1481:            public static ImageIcon getIcon(String symbolicName) {
1482:                if (icons.containsKey(symbolicName))
1483:                    return (ImageIcon) icons.get(symbolicName);
1484:                ImageIcon icon = loadImageIcon(symbolicName);
1485:                if (icon != null)
1486:                    return icon;
1487:                return componentNotFoundIcon;
1488:            }
1489:
1490:            public static Map<String, ImageIcon> getIcons() {
1491:                return icons;
1492:            }
1493:
1494:            public static String loadRenderedContent(String relativeURL) {
1495:                String content = null;
1496:                try {
1497:                    StringBuffer messageBuffer = new StringBuffer();
1498:                    GetMethod getMethod = new GetMethod(ServerInfo
1499:                            .getInstance().getServer()
1500:                            + relativeURL);
1501:                    ServerConnector.executeMethod(ServerInfo.getInstance()
1502:                            .getServer(), getMethod);
1503:
1504:                    URL url = new URL(ServerInfo.getInstance().getServer()
1505:                            + relativeURL);
1506:
1507:                    HttpURLConnection con = new HttpURLConnection(getMethod,
1508:                            url);
1509:                    InputStream is = con.getInputStream();
1510:                    if (con.getContentLength() != 0) {
1511:                        InputStreamReader isr = new InputStreamReader(is);
1512:                        BufferedReader br = new BufferedReader(isr);
1513:                        while (true) {
1514:                            String line = br.readLine();
1515:                            if (line == null) {
1516:                                break;
1517:                            } else if (messageBuffer.length() > 0) {
1518:                                messageBuffer.append("\n");
1519:                            }
1520:                            messageBuffer.append(line);
1521:                        }
1522:                        content = messageBuffer.toString();
1523:                        br.close();
1524:                        isr.close();
1525:                        is.close();
1526:                    }
1527:                } catch (Exception e) {
1528:                    logger.log(Level.WARNING, "Could not load URL '"
1529:                            + relativeURL + "'", e);
1530:                }
1531:                return content;
1532:            }
1533:
1534:            public static Image loadTemporaryImage(String relativeURL) {
1535:                Image image = null;
1536:                try {
1537:                    GetMethod getMethod = new GetMethod(ServerInfo
1538:                            .getInstance().getServer()
1539:                            + relativeURL);
1540:                    ServerConnector.executeMethod(ServerInfo.getInstance()
1541:                            .getServer(), getMethod);
1542:
1543:                    URL url = new URL(ServerInfo.getInstance().getServer()
1544:                            + relativeURL);
1545:
1546:                    // System.out.println("reading coonection from " +imageURL);
1547:                    HttpURLConnection con = new HttpURLConnection(getMethod,
1548:                            url);
1549:                    image = URLImageProducer.produceFromURLConnection(con);
1550:                } catch (MalformedURLException e) {
1551:                    logger.log(Level.WARNING, "Could not load image with URL '"
1552:                            + relativeURL + "'", e);
1553:                } catch (IOException e) {
1554:                    logger.log(Level.WARNING, "Could not load image with URL '"
1555:                            + relativeURL + "'", e);
1556:                } catch (RemoteActionException e) {
1557:                    logger.log(Level.WARNING, "Could not load image with URL '"
1558:                            + relativeURL + "'", e);
1559:                }
1560:                return image;
1561:            }
1562:
1563:            public static ImageIcon loadImageIcon(String relativeURL) {
1564:                ImageIcon icon = null;
1565:                try {
1566:                    GetMethod getMethod = new GetMethod(ServerInfo
1567:                            .getInstance().getServer()
1568:                            + relativeURL);
1569:                    ServerConnector.executeMethod(ServerInfo.getInstance()
1570:                            .getServer(), getMethod);
1571:
1572:                    URL url = new URL(ServerInfo.getInstance().getServer()
1573:                            + relativeURL);
1574:
1575:                    // System.out.println("reading coonection from " +imageURL);
1576:                    HttpURLConnection con = new HttpURLConnection(getMethod,
1577:                            url);
1578:
1579:                    icon = new ImageIcon(URLImageProducer
1580:                            .produceFromURLConnection(con));
1581:
1582:                } catch (MalformedURLException e) {
1583:                    logger.log(Level.WARNING, "Could not load image with URL '"
1584:                            + relativeURL + "'", e);
1585:                } catch (IOException e) {
1586:                    logger.log(Level.WARNING, "Could not load image with URL '"
1587:                            + relativeURL + "'", e);
1588:                } catch (RemoteActionException e) {
1589:                    logger.log(Level.WARNING, "Could not load image with URL '"
1590:                            + relativeURL + "'", e);
1591:                }
1592:                return icon;
1593:            }
1594:
1595:            public static Image mergeImages(Image lower, Image upper) {
1596:                if (lower.getWidth(null) < 0 || lower.getHeight(null) < 0) {
1597:                    return upper;
1598:                }
1599:                if (upper.getWidth(null) < 0 || upper.getHeight(null) < 0) {
1600:                    return lower;
1601:                }
1602:
1603:                Image mergedImage = new BufferedImage(lower.getWidth(null),
1604:                        lower.getHeight(null), BufferedImage.TYPE_INT_ARGB);
1605:                Graphics graphics = mergedImage.getGraphics();
1606:                graphics.drawImage(lower, 0, 0, null);
1607:                graphics.drawImage(upper, 0, 0, null);
1608:                return mergedImage;
1609:            }
1610:
1611:            public static ImageIcon mergeIcons(ImageIcon lower, ImageIcon upper) {
1612:                return new ImageIcon(mergeImages(lower.getImage(), upper
1613:                        .getImage()));
1614:            }
1615:
1616:            public static void setLocale(Locale locale) {
1617:                Resources.locale = locale;
1618:            }
1619:
1620:            public static Locale getLocale() {
1621:                return Resources.locale;
1622:            }
1623:
1624:            public static void setBasePropertyFileName(String baseName) {
1625:                Resources.baseName = baseName;
1626:            }
1627:
1628:            private static String getLocalString(String key,
1629:                    ResourceBundle resourceBundle, boolean isNotDefinedSevere) {
1630:                if (key == null || key.equals("")) {
1631:                    return "";
1632:                }
1633:                try {
1634:                    return resourceBundle.getString(key);
1635:                } catch (MissingResourceException e) {
1636:                    if (isNotDefinedSevere) {
1637:                        logger.log(Level.SEVERE, "Resource error: " + e, e);
1638:                        return key + "_not_defined";
1639:                    } else {
1640:                        logger.log(Level.FINE, "Resource error: " + e);
1641:                        return key;
1642:                    }
1643:                }
1644:            }
1645:
1646:            public static String getLocalString(String key) {
1647:                return getLocalString(key, true);
1648:            }
1649:
1650:            public static String getLocalString(String key,
1651:                    boolean isNotDefinedSevere) {
1652:                return getLocalString(key, Resources.resourceBundle,
1653:                        isNotDefinedSevere);
1654:            }
1655:
1656:            public static String getLocalString(String key, String[] arguments) {
1657:                return getLocalString(key, arguments, true);
1658:            }
1659:
1660:            public static String getLocalString(String key, String[] arguments,
1661:                    boolean isNotDefinedSevere) {
1662:                String localString = getLocalString(key, isNotDefinedSevere);
1663:                return MessageFormat.format(localString, arguments);
1664:            }
1665:
1666:            public static String getLocalStringForPackage(String key,
1667:                    String baseName) {
1668:                return getLocalStringForPackage(key, baseName, true);
1669:            }
1670:
1671:            public static String getLocalStringForPackage(String key,
1672:                    String baseName, boolean isNotDefinedSevere) {
1673:                ResourceBundle packageBundle = ResourceBundle.getBundle(
1674:                        baseName, Resources.locale);
1675:                return getLocalString(key, packageBundle, isNotDefinedSevere);
1676:            }
1677:
1678:            public static String getLocalStringForPackage(String key,
1679:                    String[] arguments, String baseName,
1680:                    boolean isNotDefinedSevere) {
1681:                String localString = getLocalStringForPackage(key, baseName,
1682:                        isNotDefinedSevere);
1683:                String formattedString = MessageFormat.format(localString,
1684:                        arguments);
1685:                return formattedString;
1686:            }
1687:
1688:            public static Locale[] getSupportedLocales() {
1689:                return supportedLocales;
1690:            }
1691:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.