Package org.eclipse.ui.views.properties
Class NewPropertySheetHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.ui.views.properties.NewPropertySheetHandler
-
public class NewPropertySheetHandler extends AbstractHandler
- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description NewPropertySheetHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ExecutionEvent event)First tries to find a suitable instance to reuse for the given context, then creates a new instance if necessary.protected PropertySheetfindPropertySheet(ExecutionEvent event, PropertyShowInContext context)Returns a PropertySheet instanceprotected PropertyShowInContextgetShowInContext(ExecutionEvent event)-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Field Detail
-
ID
public static final String ID
Command id- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public Object execute(ExecutionEvent event) throws ExecutionException
First tries to find a suitable instance to reuse for the given context, then creates a new instance if necessary.- Parameters:
event-- Returns:
- an instance for the given context
- Throws:
ExecutionException- if an exception occurred during execution.- See Also:
IHandler.execute(org.eclipse.core.commands.ExecutionEvent)
-
getShowInContext
protected PropertyShowInContext getShowInContext(ExecutionEvent event) throws ExecutionException
- Parameters:
event-ExecutionEventfor which thePropertyShowInContextis requested- Returns:
- a
PropertyShowInContextcontaining the theISelectionandIWorkbenchPartfor the givenExecutionEvent - Throws:
ExecutionException
-
findPropertySheet
protected PropertySheet findPropertySheet(ExecutionEvent event, PropertyShowInContext context) throws PartInitException, ExecutionException
Returns a PropertySheet instance- Parameters:
event-context- aShowInContextto handle- Returns:
- a PropertySheet that can handle the given
ShowInContext - Throws:
PartInitExceptionExecutionException
-
-