directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r512300 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java
Date Tue, 27 Feb 2007 16:07:47 GMT
Author: pamarcelot
Date: Tue Feb 27 08:07:46 2007
New Revision: 512300

URL: http://svn.apache.org/viewvc?view=rev&rev=512300
Log:
Refactored constants into a unique interface : PluginConstants.

Added:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java

Added: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java?view=auto&rev=512300
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java
(added)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/PluginConstants.java
Tue Feb 27 08:07:46 2007
@@ -0,0 +1,124 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.ldapstudio.schemas;
+
+
+import org.apache.directory.ldapstudio.schemas.view.preferences.HierarchyViewPreferencePage;
+import org.apache.directory.ldapstudio.schemas.view.preferences.SchemasViewPreferencePage;
+
+
+/**
+ * This interface is used to store all constants used in the Schemas Editor Plugin.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface PluginConstants
+{
+    // Preferences - Hierarchy View
+    /** The preference ID for Hierarchy View Label */
+    public static final String PREFS_HIERARCHY_VIEW_LABEL = HierarchyViewPreferencePage.ID
+ ".label.labelValue";
+
+    /** The preference value for Hierarchy View First Name label */
+    public static final int PREFS_HIERARCHY_VIEW_LABEL_FIRST_NAME = 0;
+
+    /** The preference value for Hierarchy View All Aliases label */
+    public static final int PREFS_HIERARCHY_VIEW_LABEL_ALL_ALIASES = 1;
+
+    /** The preference value for Hierarchy View OID label */
+    public static final int PREFS_HIERARCHY_VIEW_LABEL_OID = 2;
+
+    /** The preference ID for Hierarchy View Abbreviate */
+    public static final String PREFS_HIERARCHY_VIEW_ABBREVIATE = HierarchyViewPreferencePage.ID
+ ".label.abbreviate";
+
+    /** The preference ID for Hierarchy View Abbreviate Max Length*/
+    public static final String PREFS_HIERARCHY_VIEW_ABBREVIATE_MAX_LENGTH = HierarchyViewPreferencePage.ID
+        + ".label.abbreviate.maxLength";
+
+    /** The preference ID for Hierarchy View Display Secondary Label */
+    public static final String PREFS_HIERARCHY_VIEW_SECONDARY_LABEL_DISPLAY = HierarchyViewPreferencePage.ID
+        + ".secondaryLabel.display";
+
+    /** The preference ID for Hierarchy View Secondary Label */
+    public static final String PREFS_HIERARCHY_VIEW_SECONDARY_LABEL = HierarchyViewPreferencePage.ID
+        + ".secondaryLabel.labelValue";
+
+    /** The preference ID for Hierarchy View Abbreviate Secondary Label */
+    public static final String PREFS_HIERARCHY_VIEW_SECONDARY_LABEL_ABBREVIATE = HierarchyViewPreferencePage.ID
+        + ".secondaryLabel.abbreviate";
+
+    /** The preference ID for Hierarchy View Abbreviate Secondary Label Max Length*/
+    public static final String PREFS_HIERARCHY_VIEW_SECONDARY_LABEL_ABBREVIATE_MAX_LENGTH
= HierarchyViewPreferencePage.ID
+        + ".secondaryLabel.abbreviate.maxLength";
+
+    // Preferences - Schemas View
+    /** The preference ID for Schemas View Label */
+    public static final String PREFS_SCHEMAS_VIEW_LABEL = SchemasViewPreferencePage.ID +
".label.labelValue";
+
+    /** The preference value for Schemas View First Name label */
+    public static final int PREFS_SCHEMAS_VIEW_LABEL_FIRST_NAME = 0;
+
+    /** The preference value for Schemas View All Aliases label */
+    public static final int PREFS_SCHEMAS_VIEW_LABEL_ALL_ALIASES = 1;
+
+    /** The preference value for Schemas View OID label */
+    public static final int PREFS_SCHEMAS_VIEW_LABEL_OID = 2;
+
+    /** The preference ID for Schemas View Abbreviate */
+    public static final String PREFS_SCHEMAS_VIEW_ABBREVIATE = SchemasViewPreferencePage.ID
+ ".label.abbreviate";
+
+    /** The preference ID for Schemas View Abbreviate Max Length*/
+    public static final String PREFS_SCHEMAS_VIEW_ABBREVIATE_MAX_LENGTH = SchemasViewPreferencePage.ID
+        + ".label.abbreviate.maxLength";
+
+    // Images - Actions
+    public static final String IMG_ABOUT = "ressources/icons/flag_blue.png"; //$NON-NLS-1$
+    public static final String IMG_CREATE_A_NEW_SCHEMA = "ressources/icons/schema_new.png";
//$NON-NLS-1$
+    public static final String IMG_REMOVE_SCHEMA = "ressources/icons/schema_remove.png";
//$NON-NLS-1$
+    public static final String IMG_CREATE_A_NEW_OBJECTCLASS = "ressources/icons/object_class_new.gif";
//$NON-NLS-1$
+    public static final String IMG_CREATE_A_NEW_ATTRIBUTETYPE = "ressources/icons/attribute_type_new.gif";
//$NON-NLS-1$
+    public static final String IMG_DELETE = "ressources/icons/delete.gif"; //$NON-NLS-1$
+    public static final String IMG_EXIT = "ressources/icons/stop.png"; //$NON-NLS-1$
+    public static final String IMG_OPEN = "ressources/icons/open.png"; //$NON-NLS-1$
+    public static final String IMG_SAVE = "ressources/icons/save.gif"; //$NON-NLS-1$
+    public static final String IMG_SAVE_AS = "ressources/icons/save_as.png"; //$NON-NLS-1$
+    public static final String IMG_SAVE_ALL = "ressources/icons/save_all.png"; //$NON-NLS-1$
+    public static final String IMG_SHOW_PREFERENCES = "ressources/icons/preferences.png";
//$NON-NLS-1$
+    public static final String IMG_LINK_WITH_EDITOR = "ressources/icons/link_with_editor.gif";
//$NON-NLS-1$
+    public static final String IMG_COLLAPSE_ALL = "ressources/icons/collapse_all.gif"; //$NON-NLS-1$
+    public static final String IMG_HIDE_OBJECT_CLASSES = "ressources/icons/hide_object_classes.png";
//$NON-NLS-1$
+    public static final String IMG_HIDE_ATTRIBUTE_TYPES = "ressources/icons/hide_attribute_types.png";
//$NON-NLS-1$
+    public static final String IMG_SORT = "ressources/icons/sort.gif"; //$NON-NLS-1$
+
+    // Images - Views
+    public static final String IMG_FOLDER_ATTRIBUTE_TYPE = "ressources/icons/folder_at.gif";
//$NON-NLS-1$
+    public static final String IMG_FOLDER_OBJECT_CLASS = "ressources/icons/folder_oc.gif";
//$NON-NLS-1$
+    public static final String IMG_ATTRIBUTE_TYPE = "ressources/icons/attribute_type.gif";
//$NON-NLS-1$
+    public static final String IMG_OBJECT_CLASS = "ressources/icons/object_class.gif"; //$NON-NLS-1$
+    public static final String IMG_OBJECT_CLASS_WARNING = "ressources/icons/object_class_warning.gif";
//$NON-NLS-1$
+    public static final String IMG_SCHEMA = "ressources/icons/schema.gif"; //$NON-NLS-1$
+    public static final String IMG_SCHEMA_CORE = "ressources/icons/schema_core.gif"; //$NON-NLS-1$
+
+    // Images - Wizards
+    public static final String IMG_ATTRIBUTE_TYPE_NEW_WIZARD = "ressources/icons/attribute_type_new_wizard.png";
//$NON-NLS-1$
+    public static final String IMG_OBJECT_CLASS_NEW_WIZARD = "ressources/icons/object_class_new_wizard.png";
//$NON-NLS-1$
+    public static final String IMG_SCHEMA_NEW_WIZARD = "ressources/icons/schema_new_wizard.png";
//$NON-NLS-1$
+}



Mime
View raw message