Package com.intellij.lang.properties.psi

Examples of com.intellij.lang.properties.psi.PropertiesFile


    private void addPropertiesFilesOptions() {
        List<Object> data = new ArrayList<Object>();

        { // find component class properties file
            PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(componentClass);
            if (propertiesFile == null) {
                data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.PROPERTIES));
                data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.XML));
            } else {
                data.add(propertiesFile);
            }
        }

        { // find and add application properties file
            PsiClass appClass = WicketPsiUtil.findWicketApplicationClass(project);
            if (appClass != null) {
                PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(appClass);
                if (propertiesFile != null) {
                    data.add(propertiesFile);
                }
            }
        }
View Full Code Here


            }
        });
    }

    private void addPropertiesToResult(PsiClass c, CompletionResultSet rs) {
        PropertiesFile properties = PropertiesIndex.getBaseFile(c);
        if (properties != null) {
            for (IProperty property : properties.getProperties()) {
                String propertyKey = property.getKey();
                if (propertyKey != null) {
                    LookupElementBuilder lookupElementBuilder =
                            LookupElementBuilder.create(propertyKey)
                                    .withIcon(StdFileTypes.PROPERTIES.getIcon())
View Full Code Here

TOP

Related Classes of com.intellij.lang.properties.psi.PropertiesFile

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.