001    /*
002     *  Licensed to the Apache Software Foundation (ASF) under one
003     *  or more contributor license agreements.  See the NOTICE file
004     *  distributed with this work for additional information
005     *  regarding copyright ownership.  The ASF licenses this file
006     *  to you under the Apache License, Version 2.0 (the
007     *  "License"); you may not use this file except in compliance
008     *  with the License.  You may obtain a copy of the License at
009     *  
010     *    http://www.apache.org/licenses/LICENSE-2.0
011     *  
012     *  Unless required by applicable law or agreed to in writing,
013     *  software distributed under the License is distributed on an
014     *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     *  KIND, either express or implied.  See the License for the
016     *  specific language governing permissions and limitations
017     *  under the License. 
018     *  
019     */
020    package org.apache.directory.studio.apacheds;
021    
022    
023    
024    /**
025     * This interface stores all the constants used in the plugin.
026     *
027     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
028     * @version $Rev$, $Date$
029     */
030    public interface ApacheDsPluginConstants
031    {
032        /** The plug-in ID */
033        public static final String PLUGIN_ID = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Plugin_id" );
034        
035        // ------
036        // IMAGES
037        // ------
038        public static final String IMG_SERVER_NEW = "resources/icons/server_new.gif";
039        public static final String IMG_SERVER_NEW_WIZARD = "resources/icons/server_new_wizard.png";
040        public static final String IMG_SERVER = "resources/icons/server.gif";
041        public static final String IMG_SERVER_STARTED = "resources/icons/server_started.gif";
042        public static final String IMG_SERVER_STARTING1 = "resources/icons/server_starting1.gif";
043        public static final String IMG_SERVER_STARTING2 = "resources/icons/server_starting2.gif";
044        public static final String IMG_SERVER_STARTING3 = "resources/icons/server_starting3.gif";
045        public static final String IMG_SERVER_STOPPED = "resources/icons/server_stopped.gif";
046        public static final String IMG_SERVER_STOPPING1 = "resources/icons/server_stopping1.gif";
047        public static final String IMG_SERVER_STOPPING2 = "resources/icons/server_stopping2.gif";
048        public static final String IMG_SERVER_STOPPING3 = "resources/icons/server_stopping3.gif";
049        public static final String IMG_RUN = "resources/icons/run.gif";
050        public static final String IMG_STOP = "resources/icons/stop.gif";
051        public static final String IMG_CREATE_CONNECTION = "resources/icons/connection_new.gif";
052    
053        // --------
054        // COMMANDS
055        // --------
056        public static final String CMD_NEW_SERVER = ApacheDsPlugin.getDefault().getPluginProperties().getString(
057            "Cmd_NewServer_id" );
058        public static final String CMD_RUN = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Cmd_Run_id" );
059        public static final String CMD_STOP = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Cmd_Stop_id" );
060        public static final String CMD_PROPERTIES = ApacheDsPlugin.getDefault().getPluginProperties().getString(
061            "Cmd_Properties_id" );
062        public static final String CMD_OPEN_CONFIGURATION = ApacheDsPlugin.getDefault().getPluginProperties().getString(
063            "Cmd_OpenConfiguration_id" );
064        public static final String CMD_DELETE = ApacheDsPlugin.getDefault().getPluginProperties().getString(
065            "Cmd_Delete_id" );;
066        public static final String CMD_RENAME = ApacheDsPlugin.getDefault().getPluginProperties().getString(
067            "Cmd_Rename_id" );;
068        public static final String CMD_CREATE_CONNECTION = ApacheDsPlugin.getDefault().getPluginProperties().getString(
069            "Cmd_CreateConnection_id" );
070    
071        // --------------
072        // PROPERTY PAGES
073        // --------------
074        public static final String PROP_SERVER_PROPERTY_PAGE = ApacheDsPlugin.getDefault().getPluginProperties().getString(
075            "Prop_ServerPropertyPage_id" );
076    
077        // -----
078        // VIEWS
079        // -----
080        public static final String VIEW_SERVERS_VIEW = ApacheDsPlugin.getDefault().getPluginProperties().getString(
081            "View_ServersView_id" );
082    
083        // --------
084        // CONTEXTS
085        // --------
086        public static final String CONTEXTS_SERVERS_VIEW = ApacheDsPlugin.getDefault().getPluginProperties().getString(
087            "Ctx_ServersView_id" );
088    
089        // -----------
090        // PREFERENCES
091        // -----------
092        /** The Preference ID for the Colors and Font Debug Font setting */
093        public static final String PREFS_COLORS_AND_FONTS_DEBUG_FONT = "prefs.colorAndFonts.debugFont";
094        /** The Preference ID for the Colors and Font Debug Color setting */
095        public static final String PREFS_COLORS_AND_FONTS_DEBUG_COLOR = "prefs.colorAndFonts.debugColor";
096    
097        /** The Preference ID for the Colors and Font Info Font setting */
098        public static final String PREFS_COLORS_AND_FONTS_INFO_FONT = "prefs.colorAndFonts.infoFont";
099        /** The Preference ID for the Colors and Font Info Color setting */
100        public static final String PREFS_COLORS_AND_FONTS_INFO_COLOR = "prefs.colorAndFonts.infoColor";
101    
102        /** The Preference ID for the Colors and Font Warn Font setting */
103        public static final String PREFS_COLORS_AND_FONTS_WARN_FONT = "prefs.colorAndFonts.warnFont";
104        /** The Preference ID for the Colors and Font Warn Color setting */
105        public static final String PREFS_COLORS_AND_FONTS_WARN_COLOR = "prefs.colorAndFonts.warnColor";
106    
107        /** The Preference ID for the Colors and Font Error Font settings */
108        public static final String PREFS_COLORS_AND_FONTS_ERROR_FONT = "prefs.colorAndFonts.errorFont";
109        /** The Preference ID for the Colors and Font Error Color setting */
110        public static final String PREFS_COLORS_AND_FONTS_ERROR_COLOR = "prefs.colorAndFonts.errorColor";
111    
112        /** The Preference ID for the Colors and Font Fatal Font setting */
113        public static final String PREFS_COLORS_AND_FONTS_FATAL_FONT = "prefs.colorAndFonts.fatalFont";
114        /** The Preference ID for the Colors and Font Fatal Color setting */
115        public static final String PREFS_COLORS_AND_FONTS_FATAL_COLOR = "prefs.colorAndFonts.fatalColor";
116    
117        /** The Preference ID for the Servers Logs Level setting */
118        public static final String PREFS_SERVER_LOGS_LEVEL = "prefs.serverLogs.level";
119        /** The Preference ID for the Servers Logs Level Debug value */
120        public static final String PREFS_SERVER_LOGS_LEVEL_DEBUG = "debug";
121        /** The Preference ID for the Servers Logs Level Info value */
122        public static final String PREFS_SERVER_LOGS_LEVEL_INFO = "info";
123        /** The Preference ID for the Servers Logs Level Warn value */
124        public static final String PREFS_SERVER_LOGS_LEVEL_WARN = "warning";
125        /** The Preference ID for the Servers Logs Level Error value */
126        public static final String PREFS_SERVER_LOGS_LEVEL_ERROR = "error";
127        /** The Preference ID for the Servers Logs Level Fatal value */
128        public static final String PREFS_SERVER_LOGS_LEVEL_FATAL = "fatal";
129    
130        /** The Preference ID for the Servers Logs Pattern setting */
131        public static final String PREFS_SERVER_LOGS_PATTERN = "prefs.serverLogs.pattern";
132    }