/** * When a listener is attached to this handler, then this registers a * listener with the underlying action. * * @since 3.1 */ private final void attachListener() { if (propertyChangeListener == null) { propertyChangeListener = new IPropertyChangeListener() { public final void propertyChange( final PropertyChangeEvent propertyChangeEvent) { final String property = propertyChangeEvent.getProperty(); fireHandlerChanged(new HandlerEvent(ActionHandler.this, IAction.ENABLED.equals(property), IAction.HANDLED .equals(property))); } }; } this.action.addPropertyChangeListener(propertyChangeListener); }
@Override public void handleEvent(ToolListenerEvent event) { if (this.tool == event.getTool() && event.getType() == ToolListenerEvent.TYPE.DEACTIVATED) { fireHandlerChanged(new HandlerEvent(this, false, true)); } }
private void fireEnabledChanged() { fireHandlerChanged(new HandlerEvent(this, true, false)); }
private void fireEnablementChanged() { fireHandlerChanged(new HandlerEvent(DumpExecutionDataHandler.this, true, false)); }
public void selectionChanged(SelectionChangedEvent event) { fireHandlerChanged(new HandlerEvent(this, true, false)); }