Search in sources :

Example 1 with EditUserDlg

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

the class CopyUserAction method run.

/* (non-Javadoc)
	 * @see org.eclipse.jface.action.Action#run()
	 */
@Override
public void run() {
    User user = getView().getSelectedUser(false);
    EditUserDlg dlg = new EditUserDlg(Display.getCurrent().getActiveShell(), EditUserDlg.Type.COPY, user.getAlias(), user);
    dlg.open();
    getView().refresh();
}
Also used : User(net.sourceforge.sqlexplorer.dbproduct.User) EditUserDlg(net.sourceforge.sqlexplorer.dialogs.EditUserDlg)

Example 2 with EditUserDlg

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

the class EditUserAction method run.

/* (non-Javadoc)
	 * @see org.eclipse.jface.action.Action#run()
	 */
@Override
public void run() {
    User user = getView().getSelectedUser(false);
    EditUserDlg dlg = new EditUserDlg(Display.getCurrent().getActiveShell(), EditUserDlg.Type.EDIT, user.getAlias(), user);
    dlg.open();
    getView().refresh();
}
Also used : User(net.sourceforge.sqlexplorer.dbproduct.User) EditUserDlg(net.sourceforge.sqlexplorer.dialogs.EditUserDlg)

Example 3 with EditUserDlg

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

the class NewUserAction method run.

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

Aggregations

EditUserDlg (net.sourceforge.sqlexplorer.dialogs.EditUserDlg)3 User (net.sourceforge.sqlexplorer.dbproduct.User)2 Alias (net.sourceforge.sqlexplorer.dbproduct.Alias)1