Package com.dci.intellij.dbn.vfs

Examples of com.dci.intellij.dbn.vfs.DatabaseObjectFile


    private List<UncommittedChange> changes = new ArrayList<UncommittedChange>();

    public void notifyChange(VirtualFile file){
        Icon icon = file.getFileType().getIcon();
        if (file instanceof DatabaseObjectFile) {
            DatabaseObjectFile databaseObjectFile = (DatabaseObjectFile) file;
            icon = databaseObjectFile.getIcon();
        }
        if (file instanceof SQLConsoleFile) {
            SQLConsoleFile sqlConsoleFile = (SQLConsoleFile) file;
            icon = sqlConsoleFile.getIcon();
        }
View Full Code Here


    }

    public DBObject getUnderlyingObject() {
        VirtualFile virtualFile = getVirtualFile();
        if (virtualFile instanceof DatabaseObjectFile) {
            DatabaseObjectFile databaseObjectFile = (DatabaseObjectFile) virtualFile;
            return databaseObjectFile.getObject();
        }

        if (virtualFile instanceof SourceCodeFile) {
            SourceCodeFile sourceCodeFile = (SourceCodeFile) virtualFile;
            return sourceCodeFile.getObject();
View Full Code Here

            return consoleFile.getConnectionHandler();

        }
       
        if (file instanceof DatabaseObjectFile) {
            DatabaseObjectFile objectFile = (DatabaseObjectFile) file;
            return objectFile.getConnectionHandler();
        }

        return FileConnectionMappingManager.getInstance(project).getActiveConnection(file);
    }
View Full Code Here

    }

    @NotNull
    public DatabaseObjectFile getVirtualFile() {
        if (virtualFile == null) {
            virtualFile = new DatabaseObjectFile(this);
        }
        return virtualFile;
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.vfs.DatabaseObjectFile

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.