this.beanEventBroadcaster.addPropertyChangeListener(this);
}
public void propertyChange(PropertyChangeEvent event) {
if (event.getPropertyName().equals(CommonPlugin.COMMON_PLUGIN_ADDED)) {
CommonPlugin cp=(CommonPlugin)event.getNewValue();
this.add(cp.getName(), cp.getGUI());
this.beanEventBroadcaster.addPropertyChangeListener(cp);
}
if (event.getPropertyName().equals(CommonPlugin.COMMON_PLUGIN_REMOVED)){
CommonPlugin cp=(CommonPlugin)event.getNewValue();
this.remove(cp.getGUI());
this.beanEventBroadcaster.removePropertyChangeListener(cp);
}
}