if (propertyName.equals("StepName"))
{
boolean autoGenerateDisplayName = OptionMgr.getInstance().getBooleanOption(DisplayObjectPlugin.AUTODISPLAYNAME_OPTION, false);
if (autoGenerateDisplayName)
{
WorkflowTaskDescriptor workflowTaskDescriptor = (WorkflowTaskDescriptor) editedObject;
if (workflowTaskDescriptor.getStepDisplayName() == null)
{
String name = (String) propertyValue;
// Generate the display name
String displayName = NameUtil.makeDisplayName(name);
// Update the object
workflowTaskDescriptor.setStepDisplayName(displayName);
propertyEditor.getOwner().reloadProperty("StepDisplayName");
}
}
}
}