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

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


            }
            if (index > 0) {
                LeafPsiElement previousPsiElement = getLeafAtIndex(index-1);
                if (previousPsiElement instanceof IdentifierPsiElement) {
                    IdentifierPsiElement parentPsiElement = (IdentifierPsiElement) previousPsiElement;
                    DBObject parentObject = parentPsiElement.resolveUnderlyingObject();
                    if (parentObject != null) {
                        return parentObject;
                    }
                }
            }
View Full Code Here


            ArgumentValue argumentValue = (ArgumentValue) userValue;
            return "" + argumentValue.getValue();
        }

        if (userValue instanceof DBObject) {
            DBObject object = (DBObject) userValue;
            return object.getName();
        }

        return userValue.toString();
    }
View Full Code Here

    public String getValue() {
        return qualified ? objectRef.getPath() : objectRef.getName();
    }

    public Icon getIcon() {
        DBObject object = objectRef.get();
        return object == null ? null : object.getIcon();
    }
View Full Code Here

    private void buildNavigationActions() {
        for (int i=0; i<objects.size(); i++) {
            if (i == objects.size()) {
                return;
            }
            DBObject object = objects.get(i);
            add(listShowAction.createObjectAction(object));
        }
    }
View Full Code Here

        return getOwner();
    }

    public DBObject getChildObject(DBObjectType objectType, String name, boolean lookupHidden) {
        if (objectType.isSchemaObject()) {
            DBObject object = super.getChildObject(objectType, name, lookupHidden);
            if (object == null) {
                DBSynonym synonym = (DBSynonym) super.getChildObject(DBObjectType.SYNONYM, name, lookupHidden);
                if (synonym != null) {
                    DBObject underlyingObject = synonym.getUnderlyingObject();
                    if (underlyingObject != null && underlyingObject.isOfType(objectType)) {
                        return synonym;
                    }
                }
            } else {
                return object;
View Full Code Here

    private DBSchemaObject getObjectFallbackOnSynonym(DBObjectList<? extends DBSchemaObject> objects, String name) {
        DBSchemaObject object = objects.getObject(name);
        if (object == null && DatabaseCompatibilityInterface.getInstance(this).supportsObjectType(DBObjectType.SYNONYM.getTypeId())) {
            DBSynonym synonym = synonyms.getObject(name);
            if (synonym != null) {
                DBObject underlyingObject = synonym.getUnderlyingObject();
                if (underlyingObject != null) {
                    if (underlyingObject.getObjectType() == objects.getObjectType()) {
                        return (DBSchemaObject) underlyingObject;
                    }
                }
            }
        } else {
View Full Code Here

        if (browserManager.getShowObjectProperties().value()) {
            DatabaseBrowserTree activeBrowserTree = browserManager.getActiveBrowserTree();
            if (activeBrowserTree != null) {
                BrowserTreeNode treeNode = activeBrowserTree.getSelectedNode();
                if (treeNode instanceof DBObject) {
                    DBObject object = (DBObject) treeNode;
                    setObject(object);
                }
            }
        }
    }
View Full Code Here

    public DBObject getUnderlyingObject() {
        return underlyingObject.get();
    }

    public String getNavigationTooltipText() {
        DBObject parentObject = getParentObject();
        if (parentObject == null) {
            return "unknown " + getTypeName();
        } else {
            DBObject underlyingObject = getUnderlyingObject();
            if (underlyingObject == null) {
                return "unknown " + getTypeName() +
                        " (" + parentObject.getTypeName() + " " + parentObject.getName() + ")";
            } else {
                return getTypeName() + " of " + underlyingObject.getName() + " " + underlyingObject.getTypeName() +
                        " (" + parentObject.getTypeName() + " " + parentObject.getName() + ")";

            }

        }
View Full Code Here

    }

    protected List<DBObjectNavigationList> createNavigationLists() {
        List<DBObjectNavigationList> objectNavigationLists = super.createNavigationLists();

        DBObject underlyingObject = getUnderlyingObject();
        if (underlyingObject != null) {
            DBObjectNavigationListImpl objectNavigationList = new DBObjectNavigationListImpl("Underlying " + underlyingObject.getTypeName(), underlyingObject);
            objectNavigationLists.add(objectNavigationList);
        }

        return objectNavigationLists;
    }
View Full Code Here

        return objectNavigationLists;
    }

    public void buildToolTip(HtmlToolTipBuilder ttb) {
        DBObject underlyingObject = getUnderlyingObject();
        if (underlyingObject!= null) {
            ttb.append(true, underlyingObject.getObjectType().getName() + " ", true);
        }
        ttb.append(false, getObjectType().getName(), true);
        ttb.createEmptyRow();
        super.buildToolTip(ttb);
    }
View Full Code Here

TOP

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

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.