public boolean propertySet(String propertyName, Object propertyValue) { boolean result = super.propertySet(propertyName, propertyValue); // After the property is set, if project changed, update the nature and the annotations // enablement if (propertyName.equals(COMPONENT_NAME)) { getDataModel().notifyPropertyChange(USE_ANNOTATIONS, IDataModel.ENABLE_CHG); } else if (propertyName.equals(CLASS_NAME)) { if (!isPropertySet(EJB_NAME)) getDataModel().notifyPropertyChange(EJB_NAME, IDataModel.DEFAULT_CHG); } else if (propertyName.equals(EJB_NAME)) { if (!isPropertySet(JNDI_NAME)) getDataModel().notifyPropertyChange(JNDI_NAME, IDataModel.DEFAULT_CHG); if (!isPropertySet(DISPLAY_NAME)) getDataModel().notifyPropertyChange(DISPLAY_NAME, IDataModel.DEFAULT_CHG); if (!isPropertySet(DESCRIPTION)) getDataModel().notifyPropertyChange(DESCRIPTION, IDataModel.DEFAULT_CHG); } return result; }