Package com.dci.intellij.dbn.connection.transaction

Examples of com.dci.intellij.dbn.connection.transaction.UncommittedChangeBundle


    }

    public void notifyChanges(VirtualFile virtualFile) {
        if (!isAutoCommit()) {
            if (changesBundle == null) {
                changesBundle = new UncommittedChangeBundle();
            }
            changesBundle.notifyChange(virtualFile);
        }
    }
View Full Code Here


    public Project getProject() {
        return connectionHandler.getProject();
    }

    public int getRowCount() {
        UncommittedChangeBundle uncommittedChanges = connectionHandler.getUncommittedChanges();
        return uncommittedChanges == null ? 0 : uncommittedChanges.size();
    }
View Full Code Here

        @Override
        protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
            ConnectionHandler connectionHandler = (ConnectionHandler) value;
            setIcon(connectionHandler.getIcon());
            append(connectionHandler.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
            UncommittedChangeBundle uncommittedChanges = connectionHandler.getUncommittedChanges();
            int changes = uncommittedChanges == null ? 0 : uncommittedChanges.size();
            append(" (" + changes + ")", SimpleTextAttributes.GRAY_ATTRIBUTES);

        }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.connection.transaction.UncommittedChangeBundle

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.