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, setEnabledaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic 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
ExecutionEventExecutionExceptionprotected PropertySheet findPropertySheet(ExecutionEvent event, PropertyShowInContext context) throws PartInitException, ExecutionException
event - context - a ShowInContext to handleShowInContextPartInitExceptionExecutionException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.