Package org.mevenide.idea.psi.util

Examples of org.mevenide.idea.psi.util.XmlTagPath


            final XmlFile xmlFile = PsiUtils.findXmlFile(project, script);
            if (xmlFile == null)
                continue;

            final XmlTagPath regGoalPath = new XmlTagPath(xmlFile, "project/goal");
            final XmlTag[] goals = regGoalPath.getAllTags();
            for (XmlTag goalTag : goals) {
                final String goalName = goalTag.getAttributeValue("name");
                if (!regGoalName.equals(goalName))
                    continue;
View Full Code Here


        final XmlFile pomPsi = PsiUtils.findXmlFile(project, pluginPom);
        if (pomPsi == null)
            return null;

        plugin.setId(new XmlTagPath(pomPsi, POM_ID_XPATH).getStringValue());
        plugin.setGroupId(new XmlTagPath(pomPsi, POM_GROUP_ID_XPATH).getStringValue());
        plugin.setArtifactId(new XmlTagPath(pomPsi, POM_ARTIFACT_ID_XPATH).getStringValue());
        plugin.setVersion(new XmlTagPath(pomPsi, POM_VERSION_XPATH).getStringValue());
        plugin.setName(new XmlTagPath(pomPsi, POM_NAME_XPATH).getStringValue());
        plugin.setDescription(new XmlTagPath(pomPsi, POM_DESC_XPATH).getStringValue());

        //
        //parse plugin Jelly script
        //
        final VirtualFile jellyFile = pPluginDir.findChild("plugin.jelly");
        if (jellyFile != null && jellyFile.isValid() && FileUtils.exists(jellyFile))
            plugin.setScriptFile(jellyFile);
        else
            return null;

        final XmlFile jellyPsi = PsiUtils.findXmlFile(project, jellyFile);
        final XmlTagPath goalsPath = new XmlTagPath(jellyPsi, "project/goal");
        final XmlTag[] goalTags = goalsPath.getAllTags();
        final PluginGoal[] goals = new PluginGoal[goalTags.length];
        for (int i = 0; i < goalTags.length; i++) {
            XmlTag tag = goalTags[i];
            final String name = tag.getAttributeValue("name");
            final String lcName = name.toLowerCase();
View Full Code Here

public abstract class AbstractPsiUnnamedPropertyObservable
        extends AbstractPsiPropertyObservable<PsiUnnamedPropertyChangeListener>
        implements BeanRowsObservable {
    public AbstractPsiUnnamedPropertyObservable(final XmlFile pXmlFile,
                                                final String pContainerPath) {
        this(new XmlTagPath(pXmlFile, pContainerPath));
    }
View Full Code Here

    protected final PsiIndexedPropertyChangeListener psi;

    protected AbstractPsiBeanRowsObservable(final XmlFile pXmlFile,
                                            final String pContainerTagPath,
                                            final String pRowTagName) {
        this(new XmlTagPath(pXmlFile, pContainerTagPath), pRowTagName);
    }
View Full Code Here

TOP

Related Classes of org.mevenide.idea.psi.util.XmlTagPath

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.