Search in sources :

Example 1 with CreateAliasDlg

use of net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg in project tdq-studio-se by Talend.

the class NewAliasAction method run.

public void run() {
    CreateAliasDlg dlg = new CreateAliasDlg(Display.getCurrent().getActiveShell(), CreateAliasDlg.Type.CREATE, new Alias());
    dlg.open();
    getView().refresh();
}
Also used : Alias(net.sourceforge.sqlexplorer.dbproduct.Alias) CreateAliasDlg(net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg)

Example 2 with CreateAliasDlg

use of net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg in project tdq-studio-se by Talend.

the class ChangeAliasAction method run.

public void run() {
    Alias alias = getView().getSelectedAlias(false);
    if (alias != null) {
        CreateAliasDlg dlg = new CreateAliasDlg(Display.getCurrent().getActiveShell(), CreateAliasDlg.Type.CHANGE, alias);
        dlg.open();
        getView().refresh();
    }
}
Also used : Alias(net.sourceforge.sqlexplorer.dbproduct.Alias) CreateAliasDlg(net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg)

Example 3 with CreateAliasDlg

use of net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg in project tdq-studio-se by Talend.

the class CopyAliasAction method run.

public void run() {
    Alias alias = getView().getSelectedAlias(false);
    if (alias == null)
        return;
    CreateAliasDlg dlg = new CreateAliasDlg(Display.getCurrent().getActiveShell(), CreateAliasDlg.Type.COPY, new Alias(alias));
    dlg.open();
    getView().refresh();
}
Also used : Alias(net.sourceforge.sqlexplorer.dbproduct.Alias) CreateAliasDlg(net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg)

Aggregations

Alias (net.sourceforge.sqlexplorer.dbproduct.Alias)3 CreateAliasDlg (net.sourceforge.sqlexplorer.dialogs.CreateAliasDlg)3