From 6ba68335869125edfab5ebc453994d77ee93516c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 17 Nov 2008 02:02:49 +0000
Subject: [PATCH] Fix for issue 3588 (Control Panel : not all Base DN available for VLV index creation) Set the name of the backend that is being displayed in the 'Manage Index' window when the user clicks on 'New Index...' or 'New VLV Index...' buttons.
---
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractVLVIndexPanel.java | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractVLVIndexPanel.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractVLVIndexPanel.java
index 322f6bc..fa9588a 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractVLVIndexPanel.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractVLVIndexPanel.java
@@ -68,7 +68,6 @@
import org.opends.guitools.controlpanel.datamodel.ServerDescriptor;
import org.opends.guitools.controlpanel.datamodel.VLVIndexDescriptor;
import org.opends.guitools.controlpanel.datamodel.VLVSortOrder;
-import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
import org.opends.guitools.controlpanel.ui.components.TitlePanel;
import org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer;
import org.opends.guitools.controlpanel.ui.renderer.IndexComboBoxCellRenderer;
@@ -321,6 +320,15 @@
}
/**
+ * Sets the name of the backend where the index is defined or will be defined.
+ * @param backendID the ID of the backend.
+ */
+ public void setBackendName(String backendID)
+ {
+ backendName.setText(backendID);
+ }
+
+ /**
* Returns the LDIF representing the new index.
* @param indexName the name of the index.
* @return the LDIF representing the new index.
@@ -419,15 +427,13 @@
/**
- * Updates the layout with the new changed configuration event.
- * @param ev the configuration change event.
+ * Updates the layout with the provided server descriptor.
+ * @param desc the server descriptor.
* @return <CODE>true</CODE> if an error has been displayed and
* <CODE>false</CODE> otherwise.
*/
- protected boolean updateLayout(ConfigurationChangeEvent ev)
+ protected boolean updateLayout(final ServerDescriptor desc)
{
- final ServerDescriptor desc = ev.getNewDescriptor();
-
Schema schema = desc.getSchema();
BackendDescriptor backend = getBackend();
final boolean[] repack = {false};
--
Gitblit v1.10.0