Examples of DDLFileNameProvider


Examples of com.dci.intellij.dbn.ddl.DDLFileNameProvider

import javax.swing.*;

public class DDLFileNameListCellRenderer extends ColoredListCellRenderer {
    protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
        DDLFileNameProvider fileNameProvider = (DDLFileNameProvider) value;

        append(fileNameProvider.getFileName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
        append(" (" + fileNameProvider.getDdlFileType().getDescription() + ") ", SimpleTextAttributes.GRAY_ATTRIBUTES);

        //Module module = ProjectRootManager.getInstance(psiFile.getProject()).getFileIndex().getModuleForFile(virtualFile);
        //append(" - module " + module.getName(), SimpleTextAttributes.GRAYED_ATTRIBUTES);

        setIcon(fileNameProvider.getDdlFileType().getLanguageFileType().getIcon());
    }
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.