Class ConfigurationPerspective
- java.lang.Object
-
- org.apache.hop.ui.hopgui.perspective.configuration.ConfigurationPerspective
-
- All Implemented Interfaces:
IActionContextHandlersProvider,IHopPerspective,TabClosable
@HopPerspectivePlugin(id="160-HopConfigurationPerspective", name="i18n::ConfigurationPerspective.Name", description="i18n::ConfigurationPerspective.Description", image="ui/images/gear.svg") @GuiPlugin(description="i18n::HopConfigurationPerspective.GuiPlugin.Description") public class ConfigurationPerspective extends Object implements IHopPerspective, TabClosable
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_PERSPECTIVE_TABSorg.eclipse.swt.custom.CTabFolderconfigTabs
-
Constructor Summary
Constructors Constructor Description ConfigurationPerspective()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Switch to this perspective (shown).voidcloseTab(org.eclipse.swt.custom.CTabFolderEvent event, org.eclipse.swt.custom.CTabItem tabItem)Close the tab on the perspectiveIHopFileTypeHandlergetActiveFileTypeHandler()Get the active file type handler capable of saving, executing, printing, ...List<IGuiContextHandler>getContextHandlers()org.eclipse.swt.widgets.ControlgetControl()StringgetId()static ConfigurationPerspectivegetInstance()List<TabItemHandler>getItems()Get the list of tabs handled by and currently open in the perspectiveList<org.eclipse.swt.custom.CTabItem>getOtherTabs(org.eclipse.swt.custom.CTabItem selectedTabItem)Get all the other tabs of the selected oneList<ISearchable>getSearchables()List<IHopFileType>getSupportedHopFileTypes()Get a list of supported file types for this perspectiveorg.eclipse.swt.custom.CTabFoldergetTabFolder()Get the tabFolder of the perspectiveList<org.eclipse.swt.custom.CTabItem>getTabsToLeft(org.eclipse.swt.custom.CTabItem selectedTabItem)Get all the tabs on the left-hand side of the selected oneList<org.eclipse.swt.custom.CTabItem>getTabsToRight(org.eclipse.swt.custom.CTabItem selectedTabItem)Get all the tabs on the right-hand side of the selected onebooleanhasNavigationNextFile()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.voidshowSystemVariablesTab()
-
-
-
Field Detail
-
CONFIG_PERSPECTIVE_TABS
public static final String CONFIG_PERSPECTIVE_TABS
- See Also:
- Constant Field Values
-
configTabs
public org.eclipse.swt.custom.CTabFolder configTabs
-
-
Method Detail
-
getInstance
public static ConfigurationPerspective getInstance()
-
getContextHandlers
public List<IGuiContextHandler> getContextHandlers()
- Specified by:
getContextHandlersin interfaceIActionContextHandlersProvider
-
getId
public String getId()
- Specified by:
getIdin 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
-
activate
@GuiKeyboardShortcut(control=true, shift=true, key=99) @GuiOsxKeyboardShortcut(command=true, shift=true, key=99) 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
-
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
-
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
-
showSystemVariablesTab
public void showSystemVariablesTab()
-
hasNavigationPreviousFile
public boolean hasNavigationPreviousFile()
- Specified by:
hasNavigationPreviousFilein interfaceIHopPerspective
-
hasNavigationNextFile
public boolean hasNavigationNextFile()
- Specified by:
hasNavigationNextFilein interfaceIHopPerspective
-
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControlin interfaceIHopPerspective- Returns:
- The control of this perspective
-
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
-
getSearchables
public List<ISearchable> getSearchables()
- Specified by:
getSearchablesin interfaceIHopPerspective- Returns:
- A list of searchable items
-
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
-
getTabsToRight
public List<org.eclipse.swt.custom.CTabItem> getTabsToRight(org.eclipse.swt.custom.CTabItem selectedTabItem)
Description copied from interface:TabClosableGet all the tabs on the right-hand side of the selected one- Specified by:
getTabsToRightin interfaceTabClosable
-
getTabsToLeft
public List<org.eclipse.swt.custom.CTabItem> getTabsToLeft(org.eclipse.swt.custom.CTabItem selectedTabItem)
Description copied from interface:TabClosableGet all the tabs on the left-hand side of the selected one- Specified by:
getTabsToLeftin interfaceTabClosable
-
getOtherTabs
public List<org.eclipse.swt.custom.CTabItem> getOtherTabs(org.eclipse.swt.custom.CTabItem selectedTabItem)
Description copied from interface:TabClosableGet all the other tabs of the selected one- Specified by:
getOtherTabsin interfaceTabClosable
-
getTabFolder
public org.eclipse.swt.custom.CTabFolder getTabFolder()
Description copied from interface:TabClosableGet the tabFolder of the perspective- Specified by:
getTabFolderin interfaceTabClosable
-
-