提交 79068eb0 编写于 作者: S serge-rider

#9994 Set focus on panel control after panel activation

上级 c7852243
......@@ -1111,6 +1111,7 @@ public class ResultSetViewer extends Viewer
if (setActive) {
panelFolder.setSelection(panelTab);
presentationSettings.activePanelId = id;
panelTab.getControl().setFocus();
}
return true;
} else {
......
......@@ -124,6 +124,7 @@ public class MetaDataPanel implements IResultSetPanel {
@Override
public void activatePanel() {
refresh(false);
attributeList.setFocus();
}
@Override
......
......@@ -131,6 +131,7 @@ public class ValueViewerPanel implements IResultSetPanel, IAdaptable {
@Override
public void activatePanel() {
refreshValue(false);
viewPlaceholder.setFocus();
}
@Override
......
......@@ -362,9 +362,7 @@ public class SpreadsheetPresentation extends AbstractPresentation implements IRe
GridCell cell = controller.isRecordMode() ?
new GridCell(curRow, this.curAttribute) :
new GridCell(this.curAttribute, curRow);
UIUtils.asyncExec(() -> {
this.spreadsheet.setCursor(cell, false, true);
});
this.spreadsheet.setCursor(cell, false, true);
//this.spreadsheet.showColumn(this.curAttribute);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册