Package org.eclipse.net4j.util.ui.handlers

# Klasse SafeHandler

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.net4j.util.ui.handlers.SafeHandler

Alle implementierten Schnittstellen:
  `IHandler`, `IHandler2`

Bekannte direkte Unterklassen:
  `LongRunningHandler`

public abstract class SafeHandler extends AbstractHandler

Seit:
  3.4
Autor:
  Eike Stepper, Christian W. Damus (CEA LIST)

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`SafeHandler()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`Object`
`execute(ExecutionEvent event)`
`protected void`
`extractEventDetails(ExecutionEvent event)`
Extracts details from the `event` that we may need later, for example on a background thread when the original execution context is no longer valid.
`Command`
`getCommand()`
`ISelection`
`getSelection()`
`protected String`
`getText()`
`protected abstract Object`
`safeExecute(ExecutionEvent event)`
`void`
`setEnabled(Object evaluationContext)`
`protected boolean`
`updateSelection(ISelection selection)`

### Von Klasse geerbte Methoden org.eclipse.core.commands.AbstractHandler

`addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled`

### Von Klasse geerbte Methoden org.eclipse.core.commands.common.EventManager

`addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Von Schnittstelle geerbte Methoden org.eclipse.core.commands.IHandler

`getHandlerLabel`

## Konstruktordetails

### SafeHandler

public SafeHandler()

## Methodendetails

### getCommand

public Command getCommand()

### getSelection

public ISelection getSelection()

### execute

public Object execute(ExecutionEvent event) throws ExecutionException

Löst aus:
  `ExecutionException`

### setEnabled

public void setEnabled(Object evaluationContext)

Angegeben von:
  `setEnabled` in Schnittstelle `IHandler2`
Setzt außer Kraft:
  `setEnabled` in Klasse `AbstractHandler`

### extractEventDetails

protected void extractEventDetails(ExecutionEvent event)
Extracts details from the `event` that we may need later, for example on a background thread when the original execution context is no longer valid.

### safeExecute

protected abstract Object safeExecute(ExecutionEvent event) throws Exception

Löst aus:
  `Exception`

### getText

protected String getText()

### updateSelection

protected boolean updateSelection(ISelection selection)