Package org.apache.hop.ui.hopgui.context
Class GuiContextUtil
- java.lang.Object
-
- org.apache.hop.ui.hopgui.context.GuiContextUtil
-
public class GuiContextUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description GuiContextUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GuiAction>filterActions(List<GuiAction> guiActions, GuiActionType actionType)Filter out the actions with the given type, return a new list.List<GuiAction>filterHandlerActions(List<IGuiContextHandler> handlers, GuiActionType actionType, String contextId)Ask for all the actions from the list of context handlers.List<GuiAction>getContextActions(IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)static GuiContextUtilgetInstance()voidhandleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)voidhandleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId, boolean sortByName)booleanhandleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IGuiContextHandler contextHandler)voidhandleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)booleanhandleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, IGuiContextHandler contextHandler)
-
-
-
Method Detail
-
getInstance
public static final GuiContextUtil getInstance()
-
getContextActions
public final List<GuiAction> getContextActions(IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)
-
filterActions
public final List<GuiAction> filterActions(List<GuiAction> guiActions, GuiActionType actionType)
Filter out the actions with the given type, return a new list.- Parameters:
guiActions- The list of actions to filteractionType- The type to filter out- Returns:
- A new list with only the actions of the specified type
-
filterHandlerActions
public final List<GuiAction> filterHandlerActions(List<IGuiContextHandler> handlers, GuiActionType actionType, String contextId)
Ask for all the actions from the list of context handlers. Then filter out the actions of a particular type.- Parameters:
handlers-actionType-- Returns:
-
handleActionSelection
public final void handleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)
-
handleActionSelection
public final void handleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId)
-
handleActionSelection
public final void handleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IActionContextHandlersProvider provider, GuiActionType actionType, String contextId, boolean sortByName)
-
handleActionSelection
public boolean handleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, IGuiContextHandler contextHandler)
-
handleActionSelection
public boolean handleActionSelection(org.eclipse.swt.widgets.Shell parent, String message, Point clickLocation, IGuiContextHandler contextHandler)- Parameters:
parent-message-clickLocation-contextHandler-- Returns:
- true if the action dialog lost focus
-
-