/**
* @see org.openquark.gems.client.navigator.NavEditorSection#doRevert()
*/
@Override
void doRevert() {
CALFeatureMetadata metadata = getMetadata();
setEditorValue(DISPLAY_NAME_KEY, metadata.getDisplayName());
setEditorValue(SHORT_DESCRIPTION_KEY, metadata.getShortDescription());
setEditorValue(LONG_DESCRIPTION_KEY, metadata.getLongDescription());
setEditorValue(AUTHOR_KEY, metadata.getAuthor());
setEditorValue(VERSION_KEY, metadata.getVersion());
setEditorValue(PREFERRED_KEY, Boolean.valueOf(metadata.isPreferred()));
setEditorValue(EXPERT_KEY, Boolean.valueOf(metadata.isExpert()));
List<CALFeatureName> relatedFeatures = new ArrayList<CALFeatureName>();
int count = metadata.getNRelatedFeatures();
for (int i = 0; i < count; i++) {
relatedFeatures.add(metadata.getNthRelatedFeature(i));
}
setEditorValue(RELATED_FEATURES_KEY, relatedFeatures);
}