Package com.dci.intellij.dbn.object.common.operation

Examples of com.dci.intellij.dbn.object.common.operation.DBOperationType


    }

    public void actionPerformed(AnActionEvent e) {
        boolean enabled = object.getStatus().is(DBObjectStatus.ENABLED);
        try {
            DBOperationType operationType = enabled ? DBOperationType.DISABLE : DBOperationType.ENABLE;
            object.getOperationExecutor().executeOperation(operationType);
        } catch (SQLException e1) {
            String message = "Error " + (!enabled ? "enabling " : "disabling ") + object.getQualifiedNameWithType();
            MessageUtil.showErrorDialog(message, e1);
        } catch (DBOperationNotSupportedException e1) {
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.common.operation.DBOperationType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.