* @return true if specified enumeration exists; false if not
*/
private boolean retrieveEnumerationValues(String enumName) {
ModuleTypeInfo workingModuleTypeInfo = perspective.getWorkingModuleTypeInfo();
TypeConstructor typeCons = workingModuleTypeInfo.getTypeConstructor(enumName);
if (typeCons != null) {
((DefaultListModel)enumListControl.getModel()).clear();
if(typeCons.getScope() == Scope.PUBLIC) {
publicButton.doClick();
} else {
privateButton.doClick();
}
int constructors = typeCons.getNDataConstructors();
for (int i = 0; i < constructors; i++) {
QualifiedName constructorName = typeCons.getNthDataConstructor(i).getName();
((DefaultListModel)enumListControl.getModel()).addElement(constructorName.getUnqualifiedName());
}
// We need to determine whether the existing enumeration has only a derived Eq instance,
// or the full complement of derived instances (i.e. Eq, Ord, Bounded, Enum), so that