Class HopSearchPerspective
- java.lang.Object
-
- org.apache.hop.ui.hopgui.perspective.search.HopSearchPerspective
-
- All Implemented Interfaces:
IActionContextHandlersProvider,IHopPerspective
@HopPerspectivePlugin(id="400-HopSearchPerspective", name="i18n::HopSearchPerspective.Name", description="i18n::HopSearchPerspective.Description", image="ui/images/search.svg") @GuiPlugin(description="i18n::HopSearchPerspective.GuiPlugin.Description") public class HopSearchPerspective extends Object implements IHopPerspective
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIT_TYPE_SEARCH_LOCATIONstatic StringAUDIT_TYPE_SEARCH_STRINGstatic StringID_PERSPECTIVE_TOOLBAR_ITEM
-
Constructor Summary
Constructors Constructor Description HopSearchPerspective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Switch to this perspective (shown).IHopFileTypeHandlergetActiveFileTypeHandler()Get the active file type handler capable of saving, executing, printing, ...List<IGuiContextHandler>getContextHandlers()org.eclipse.swt.widgets.ControlgetControl()HopGuigetHopGui()Gets hopGuiStringgetId()List<TabItemHandler>getItems()Get the list of tabs handled by and currently open in the perspectiveList<ISearchable>getSearchables()List<IHopFileType>getSupportedHopFileTypes()Get a list of supported file types for this perspectivebooleanhasNavigationNextFile()booleanhasNavigationPreviousFile()voidinitialize(HopGui hopGui, org.eclipse.swt.widgets.Composite parent)Initialize this perspectivebooleanisActive()See if this perspective is active (shown)voidnavigateToNextFile()Navigate the file usage history to the next filevoidnavigateToPreviousFile()Navigate the file usage history to the previous filevoidperspectiveActivated()Notify this perspective that it has been activated.booleanremove(IHopFileTypeHandler typeHandler)Remove this file type handler from the perspectivevoidsetActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler)Set the focus on the given file type handler.voidsetHopGui(HopGui hopGui)
-
-
-
Field Detail
-
ID_PERSPECTIVE_TOOLBAR_ITEM
public static final String ID_PERSPECTIVE_TOOLBAR_ITEM
- See Also:
- Constant Field Values
-
AUDIT_TYPE_SEARCH_LOCATION
public static final String AUDIT_TYPE_SEARCH_LOCATION
- See Also:
- Constant Field Values
-
AUDIT_TYPE_SEARCH_STRING
public static final String AUDIT_TYPE_SEARCH_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceIHopPerspective
-
activate
public void activate()
Description copied from interface:IHopPerspectiveSwitch to this perspective (shown).- Specified by:
activatein interfaceIHopPerspective
-
perspectiveActivated
public void perspectiveActivated()
Description copied from interface:IHopPerspectiveNotify this perspective that it has been activated.- Specified by:
perspectiveActivatedin interfaceIHopPerspective
-
getActiveFileTypeHandler
public IHopFileTypeHandler getActiveFileTypeHandler()
Description copied from interface:IHopPerspectiveGet the active file type handler capable of saving, executing, printing, ... a file- Specified by:
getActiveFileTypeHandlerin interfaceIHopPerspective- Returns:
- The active file type handler
-
setActiveFileTypeHandler
public void setActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler)
Description copied from interface:IHopPerspectiveSet the focus on the given file type handler.- Specified by:
setActiveFileTypeHandlerin interfaceIHopPerspective
-
getSupportedHopFileTypes
public List<IHopFileType> getSupportedHopFileTypes()
Description copied from interface:IHopPerspectiveGet a list of supported file types for this perspective- Specified by:
getSupportedHopFileTypesin interfaceIHopPerspective- Returns:
- The list of supported file types
-
isActive
public boolean isActive()
Description copied from interface:IHopPerspectiveSee if this perspective is active (shown)- Specified by:
isActivein interfaceIHopPerspective- Returns:
- True if the perspective is currently shown
-
initialize
public void initialize(HopGui hopGui, org.eclipse.swt.widgets.Composite parent)
Description copied from interface:IHopPerspectiveInitialize this perspective- Specified by:
initializein interfaceIHopPerspective- Parameters:
hopGui- The parent Hop GUI
-
remove
public boolean remove(IHopFileTypeHandler typeHandler)
Description copied from interface:IHopPerspectiveRemove this file type handler from the perspective- Specified by:
removein interfaceIHopPerspective- Parameters:
typeHandler- The file type handler to remove- Returns:
-
getItems
public List<TabItemHandler> getItems()
Description copied from interface:IHopPerspectiveGet the list of tabs handled by and currently open in the perspective- Specified by:
getItemsin interfaceIHopPerspective- Returns:
- The list of tab items
-
navigateToPreviousFile
public void navigateToPreviousFile()
Description copied from interface:IHopPerspectiveNavigate the file usage history to the previous file- Specified by:
navigateToPreviousFilein interfaceIHopPerspective
-
navigateToNextFile
public void navigateToNextFile()
Description copied from interface:IHopPerspectiveNavigate the file usage history to the next file- Specified by:
navigateToNextFilein interfaceIHopPerspective
-
hasNavigationPreviousFile
public boolean hasNavigationPreviousFile()
- Specified by:
hasNavigationPreviousFilein interfaceIHopPerspective
-
hasNavigationNextFile
public boolean hasNavigationNextFile()
- Specified by:
hasNavigationNextFilein interfaceIHopPerspective
-
getHopGui
public HopGui getHopGui()
Gets hopGui- Returns:
- value of hopGui
-
setHopGui
public void setHopGui(HopGui hopGui)
- Parameters:
hopGui- The hopGui to set
-
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControlin interfaceIHopPerspective- Returns:
- The control of this perspective
-
getContextHandlers
public List<IGuiContextHandler> getContextHandlers()
- Specified by:
getContextHandlersin interfaceIActionContextHandlersProvider
-
getSearchables
public List<ISearchable> getSearchables()
- Specified by:
getSearchablesin interfaceIHopPerspective- Returns:
- A list of searchable items
-
-