public class NewPropertySheetHandler extends AbstractHandler
Constructor and Description |
---|
NewPropertySheetHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ExecutionEvent event)
First tries to find a suitable instance to reuse for the given context,
then creates a new instance if necessary.
|
protected PropertySheet |
findPropertySheet(ExecutionEvent event,
PropertyShowInContext context)
Returns a PropertySheet instance
|
protected PropertyShowInContext |
getShowInContext(ExecutionEvent event) |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static final String ID
public Object execute(ExecutionEvent event) throws ExecutionException
event
- ExecutionException
- if an exception occurred during execution.IHandler.execute(org.eclipse.core.commands.ExecutionEvent)
protected PropertyShowInContext getShowInContext(ExecutionEvent event) throws ExecutionException
event
- ExecutionEvent
for which the
PropertyShowInContext
is requestedPropertyShowInContext
containing the the
ISelection
and IWorkbenchPart
for the given
ExecutionEvent
ExecutionException
protected PropertySheet findPropertySheet(ExecutionEvent event, PropertyShowInContext context) throws PartInitException, ExecutionException
event
- context
- a ShowInContext
to handleShowInContext
PartInitException
ExecutionException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.