如果您有这个问题 - 请阅读这篇文章
感谢@mmoulis
ps:我是怎么做到的
添加到org.eclipse.swt.widgets.Composite
类值:
private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
并添加了两种方法
public void addPropertyChangeListener(PropertyChangeListener listener) {
propertyChangeSupport.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
propertyChangeSupport.removePropertyChangeListener(listener);
}
并在 pages 类中添加了监听器org.eclipse.swt.widgets.Composite
composite.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
}
});
这一切(: