Class HopDataOrchestrationPerspective
- java.lang.Object
-
- org.apache.hop.ui.hopgui.perspective.dataorch.HopDataOrchestrationPerspective
-
- All Implemented Interfaces:
IActionContextHandlersProvider,IHopPerspective,TabClosable
@HopPerspectivePlugin(id="100-HopDataOrchestrationPerspective", name="i18n::DataOrchestrationPerspective.Name", image="ui/images/data_orch.svg", description="i18n::DataOrchestrationPerspective.Description") @GuiPlugin(description="i18n::DataOrchestrationPerspective.GuiPlugin.Description") public class HopDataOrchestrationPerspective extends Object implements IHopPerspective, TabClosable
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_PERSPECTIVE_TOOLBAR_ITEM
-
Constructor Summary
Constructors Constructor Description HopDataOrchestrationPerspective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Switch to this perspective (shown).IHopFileTypeHandleraddPipeline(HopGui hopGui, PipelineMeta pipelineMeta, HopPipelineFileType pipelineFile)Add a new pipeline tab to the tab folder...IHopFileTypeHandleraddWorkflow(HopGui hopGui, WorkflowMeta workflowMeta, HopWorkflowFileType workflowFile)Add a new workflow tab to the tab folder...voidcloseTab(org.eclipse.swt.custom.CTabFolderEvent event, org.eclipse.swt.custom.CTabItem tabItem)Close the tab on the perspectiveTabItemHandlerfindPipeline(String logChannelId)TabItemHandlerfindTabItemHandler(IHopFileTypeHandler handler)TabItemHandlerfindTabItemHandler(org.eclipse.swt.custom.CTabItem tabItem)TabItemHandlerfindTabItemHandlerWithFilename(String filename)TabItemHandlerfindWorkflow(String logChannelId)IHopFileTypeHandlergetActiveFileTypeHandler()Get the active file type handler.TabItemHandlergetActiveItem()Gets activeItemList<IGuiContextHandler>getContextHandlers()Get the currently active context handlers in the perspective...org.eclipse.swt.widgets.ControlgetControl()HopGuigetHopGui()Gets hopGuiStringgetId()List<TabItemHandler>getItems()Gets itemsHopPipelineFileType<PipelineMeta>getPipelineFileType()Gets pipelineFileTypeList<ISearchable>getSearchables()List<IHopFileType>getSupportedHopFileTypes()Get a list of supported file types for this perspectiveorg.eclipse.swt.custom.CTabFoldergetTabFolder()Gets tabFolderHopWorkflowFileType<WorkflowMeta>getWorkflowFileType()Gets jobFileTypebooleanhasNavigationNextFile()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 the file type handler from this perspective, from the tab folder.voidsetActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler)Set the focus on the given file type handler.voidsetActiveItem(TabItemHandler activeItem)voidsetHopGui(HopGui hopGui)voidsetItems(List<TabItemHandler> items)voidsetTabFolder(org.eclipse.swt.custom.CTabFolder tabFolder)voidswitchToTab(TabItemHandler tabItemHandler)voidupdateTabLabel(org.eclipse.swt.custom.CTabItem tabItem, String filename, String name)voidupdateTabs()Update all the tab labels...-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.ui.hopgui.perspective.TabClosable
getOtherTabs, getTabsToLeft, getTabsToRight
-
-
-
-
Field Detail
-
ID_PERSPECTIVE_TOOLBAR_ITEM
public static final String ID_PERSPECTIVE_TOOLBAR_ITEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceIHopPerspective
-
activate
@GuiKeyboardShortcut(control=true, shift=true, key=100) @GuiOsxKeyboardShortcut(command=true, shift=true, key=100) 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
-
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
-
findTabItemHandler
public TabItemHandler findTabItemHandler(org.eclipse.swt.custom.CTabItem tabItem)
-
findTabItemHandler
public TabItemHandler findTabItemHandler(IHopFileTypeHandler handler)
-
addPipeline
public IHopFileTypeHandler addPipeline(HopGui hopGui, PipelineMeta pipelineMeta, HopPipelineFileType pipelineFile) throws HopException
Add a new pipeline tab to the tab folder...- Parameters:
pipelineMeta-- Returns:
- Throws:
HopException
-
updateTabLabel
public void updateTabLabel(org.eclipse.swt.custom.CTabItem tabItem, String filename, String name)
-
addWorkflow
public IHopFileTypeHandler addWorkflow(HopGui hopGui, WorkflowMeta workflowMeta, HopWorkflowFileType workflowFile) throws HopException
Add a new workflow tab to the tab folder...- Parameters:
workflowMeta-- Returns:
- The file type handler
- Throws:
HopException
-
remove
public boolean remove(IHopFileTypeHandler typeHandler)
Remove the file type handler from this perspective, from the tab folder. This simply tries to remove the item, does not- Specified by:
removein interfaceIHopPerspective- Parameters:
typeHandler- The file type handler to remove- Returns:
- true if the handler was removed from the perspective, false if it wasn't (cancelled, not possible, ...)
-
getActiveFileTypeHandler
public IHopFileTypeHandler getActiveFileTypeHandler()
Get the active file type handler. If none is active return an empty handler which does do anything.- Specified by:
getActiveFileTypeHandlerin interfaceIHopPerspective- Returns:
- the active file type handler or if none is active return an empty handler which does do anything.
-
setActiveFileTypeHandler
public void setActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler)
Description copied from interface:IHopPerspectiveSet the focus on the given file type handler.- Specified by:
setActiveFileTypeHandlerin interfaceIHopPerspective
-
switchToTab
public void switchToTab(TabItemHandler tabItemHandler)
-
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
-
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
-
getContextHandlers
public List<IGuiContextHandler> getContextHandlers()
Get the currently active context handlers in the perspective...- Specified by:
getContextHandlersin interfaceIActionContextHandlersProvider- Returns:
-
updateTabs
public void updateTabs()
Update all the tab labels...
-
findTabItemHandlerWithFilename
public TabItemHandler findTabItemHandlerWithFilename(String filename)
-
getSearchables
public List<ISearchable> getSearchables()
- Specified by:
getSearchablesin interfaceIHopPerspective- Returns:
- A list of searchable items
-
findPipeline
public TabItemHandler findPipeline(String logChannelId)
-
findWorkflow
public TabItemHandler findWorkflow(String logChannelId)
-
getItems
public List<TabItemHandler> getItems()
Gets items- Specified by:
getItemsin interfaceIHopPerspective- Returns:
- value of items
-
setItems
public void setItems(List<TabItemHandler> items)
- Parameters:
items- The items to set
-
getActiveItem
public TabItemHandler getActiveItem()
Gets activeItem- Returns:
- value of activeItem
-
setActiveItem
public void setActiveItem(TabItemHandler activeItem)
- Parameters:
activeItem- The activeItem to set
-
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
-
getTabFolder
public org.eclipse.swt.custom.CTabFolder getTabFolder()
Gets tabFolder- Specified by:
getTabFolderin interfaceTabClosable- Returns:
- value of tabFolder
-
setTabFolder
public void setTabFolder(org.eclipse.swt.custom.CTabFolder tabFolder)
- Parameters:
tabFolder- The tabFolder to set
-
getPipelineFileType
public HopPipelineFileType<PipelineMeta> getPipelineFileType()
Gets pipelineFileType- Returns:
- value of pipelineFileType
-
getWorkflowFileType
public HopWorkflowFileType<WorkflowMeta> getWorkflowFileType()
Gets jobFileType- Returns:
- value of jobFileType
-
closeTab
public void closeTab(org.eclipse.swt.custom.CTabFolderEvent event, org.eclipse.swt.custom.CTabItem tabItem)Description copied from interface:TabClosableClose the tab on the perspective- Specified by:
closeTabin interfaceTabClosable
-
-