Examples of DBContentType


Examples of com.dci.intellij.dbn.editor.DBContentType

        return null;
    }

    @NotNull
    public byte[] contentsToByteArray() throws IOException {
        DBContentType mainContentType = getMainContentType();
        if (mainContentType != null) {
            return getContentFile(mainContentType).contentsToByteArray();
        }
        return new byte[0];
    }
View Full Code Here

Examples of com.dci.intellij.dbn.editor.DBContentType

    }

    @Override
    public <T> T getUserData(@NotNull Key<T> key) {
        if (key == FileDocumentManagerImpl.DOCUMENT_KEY) {
            DBContentType mainContentType = getMainContentType();
            boolean isCode = mainContentType == DBContentType.CODE || mainContentType == DBContentType.CODE_BODY;
            if (isCode) {
                if (FAKE_DOCUMENT.get() != null) {
                    return (T) new WeakReference<Document>(FAKE_DOCUMENT.get());
                }
View Full Code Here

Examples of com.dci.intellij.dbn.editor.DBContentType

        }
        return super.getUserData(key);
    }

    public DBContentType getMainContentType() {
        DBContentType contentType = getObject().getContentType();
        return
            contentType == DBContentType.CODE ? DBContentType.CODE :
            contentType == DBContentType.CODE_SPEC_AND_BODY ? DBContentType.CODE_BODY : null;
    }
View Full Code Here

Examples of com.dci.intellij.dbn.editor.DBContentType

            contentType == DBContentType.CODE ? DBContentType.CODE :
            contentType == DBContentType.CODE_SPEC_AND_BODY ? DBContentType.CODE_BODY : null;
    }

    public DatabaseContentFile getMainContentFile() {
        DBContentType mainContentType = getMainContentType();
        return getContentFile(mainContentType);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.