directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r518677 [2/2] - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin: ./ ressources/icons/ src/main/java/org/apache/directory/ldapstudio/schemas/ src/main/java/org/apache/directory/ldapstudio/schemas/controller/ src/main/java/org/apache...
Date Thu, 15 Mar 2007 16:26:38 GMT
Copied: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasElementsSortDialog.java
(from r515989, directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewSortDialog.java)
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasElementsSortDialog.java?view=diff&rev=518677&p1=directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewSortDialog.java&r1=515989&p2=directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasElementsSortDialog.java&r2=518677
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewSortDialog.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasElementsSortDialog.java
Thu Mar 15 09:26:30 2007
@@ -39,15 +39,15 @@
 
 
 /**
- * This class implements the Hierarchy View Sorter Dialog.
+ * This class implements the Schema Elements View Sorter Dialog.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class HierarchyViewSortDialog extends Dialog
+public class SchemasElementsSortDialog extends Dialog
 {
     /** The title of the dialog */
-    private static final String DIALOG_TITLE = "Hierarchy View Sorting";
+    private static final String DIALOG_TITLE = "Schema Elements View Sorting";
 
     /** The Sorting First Name category */
     private static final String SORTING_FISTNAME = "First Name";
@@ -65,12 +65,12 @@
 
 
     /**
-     * Creates a new instance of HierarchyViewSorterDialog.
+     * Creates a new instance of SchemasElementsSortDialog.
      *
      * @param parentShell
      *      the parent shell
      */
-    public HierarchyViewSortDialog( Shell parentShell )
+    public SchemasElementsSortDialog( Shell parentShell )
     {
         super( parentShell );
     }
@@ -163,36 +163,36 @@
     {
         IPreferenceStore store = Activator.getDefault().getPreferenceStore();
 
-        int grouping = store.getInt( PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING );
-        if ( grouping == PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_ATFIRST )
+        int grouping = store.getInt( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING
);
+        if ( grouping == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_ATFIRST )
         {
             atFirstButton.setSelection( true );
         }
-        else if ( grouping == PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_OCFIRST )
+        else if ( grouping == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_OCFIRST
)
         {
             ocFirstButton.setSelection( true );
         }
-        else if ( grouping == PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_MIXED )
+        else if ( grouping == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_MIXED )
         {
             mixedButton.setSelection( true );
         }
 
-        int sortingBy = store.getInt( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY );
-        if ( sortingBy == PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY_FIRSTNAME )
+        int sortingBy = store.getInt( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY
);
+        if ( sortingBy == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY_FIRSTNAME
)
         {
             sortingCombo.select( 0 );
         }
-        else if ( sortingBy == PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY_OID )
+        else if ( sortingBy == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY_OID
)
         {
             sortingCombo.select( 1 );
         }
 
-        int sortingOrder = store.getInt( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER
);
-        if ( sortingOrder == PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER_ASCENDING
)
+        int sortingOrder = store.getInt( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER
);
+        if ( sortingOrder == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER_ASCENDING
)
         {
             ascendingButton.setSelection( true );
         }
-        else if ( sortingOrder == PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER_DESCENDING
)
+        else if ( sortingOrder == PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER_DESCENDING
)
         {
             descendingButton.setSelection( true );
         }
@@ -210,35 +210,35 @@
             IPreferenceStore store = Activator.getDefault().getPreferenceStore();
             if ( ( atFirstButton.getSelection() ) & ( !ocFirstButton.getSelection() )
& ( !mixedButton.getSelection() ) )
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING, PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_ATFIRST
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING, PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_ATFIRST
);
             }
             else if ( ( !atFirstButton.getSelection() ) & ( ocFirstButton.getSelection()
)
                 & ( !mixedButton.getSelection() ) )
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING, PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_OCFIRST
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING, PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_OCFIRST
);
             }
             else if ( ( !atFirstButton.getSelection() ) & ( !ocFirstButton.getSelection()
)
                 & ( mixedButton.getSelection() ) )
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING, PluginConstants.PREFS_HIERARCHY_VIEW_GROUPING_MIXED
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING, PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_GROUPING_MIXED
);
             }
 
             if ( sortingCombo.getItem( sortingCombo.getSelectionIndex() ).equals( SORTING_FISTNAME
) )
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY, PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY_FIRSTNAME
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY, PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY_FIRSTNAME
);
             }
             else if ( sortingCombo.getItem( sortingCombo.getSelectionIndex() ).equals( SORTING_OID
) )
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY, PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_BY_OID
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY, PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_BY_OID
);
             }
 
             if ( ascendingButton.getSelection() && !descendingButton.getSelection()
)
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER, PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER_ASCENDING
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER,
PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER_ASCENDING );
             }
             else if ( !ascendingButton.getSelection() && descendingButton.getSelection()
)
             {
-                store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER, PluginConstants.PREFS_HIERARCHY_VIEW_SORTING_ORDER_DESCENDING
);
+                store.setValue( PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER,
PluginConstants.PREFS_SCHEMA_ELEMENTS_VIEW_SORTING_ORDER_DESCENDING );
             }
         }
 

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasViewSortDialog.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasViewSortDialog.java?view=diff&rev=518677&r1=518676&r2=518677
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasViewSortDialog.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasViewSortDialog.java
Thu Mar 15 09:26:30 2007
@@ -39,7 +39,7 @@
 
 
 /**
- * This class implements the Hierarchy View Sorter Dialog.
+ * This class implements the Schemas View Sorter Dialog.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
@@ -64,7 +64,7 @@
 
 
     /**
-     * Creates a new instance of HierarchyViewSorterDialog.
+     * Creates a new instance of SchemasViewSorterDialog.
      *
      * @param parentShell
      *      the parent shell

Copied: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/SchemaElementsViewRoot.java
(from r518658, directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/HierarchyViewRoot.java)
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/SchemaElementsViewRoot.java?view=diff&rev=518677&p1=directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/HierarchyViewRoot.java&r1=518658&p2=directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/SchemaElementsViewRoot.java&r2=518677
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/HierarchyViewRoot.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/wrappers/SchemaElementsViewRoot.java
Thu Mar 15 09:26:30 2007
@@ -26,12 +26,12 @@
 
 
 /**
- * This class is used to represent the root entry of the TreeViewer used in the Hierarchy
View.
+ * This class is used to represent the root entry of the TreeViewer used in the Schema Elements
View.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class HierarchyViewRoot extends TreeNode
+public class SchemaElementsViewRoot extends TreeNode
 {
     /** The AT children */
     private List<AttributeTypeWrapper> aTChildren;
@@ -44,7 +44,7 @@
      * Creates a new instance of SchemasViewRoot.
      *
      */
-    public HierarchyViewRoot()
+    public SchemaElementsViewRoot()
     {
         super( null );
     }
@@ -55,7 +55,7 @@
      */
     public String toString()
     {
-        return "HierarchyViewRoot";
+        return "SchemaElementsViewRoot";
     }
 
 



Mime
View raw message