void IPropertyChangeListener::PropertyChange(PropertyChangeEvent::Pointer event) { if (event->GetProperty() == IWorkbenchPartConstants::INTEGER_PROPERTY) { this->PropertyChange(event->GetSource(), event->GetNewValue().Cast<ObjectInt>()->GetValue()); } }
void PresentablePart:: PropertyListenerProxy::PropertyChange(const PropertyChangeEvent::Pointer& e) { if (e->GetProperty() == IWorkbenchPartConstants::INTEGER_PROPERTY) { // these are "part" events PropertyChangeEvent::Pointer event(new PropertyChangeEvent(Object::Pointer(part), e->GetProperty(), e->GetOldValue(), e->GetNewValue())); part->FirePropertyChange(event); } else { part->FirePropertyChange(e); } }