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

Examples of com.dci.intellij.dbn.object.common.DBSchemaObject


    public ConnectionHandler getConnectionHandler() {
        return databaseFile.getConnectionHandler();
    }

    public DBLanguageDialect getLanguageDialect() {
        DBSchemaObject object = getObject();
        DBLanguage language =
                object instanceof DBView ?
                        SQLLanguage.INSTANCE :
                        PSQLLanguage.INSTANCE;
       
        return object == null ?
                language.getMainLanguageDialect() :
                object.getLanguageDialect(language);
    }
View Full Code Here


    public String getUrl() {
        return url;
    }

    public Project getProject() {
        DBSchemaObject object = getObject();
        return object == null ? null : object.getProject();
    }
View Full Code Here

        return true;
    }

    @Nullable
    public VirtualFile getParent() {
        DBSchemaObject object = databaseFile.getObject();
        if (object != null) {
            DBObject parentObject = object.getParentObject();
            if (parentObject != null) {
                return parentObject.getVirtualFile();
            }
        }
        return null;
View Full Code Here

        }
        return null;
    }

    public Icon getIcon() {
        DBSchemaObject object = getObject();
        return object == null ? null : object.getOriginalIcon();
    }
View Full Code Here

        } else {
            String text =
                    virtualFile.getContentType() == DBContentType.CODE_SPEC ? "Save spec" :
                            virtualFile.getContentType() == DBContentType.CODE_BODY ? "Save body" : "Save";

            DBSchemaObject object = virtualFile.getObject();
            presentation.setEnabled(object != null && !object.getStatus().is(DBObjectStatus.SAVING) && virtualFile.isModified());
            presentation.setText(text);
        }
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.common.DBSchemaObject

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.