ProgressDialog dlg = new ProgressDialog(
Utilities.createFrame(),
Utilities.getParentDialog(this),
INFO_CTRL_PANEL_NEW_ATTRIBUTE_PANEL_TITLE.get(), getInfo());
NewSchemaElementsTask newTask = null;
if (errors.size() == 0)
{
LinkedHashSet<AttributeType> attributes =
new LinkedHashSet<AttributeType>();
attributes.add(getAttribute());
LinkedHashSet<ObjectClass> ocs = new LinkedHashSet<ObjectClass>(0);
newTask = new NewSchemaElementsTask(getInfo(), dlg, ocs, attributes);
for (Task task : getInfo().getTasks())
{
task.canLaunch(newTask, errors);
}
for (ConfigurationElementCreatedListener listener :
getConfigurationElementCreatedListeners())
{
newTask.addConfigurationElementCreatedListener(listener);
}
}
if (errors.size() == 0)
{
String attrName = getAttributeName();