Interface IHopPerspective
-
- All Superinterfaces:
IActionContextHandlersProvider
- All Known Implementing Classes:
ConfigurationPerspective,EmptyHopPerspective,ExecutionPerspective,ExplorerPerspective,HopDataOrchestrationPerspective,HopPluginExplorePerspective,HopSearchPerspective,MetadataPerspective
public interface IHopPerspective extends IActionContextHandlersProvider
This interface describes the methods of a Hop GUI perspective.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Switch to this perspective (shown).IHopFileTypeHandlergetActiveFileTypeHandler()Get the active file type handler capable of saving, executing, printing, ...org.eclipse.swt.widgets.ControlgetControl()StringgetId()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.-
Methods inherited from interface org.apache.hop.ui.hopgui.context.IActionContextHandlersProvider
getContextHandlers
-
-
-
-
Method Detail
-
getId
String getId()
-
getActiveFileTypeHandler
IHopFileTypeHandler getActiveFileTypeHandler()
Get the active file type handler capable of saving, executing, printing, ... a file- Returns:
- The active file type handler
-
setActiveFileTypeHandler
void setActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler)
Set the focus on the given file type handler.- Parameters:
activeFileTypeHandler-
-
getSupportedHopFileTypes
List<IHopFileType> getSupportedHopFileTypes()
Get a list of supported file types for this perspective- Returns:
- The list of supported file types
-
activate
void activate()
Switch to this perspective (shown).
-
perspectiveActivated
void perspectiveActivated()
Notify this perspective that it has been activated.
-
navigateToPreviousFile
void navigateToPreviousFile()
Navigate the file usage history to the previous file
-
navigateToNextFile
void navigateToNextFile()
Navigate the file usage history to the next file
-
isActive
boolean isActive()
See if this perspective is active (shown)- Returns:
- True if the perspective is currently shown
-
initialize
void initialize(HopGui hopGui, org.eclipse.swt.widgets.Composite parent)
Initialize this perspective- Parameters:
hopGui- The parent Hop GUI
-
hasNavigationPreviousFile
boolean hasNavigationPreviousFile()
-
hasNavigationNextFile
boolean hasNavigationNextFile()
-
getControl
org.eclipse.swt.widgets.Control getControl()
- Returns:
- The control of this perspective
-
remove
boolean remove(IHopFileTypeHandler typeHandler)
Remove this file type handler from the perspective- Parameters:
typeHandler- The file type handler to remove- Returns:
-
getItems
List<TabItemHandler> getItems()
Get the list of tabs handled by and currently open in the perspective- Returns:
- The list of tab items
-
getSearchables
List<ISearchable> getSearchables()
- Returns:
- A list of searchable items
-
-