use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.
the class UIManager method moveInputScrollBarZoneAtSelectedTable.
private void moveInputScrollBarZoneAtSelectedTable() {
Rectangle bounds = currentSelectedInputTableView.getBounds();
int selection = bounds.y - 30;
ScrolledComposite scrolledCompositeViewInputs = getScrolledCompositeViewInputs();
setPositionOfVerticalScrollBarZone(scrolledCompositeViewInputs, selection);
}
use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.
the class UIManager method moveInputScrollBarZoneAtSelectedTable.
private void moveInputScrollBarZoneAtSelectedTable() {
Rectangle bounds = currentSelectedInputTableView.getBounds();
int selection = bounds.y - 30;
ScrolledComposite scrolledCompositeViewInputs = getScrolledCompositeViewInputs();
setPositionOfVerticalScrollBarZone(scrolledCompositeViewInputs, selection);
}
use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.
the class UIManager method moveOutputScrollBarZoneToMax.
public void moveOutputScrollBarZoneToMax() {
ScrolledComposite scrolledCompositeViewOutputs = getScrolledCompositeViewOutputs();
setPositionOfVerticalScrollBarZone(scrolledCompositeViewOutputs, scrolledCompositeViewOutputs.getVerticalBar().getMaximum());
}
use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.
the class UIManager method moveOutputScrollBarZoneAtSelectedTable.
private void moveOutputScrollBarZoneAtSelectedTable() {
Rectangle bounds = currentSelectedOutputTableView.getBounds();
int selection = bounds.y - 30;
ScrolledComposite scrolledCompositeViewOutputs = getScrolledCompositeViewOutputs();
setPositionOfVerticalScrollBarZone(scrolledCompositeViewOutputs, selection);
}
use of org.eclipse.swt.custom.ScrolledComposite in project tdi-studio-se by Talend.
the class SearchZoneMapper method moveScrollBarZoneAtSelectedTableItem.
public void moveScrollBarZoneAtSelectedTableItem(ITableEntry entry) {
if (entry != null) {
DataMapTableView dataMapTableView = mapperManager.retrieveIDataMapTableView(entry.getParent());
Rectangle tableViewBounds = dataMapTableView.getBounds();
IDataMapTable table = entry.getParent();
TableItem tableItem = mapperManager.retrieveTableItem(entry);
if (table != null && tableItem != null) {
Rectangle tableItemBounds = tableItem.getBounds();
int selection = tableViewBounds.y + tableItemBounds.y;
ScrolledComposite scrollComposite = null;
if (table instanceof InputTable) {
scrollComposite = uiManager.getScrolledCompositeViewInputs();
} else if (table instanceof OutputTable) {
scrollComposite = uiManager.getScrolledCompositeViewOutputs();
}
if (scrollComposite != null) {
setPositionOfVerticalScrollBarZone(scrollComposite, selection);
}
}
}
}
Aggregations