use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_NAME in project yamcs-studio by yamcs.
the class WidgetTreeEditpart method activate.
@Override
public void activate() {
super.activate();
PropertyChangeListener visualListener = evt -> refreshVisuals();
var nameProperty = getWidgetModel().getProperty(PROP_NAME);
if (nameProperty != null) {
nameProperty.addPropertyChangeListener(visualListener);
}
var pvNameProperty = getWidgetModel().getProperty(PROP_PVNAME);
if (pvNameProperty != null) {
pvNameProperty.addPropertyChangeListener(visualListener);
}
}
Aggregations