directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1409858 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
Date Thu, 15 Nov 2012 16:01:35 GMT
Author: pamarcelot
Date: Thu Nov 15 16:01:35 2012
New Revision: 1409858

URL: http://svn.apache.org/viewvc?rev=1409858&view=rev
Log:
Organized import.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java?rev=1409858&r1=1409857&r2=1409858&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
Thu Nov 15 16:01:35 2012
@@ -43,7 +43,6 @@ import org.apache.directory.studio.apach
 import org.apache.directory.studio.apacheds.configuration.v2.ApacheDS2ConfigurationPluginConstants;
 import org.apache.directory.studio.apacheds.configuration.v2.dialogs.AttributeValueDialog;
 import org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog;
-import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.dialogs.IDialogConstants;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.ArrayContentProvider;
@@ -163,7 +162,7 @@ public class PartitionDetailsPage implem
     };
 
     /** The Selection Changed Listener for the Context Entry Table Viewer */
-    private ISelectionChangedListener contextEntryTableViewerListener = new ISelectionChangedListener()
+    private ISelectionChangedListener contextEntryTableViewerSelectionListener = new ISelectionChangedListener()
     {
         public void selectionChanged( SelectionChangedEvent event )
         {
@@ -186,7 +185,7 @@ public class PartitionDetailsPage implem
         public void widgetSelected( SelectionEvent e )
         {
             AttributeValueDialog dialog = new AttributeValueDialog( new AttributeValueObject(
"", "" ) );
-            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
+            if ( AttributeValueDialog.OK == dialog.open() && dialog.isDirty() )
             {
                 AttributeValueObject newAttributeValueObject = dialog.getAttributeValueObject();
                 Attribute attribute = contextEntry.get( newAttributeValueObject.getAttribute()
);
@@ -645,7 +644,7 @@ public class PartitionDetailsPage implem
 
         autoGenerateContextEntryCheckbox.addSelectionListener( autoGenerateContextEntryCheckboxSelectionListener
);
         contextEntryTableViewer.addDoubleClickListener( contextEntryTableViewerDoubleClickListener
);
-        contextEntryTableViewer.addSelectionChangedListener( contextEntryTableViewerListener
);
+        contextEntryTableViewer.addSelectionChangedListener( contextEntryTableViewerSelectionListener
);
         contextEntryAddButton.addSelectionListener( contextEntryAddButtonListener );
         contextEntryEditButton.addSelectionListener( contextEntryEditButtonListener );
         contextEntryDeleteButton.addSelectionListener( contextEntryDeleteButtonListener );
@@ -672,7 +671,7 @@ public class PartitionDetailsPage implem
 
         autoGenerateContextEntryCheckbox.removeSelectionListener( autoGenerateContextEntryCheckboxSelectionListener
);
         contextEntryTableViewer.removeDoubleClickListener( contextEntryTableViewerDoubleClickListener
);
-        contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerListener
);
+        contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerSelectionListener
);
         contextEntryAddButton.removeSelectionListener( contextEntryAddButtonListener );
         contextEntryEditButton.removeSelectionListener( contextEntryEditButtonListener );
         contextEntryDeleteButton.removeSelectionListener( contextEntryDeleteButtonListener
);
@@ -916,7 +915,7 @@ public class PartitionDetailsPage implem
             JdbmIndexBean<String, Entry> index = ( JdbmIndexBean<String, Entry>
) selection.getFirstElement();
 
             IndexDialog dialog = new IndexDialog( index );
-            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
+            if ( IndexDialog.OK == dialog.open() && dialog.isDirty() )
             {
                 indexesTableViewer.refresh();
                 masterDetailsBlock.setEditorDirty();
@@ -935,7 +934,7 @@ public class PartitionDetailsPage implem
         newIndex.setIndexCacheSize( 100 );
 
         IndexDialog dialog = new IndexDialog( newIndex );
-        if ( Dialog.OK == dialog.open() )
+        if ( IndexDialog.OK == dialog.open() )
         {
             indexesList.add( dialog.getIndex() );
             indexesTableViewer.refresh();
@@ -981,7 +980,7 @@ public class PartitionDetailsPage implem
             String oldValue = attributeValueObject.getValue();
 
             AttributeValueDialog dialog = new AttributeValueDialog( attributeValueObject
);
-            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
+            if ( AttributeValueDialog.OK == dialog.open() && dialog.isDirty() )
             {
                 Attribute attribute = contextEntry.get( oldId );
                 if ( attribute != null )



Mime
View raw message