use of org.apache.hop.ui.hopgui.perspective.TabItemHandler in project hop by apache.
the class HopDataOrchestrationPerspective method updateTabs.
/**
* Update all the tab labels...
*/
public void updateTabs() {
for (TabItemHandler item : items) {
IHopFileTypeHandler typeHandler = item.getTypeHandler();
updateTabLabel(item.getTabItem(), typeHandler.getFilename(), typeHandler.getName());
}
}
use of org.apache.hop.ui.hopgui.perspective.TabItemHandler in project hop by apache.
the class HopDataOrchestrationPerspective method setActiveFileTypeHandler.
@Override
public void setActiveFileTypeHandler(IHopFileTypeHandler activeFileTypeHandler) {
TabItemHandler tabItemHandler = findTabItemHandler(activeFileTypeHandler);
if (tabItemHandler == null) {
// Can't find the file
return;
}
// Select the tab
//
switchToTab(tabItemHandler);
}
use of org.apache.hop.ui.hopgui.perspective.TabItemHandler in project hop by apache.
the class MetadataFileTypeHandler method findTabItemHandler.
private TabItemHandler findTabItemHandler() {
if (metadata == null) {
return null;
}
MetadataPerspective perspective = MetadataPerspective.getInstance();
for (TabItemHandler tabItemHandler : perspective.getItems()) {
CTabItem tabItem = tabItemHandler.getTabItem();
MetadataEditor editor = (MetadataEditor) tabItem.getData();
IHopMetadata other = editor.getMetadata();
if (other.equals(metadata)) {
return tabItemHandler;
}
}
return null;
}
Aggregations