directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r522451 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java
Date Mon, 26 Mar 2007 08:26:56 GMT
Author: pamarcelot
Date: Mon Mar 26 01:26:54 2007
New Revision: 522451

URL: http://svn.apache.org/viewvc?view=rev&rev=522451
Log:
Improved Combo refresh when changing from Source Code Page to Overview Page of the Attribute
Type Editor.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java?view=diff&rev=522451&r1=522450&r2=522451
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/attributeType/AttributeTypeEditorOverviewPage.java
Mon Mar 26 01:26:54 2007
@@ -587,7 +587,6 @@
         supComboViewer = new ComboViewer( supCombo );
         supComboViewer.setContentProvider( new ATESuperiorComboContentProvider() );
         supComboViewer.setLabelProvider( new ATESuperiorComboLabelProvider() );
-        supComboViewer.setInput( new ATESuperiorComboInput( originalAttributeType ) );
 
         // USAGE Combo
         toolkit.createLabel( client_general_information, Messages
@@ -604,7 +603,6 @@
         syntaxComboViewer = new ComboViewer( syntaxCombo );
         syntaxComboViewer.setContentProvider( new ATESyntaxComboContentProvider() );
         syntaxComboViewer.setLabelProvider( new ATESyntaxComboLabelProvider() );
-        syntaxComboViewer.setInput( new ATESyntaxComboInput() );
 
         // SYNTAX LENGTH Field
         toolkit.createLabel( client_general_information, Messages
@@ -670,7 +668,6 @@
         equalityComboViewer = new ComboViewer( equalityCombo );
         equalityComboViewer.setContentProvider( new ATEEqualityComboContentProvider() );
         equalityComboViewer.setLabelProvider( new ATEMatchingRulesComboLabelProvider() );
-        equalityComboViewer.setInput( new ATEMatchingRulesComboInput() );
 
         // ORDERING Combo
         toolkit
@@ -680,7 +677,6 @@
         orderingComboViewer = new ComboViewer( orderingCombo );
         orderingComboViewer.setContentProvider( new ATEOrderingComboContentProvider() );
         orderingComboViewer.setLabelProvider( new ATEMatchingRulesComboLabelProvider() );
-        orderingComboViewer.setInput( new ATEMatchingRulesComboInput() );
 
         // SUBSTRING Combo
         toolkit.createLabel( client_matching_rules, Messages
@@ -690,7 +686,6 @@
         substringComboViewer = new ComboViewer( substringCombo );
         substringComboViewer.setContentProvider( new ATESubstringComboContentProvider() );
         substringComboViewer.setLabelProvider( new ATEMatchingRulesComboLabelProvider() );
-        substringComboViewer.setInput( new ATEMatchingRulesComboInput() );
     }
 
 
@@ -782,6 +777,8 @@
      */
     private void fillSupCombo()
     {
+        supComboViewer.setInput( new ATESuperiorComboInput( originalAttributeType ) );
+        
         if ( modifiedAttributeType.getSuperior() == null )
         {
             supComboViewer.setSelection( new StructuredSelection( new NonExistingAttributeType(
@@ -840,6 +837,8 @@
      */
     private void fillSyntaxCombo()
     {
+        syntaxComboViewer.setInput( new ATESyntaxComboInput() );
+        
         if ( modifiedAttributeType.getSyntax() == null )
         {
             syntaxComboViewer.setSelection( new StructuredSelection( new NonExistingSyntax(
NonExistingSyntax.NONE ) ),
@@ -874,6 +873,8 @@
      */
     private void fillEqualityCombo()
     {
+        equalityComboViewer.setInput( new ATEMatchingRulesComboInput() );
+        
         if ( modifiedAttributeType.getEquality() == null )
         {
             equalityComboViewer.setSelection( new StructuredSelection( new NonExistingMatchingRule(
@@ -908,6 +909,8 @@
      */
     private void fillOrderingCombo()
     {
+        orderingComboViewer.setInput( new ATEMatchingRulesComboInput() );
+        
         if ( modifiedAttributeType.getOrdering() == null )
         {
             orderingComboViewer.setSelection( new StructuredSelection( new NonExistingMatchingRule(
@@ -934,6 +937,7 @@
                 orderingComboViewer.setSelection( new StructuredSelection( nemr ), true );
             }
         }
+
     }
 
 
@@ -942,6 +946,8 @@
      */
     private void fillSubstringCombo()
     {
+        substringComboViewer.setInput( new ATEMatchingRulesComboInput() );
+        
         if ( modifiedAttributeType.getSubstr() == null )
         {
             substringComboViewer.setSelection( new StructuredSelection( new NonExistingMatchingRule(



Mime
View raw message