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     * This interface stores all the constants used in the plugin.
025     *
026     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
027     * @version $Rev$, $Date$
028     */
029    public interface ApacheDsPluginConstants
030    {
031        /** The plug-in ID */
032        public static final String PLUGIN_ID = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Plugin_id" );
033    
034        // ------
035        // IMAGES
036        // ------
037        public static final String IMG_SERVER_NEW = "resources/icons/server_new.gif";
038        public static final String IMG_SERVER_NEW_WIZARD = "resources/icons/server_new_wizard.png";
039        public static final String IMG_SERVER = "resources/icons/server.gif";
040        public static final String IMG_SERVER_STARTED = "resources/icons/server_started.gif";
041        public static final String IMG_SERVER_STARTING1 = "resources/icons/server_starting1.gif";
042        public static final String IMG_SERVER_STARTING2 = "resources/icons/server_starting2.gif";
043        public static final String IMG_SERVER_STARTING3 = "resources/icons/server_starting3.gif";
044        public static final String IMG_SERVER_STOPPED = "resources/icons/server_stopped.gif";
045        public static final String IMG_SERVER_STOPPING1 = "resources/icons/server_stopping1.gif";
046        public static final String IMG_SERVER_STOPPING2 = "resources/icons/server_stopping2.gif";
047        public static final String IMG_SERVER_STOPPING3 = "resources/icons/server_stopping3.gif";
048        public static final String IMG_RUN = "resources/icons/run.gif";
049        public static final String IMG_STOP = "resources/icons/stop.gif";
050        public static final String IMG_CREATE_CONNECTION = "resources/icons/connection_new.gif";
051    
052        // --------
053        // COMMANDS
054        // --------
055        public static final String CMD_NEW_SERVER = ApacheDsPlugin.getDefault().getPluginProperties().getString(
056            "Cmd_NewServer_id" );
057        public static final String CMD_RUN = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Cmd_Run_id" );
058        public static final String CMD_STOP = ApacheDsPlugin.getDefault().getPluginProperties().getString( "Cmd_Stop_id" );
059        public static final String CMD_PROPERTIES = ApacheDsPlugin.getDefault().getPluginProperties().getString(
060            "Cmd_Properties_id" );
061        public static final String CMD_OPEN_CONFIGURATION = ApacheDsPlugin.getDefault().getPluginProperties().getString(
062            "Cmd_OpenConfiguration_id" );
063        public static final String CMD_DELETE = ApacheDsPlugin.getDefault().getPluginProperties().getString(
064            "Cmd_Delete_id" );;
065        public static final String CMD_RENAME = ApacheDsPlugin.getDefault().getPluginProperties().getString(
066            "Cmd_Rename_id" );;
067        public static final String CMD_CREATE_CONNECTION = ApacheDsPlugin.getDefault().getPluginProperties().getString(
068            "Cmd_CreateConnection_id" );
069    
070        // --------------
071        // PROPERTY PAGES
072        // --------------
073        public static final String PROP_SERVER_PROPERTY_PAGE = ApacheDsPlugin.getDefault().getPluginProperties().getString(
074            "Prop_ServerPropertyPage_id" );
075    
076        // -----
077        // VIEWS
078        // -----
079        public static final String VIEW_SERVERS_VIEW = ApacheDsPlugin.getDefault().getPluginProperties().getString(
080            "View_ServersView_id" );
081    
082        // --------
083        // CONTEXTS
084        // --------
085        public static final String CONTEXTS_SERVERS_VIEW = ApacheDsPlugin.getDefault().getPluginProperties().getString(
086            "Ctx_ServersView_id" );
087    
088        // -----------
089        // PREFERENCES
090        // -----------
091        /** The Preference ID for the Colors and Font Debug Font setting */
092        public static final String PREFS_COLORS_AND_FONTS_DEBUG_FONT = "prefs.colorAndFonts.debugFont";
093        /** The Preference ID for the Colors and Font Debug Color setting */
094        public static final String PREFS_COLORS_AND_FONTS_DEBUG_COLOR = "prefs.colorAndFonts.debugColor";
095    
096        /** The Preference ID for the Colors and Font Info Font setting */
097        public static final String PREFS_COLORS_AND_FONTS_INFO_FONT = "prefs.colorAndFonts.infoFont";
098        /** The Preference ID for the Colors and Font Info Color setting */
099        public static final String PREFS_COLORS_AND_FONTS_INFO_COLOR = "prefs.colorAndFonts.infoColor";
100    
101        /** The Preference ID for the Colors and Font Warn Font setting */
102        public static final String PREFS_COLORS_AND_FONTS_WARN_FONT = "prefs.colorAndFonts.warnFont";
103        /** The Preference ID for the Colors and Font Warn Color setting */
104        public static final String PREFS_COLORS_AND_FONTS_WARN_COLOR = "prefs.colorAndFonts.warnColor";
105    
106        /** The Preference ID for the Colors and Font Error Font settings */
107        public static final String PREFS_COLORS_AND_FONTS_ERROR_FONT = "prefs.colorAndFonts.errorFont";
108        /** The Preference ID for the Colors and Font Error Color setting */
109        public static final String PREFS_COLORS_AND_FONTS_ERROR_COLOR = "prefs.colorAndFonts.errorColor";
110    
111        /** The Preference ID for the Colors and Font Fatal Font setting */
112        public static final String PREFS_COLORS_AND_FONTS_FATAL_FONT = "prefs.colorAndFonts.fatalFont";
113        /** The Preference ID for the Colors and Font Fatal Color setting */
114        public static final String PREFS_COLORS_AND_FONTS_FATAL_COLOR = "prefs.colorAndFonts.fatalColor";
115    
116        /** The Preference ID for the Servers Logs Level setting */
117        public static final String PREFS_SERVER_LOGS_LEVEL = "prefs.serverLogs.level";
118        /** The Preference ID for the Servers Logs Level Debug value */
119        public static final String PREFS_SERVER_LOGS_LEVEL_DEBUG = "debug";
120        /** The Preference ID for the Servers Logs Level Info value */
121        public static final String PREFS_SERVER_LOGS_LEVEL_INFO = "info";
122        /** The Preference ID for the Servers Logs Level Warn value */
123        public static final String PREFS_SERVER_LOGS_LEVEL_WARN = "warning";
124        /** The Preference ID for the Servers Logs Level Error value */
125        public static final String PREFS_SERVER_LOGS_LEVEL_ERROR = "error";
126        /** The Preference ID for the Servers Logs Level Fatal value */
127        public static final String PREFS_SERVER_LOGS_LEVEL_FATAL = "fatal";
128    
129        /** The Preference ID for the Servers Logs Pattern setting */
130        public static final String PREFS_SERVER_LOGS_PATTERN = "prefs.serverLogs.pattern";
131    }