use of org.eclipse.swt.widgets.Control in project dbeaver by serge-rider.
the class CustomTreeEditor method showEditor.
public void showEditor(TreeItem item) {
closeEditor();
tree.showItem(item);
final Control editor = createEditor(tree, columnIndex, item);
if (editor == null) {
return;
}
editor.setFocus();
editor.addFocusListener(new FocusAdapter() {
@Override
public void focusLost(FocusEvent e) {
saveEditorValue(editor, columnIndex, treeEditor.getItem());
closeEditor();
}
});
editor.addTraverseListener(this);
treeEditor.setEditor(editor, item, columnIndex);
}
use of org.eclipse.swt.widgets.Control in project dbeaver by serge-rider.
the class SelectDataSourceDialog method createContents.
@Override
protected Control createContents(Composite parent) {
Control ctl = super.createContents(parent);
getButton(IDialogConstants.OK_ID).setEnabled(false);
return ctl;
}
use of org.eclipse.swt.widgets.Control in project dbeaver by serge-rider.
the class EditConnectionDialog method createContents.
@Override
protected Control createContents(Composite parent) {
Control contents = super.createContents(parent);
DataSourceDescriptor activeDataSource = getWizard().getActiveDataSource();
getShell().setText("Connection '" + activeDataSource.getName() + "' configuration");
getShell().setImage(DBeaverIcons.getImage(activeDataSource.getObjectImage()));
return contents;
}
use of org.eclipse.swt.widgets.Control in project dbeaver by serge-rider.
the class SelectObjectDialog method createContents.
@Override
protected Control createContents(Composite parent) {
Control ctl = super.createContents(parent);
getButton(IDialogConstants.OK_ID).setEnabled(false);
return ctl;
}
use of org.eclipse.swt.widgets.Control in project dbeaver by serge-rider.
the class HelpEnabledDialog method createContents.
@Override
protected Control createContents(Composite parent) {
final Control contents = super.createContents(parent);
UIUtils.setHelp(contents, helpContextID);
return contents;
}
Aggregations