Search in sources :

Example 6 with Control

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);
}
Also used : Control(org.eclipse.swt.widgets.Control)

Example 7 with Control

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;
}
Also used : Control(org.eclipse.swt.widgets.Control)

Example 8 with Control

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;
}
Also used : Control(org.eclipse.swt.widgets.Control) DataSourceDescriptor(org.jkiss.dbeaver.registry.DataSourceDescriptor)

Example 9 with Control

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;
}
Also used : ObjectListControl(org.jkiss.dbeaver.ui.controls.itemlist.ObjectListControl) Control(org.eclipse.swt.widgets.Control)

Example 10 with Control

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;
}
Also used : Control(org.eclipse.swt.widgets.Control)

Aggregations

Control (org.eclipse.swt.widgets.Control)307 Point (org.eclipse.swt.graphics.Point)96 Composite (org.eclipse.swt.widgets.Composite)88 FormAttachment (org.eclipse.swt.layout.FormAttachment)57 FormData (org.eclipse.swt.layout.FormData)57 Button (org.eclipse.swt.widgets.Button)57 GridData (org.eclipse.swt.layout.GridData)55 Node (org.talend.designer.core.ui.editor.nodes.Node)46 DecoratedField (org.eclipse.jface.fieldassist.DecoratedField)45 CLabel (org.eclipse.swt.custom.CLabel)37 GridLayout (org.eclipse.swt.layout.GridLayout)37 Text (org.eclipse.swt.widgets.Text)36 FieldDecoration (org.eclipse.jface.fieldassist.FieldDecoration)33 GC (org.eclipse.swt.graphics.GC)31 Label (org.eclipse.swt.widgets.Label)31 SelectionEvent (org.eclipse.swt.events.SelectionEvent)28 CCombo (org.eclipse.swt.custom.CCombo)27 IElementParameter (org.talend.core.model.process.IElementParameter)25 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)24 StyledText (org.eclipse.swt.custom.StyledText)23