Package com.dci.intellij.dbn.language.common

Examples of com.dci.intellij.dbn.language.common.DBLanguageFileType


    public void fileTypesChanged(FileTypeEvent event) {
        StringBuilder restoredAssociations = null;
        FileTypeManager fileTypeManager = FileTypeManager.getInstance();
        List<DDLFileType> ddlFileTypeList = getExtensionSettings().getDDLFileTypes();
        for (DDLFileType ddlFileType : ddlFileTypeList) {
            DBLanguageFileType fileType = ddlFileType.getLanguageFileType();
            List<FileNameMatcher> associations = fileTypeManager.getAssociations(fileType);
            List<String> registeredExtension = new ArrayList<String>();
            for (FileNameMatcher association : associations) {
                if (association instanceof ExtensionFileNameMatcher) {
                    ExtensionFileNameMatcher extensionMatcher = (ExtensionFileNameMatcher) association;
View Full Code Here


    public static String getDefaultExtension(DBObject object) {
        if (object instanceof DBSchemaObject) {
            DBSchemaObject schemaObject = (DBSchemaObject) object;
            DDLFileType ddlFileType = schemaObject.getDDLFileType(null);
            DBLanguageFileType fileType = ddlFileType == null ? SQLFileType.INSTANCE : ddlFileType.getLanguageFileType();
            return fileType.getDefaultExtension();
        }
        return "";
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.language.common.DBLanguageFileType

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.