}
protected class CurrentCustomizationVersionChangeLisenter implements PropertyChangeListener {
public void propertyChange(PropertyChangeEvent e) {
if (de.FeatureModellingTool.Customize.ConstantDefinition.PROPERTYCHANGE_CURRENTCUSTOMIZATIONVERSION.equals(e.getPropertyName())) {
CustomizationVersion cv = (CustomizationVersion)e.getNewValue();
getContext().putValue(ConstantDefinition.CURRENT_CUSTOMIZATION_VERSION , cv);
Set sFigureId = idToFigureMap.keySet();
for (Iterator itSetId = sFigureId.iterator() ; itSetId.hasNext() ; ) {
String id = (String)itSetId.next();
Set set = (Set)idToFigureMap.get(id);
for (Iterator itFigure = set.iterator() ; itFigure.hasNext() ; ) {
Figure figure = (Figure)itFigure.next();
if (figure instanceof FeatureFigure) {
figure.setAttribute(ConstantDefinition.CURRENT_CUSTOMIZATION_CUSTOMIZABLE , new Boolean(cv == null ? true : cv.isFeatureCustomizable(id)));
figure.setAttribute(ConstantDefinition.CURRENT_CUSTOMIZATION , cv == null ? null : cv.getCustomizationById(id));
}
}
}
updateEditActionsUI();