public abstract class AbstractBaseHandler<T> extends LongRunningHandler
Constructor and Description |
---|
AbstractBaseHandler(Class<T> type,
Boolean multi) |
Modifier and Type | Method and Description |
---|---|
protected List<T> |
collectElements(ISelection selection) |
protected boolean |
updateSelection(ISelection selection) |
cancel, checkCancelation, doExecute, doExecute, getBundleID, getTotalWork, preRun, preRun, safeExecute, setTotalWork
execute, extractEventDetails, getCommand, getSelection, getText, setEnabled
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
protected boolean updateSelection(ISelection selection)
updateSelection
in class SafeHandler
protected List<T> collectElements(ISelection selection)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html