*
* @param values the values
*/
private void renameValues( final IValue[] values )
{
AttributeWizard wizard = new AttributeWizard( "Edit Attribute Description", true, false, values[0]
.getAttribute().getDescription(), values[0].getAttribute().getEntry() );
WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
dialog.setBlockOnOpen( true );
dialog.create();
if ( dialog.open() == Dialog.OK )
{
String newAttributeName = wizard.getAttributeDescription();
if ( newAttributeName != null && !"".equals( newAttributeName )
&& !newAttributeName.equals( values[0].getAttribute().getDescription() ) )
{
new RenameValuesJob( values[0].getAttribute().getEntry(), values, newAttributeName ).execute();
}