Java 类org.eclipse.core.commands.HandlerEvent 实例源码

项目:gef-gwt    文件:ActionHandler.java   
/**
 * 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);
}
项目:OpenSPIFe    文件:ZoomSweepToolHandler.java   
@Override
public void handleEvent(ToolListenerEvent event) {
    if (this.tool == event.getTool()
            && event.getType() == ToolListenerEvent.TYPE.DEACTIVATED) {
        fireHandlerChanged(new HandlerEvent(this, false, true));
    }
}
项目:eclemma    文件:AbstractSessionManagerHandler.java   
private void fireEnabledChanged() {
  fireHandlerChanged(new HandlerEvent(this, true, false));
}
项目:eclemma    文件:DumpExecutionDataHandler.java   
private void fireEnablementChanged() {
  fireHandlerChanged(new HandlerEvent(DumpExecutionDataHandler.this, true,
      false));
}
项目:eclemma    文件:CopyHandler.java   
public void selectionChanged(SelectionChangedEvent event) {
  fireHandlerChanged(new HandlerEvent(this, true, false));
}