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

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


    }

    public PsiElement adjustElement(PsiElement psiElement) {
        if (psiElement instanceof DBLanguageFile) {
            DBLanguageFile databaseFile = (DBLanguageFile) psiElement;
            DBObject object = databaseFile.getUnderlyingObject();
            if (object != null) {
                return NavigationPsiCache.getPsiFile(object);
            }
        }
        return psiElement;
View Full Code Here


        }

        @Override
        public void elementChosen(Object element) {
            if (element instanceof DBObject) {
                DBObject object = (DBObject) element;
                if (object.getProperties().is(DBObjectProperty.EDITABLE)) {
                    DatabaseFileSystem.getInstance().openEditor(object);
                } else {
                    object.navigate(true);
                }
            }
        }
View Full Code Here

    }

    public PsiDirectory getParent() {
        GenericDatabaseElement parent = getObjectList().getTreeParent();
        if (parent instanceof DBObject) {
            DBObject parentObject = (DBObject) parent;
            return NavigationPsiCache.getPsiDirectory(parentObject);
        }

        if (parent instanceof DBObjectBundle) {
            DBObjectBundle objectBundle = (DBObjectBundle) parent;
View Full Code Here

    @NotNull
    public PsiElement[] getChildren() {
        List<PsiElement> children = new ArrayList<PsiElement>();       
        for (Object obj : getObjectList().getObjects()) {
            DBObject object = (DBObject) obj;
            if (object instanceof DBSchemaObject) {
                children.add(NavigationPsiCache.getPsiFile(object));   
            } else {
                children.add(NavigationPsiCache.getPsiDirectory(object));               
            }
View Full Code Here

        }
        return true;
    }

    public void notifyError(DatasetEditorError error, boolean startEditing, boolean showPopup) {
        DBObject messageObject = error.getMessageObject();
        if (messageObject != null) {
            if (messageObject instanceof DBColumn) {
                DBColumn column = (DBColumn) messageObject;
                DatasetEditorModelCell cell = getCellForColumn(column);
                boolean isErrorNew = cell.notifyError(error, true);
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.