Package com.dci.intellij.dbn.code.common.lookup

Examples of com.dci.intellij.dbn.code.common.lookup.DBObjectLookupItemFactory


    public int getSortingIndexFor(LookupItemFactory lookupItemFactory) {
        if (lookupItemFactory instanceof AliasLookupItemFactory) {
            return -1;
        }
        if (lookupItemFactory instanceof DBObjectLookupItemFactory) {
            DBObjectLookupItemFactory objectLookupItemFactory = (DBObjectLookupItemFactory) lookupItemFactory;
            DBObjectType objectType = objectLookupItemFactory.getObject().getObjectType();
            return getSortingIndexFor(objectType);
        }

        if (lookupItemFactory instanceof TokenLookupItemFactory) {
            TokenLookupItemFactory tokenLookupItemFactory = (TokenLookupItemFactory) lookupItemFactory;
View Full Code Here


    }

    public LookupItemFactory getLookupItemFactory(DBLanguage language) {
        if (language == SQLLanguage.INSTANCE) {
            if (sqlLookupItemFactory == null) {
                sqlLookupItemFactory = new DBObjectLookupItemFactory(this, language);
            }
            return sqlLookupItemFactory;
        }
        if (language == PSQLLanguage.INSTANCE) {
            if (psqlLookupItemFactory == null) {
                psqlLookupItemFactory = new DBObjectLookupItemFactory(this, language);
            }
            return psqlLookupItemFactory;
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.code.common.lookup.DBObjectLookupItemFactory

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.