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
- Since:
- 3.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(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, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
ID
Command id- See Also:
-
-
Constructor Details
-
NewPropertySheetHandler
public NewPropertySheetHandler()
-
-
Method Details
-
execute
First tries to find a suitable instance to reuse for the given context, then creates a new instance if necessary.- Parameters:
event- An event containing all the information about the current state of the application; must not benull.- Returns:
- an instance for the given context
- Throws:
ExecutionException- if an exception occurred during execution.- See Also:
-
getShowInContext
- Parameters:
event-ExecutionEventfor which thePropertyShowInContextis requested- Returns:
- a
PropertyShowInContextcontaining the theISelectionandIWorkbenchPartfor the givenExecutionEvent - Throws:
ExecutionException- If the active part variable is not found.
-
findPropertySheet
protected PropertySheet findPropertySheet(ExecutionEvent event, PropertyShowInContext context) throws PartInitException, ExecutionException Returns a PropertySheet instance- Parameters:
event-ExecutionEventfor which thePropertySheetis requestedcontext- aShowInContextto handle- Returns:
- a PropertySheet that can handle the given
ShowInContext - Throws:
PartInitException- if the view could not be initializedExecutionException- If the active part variable is not found.
-