Package org.mevenide.idea.psi.support

Source Code of org.mevenide.idea.psi.support.AbstractPsiNamedPropertyObservable

package org.mevenide.idea.psi.support;

import com.intellij.psi.xml.XmlFile;
import org.mevenide.idea.psi.util.PsiNamedPropertyChangeListener;

/**
* @author Arik
*/
public abstract class AbstractPsiNamedPropertyObservable
        extends AbstractPsiPropertyObservable<PsiNamedPropertyChangeListener> {
    public AbstractPsiNamedPropertyObservable(final XmlFile pXmlFile) {
        this(pXmlFile, null);
    }

    public AbstractPsiNamedPropertyObservable(final XmlFile pXmlFile,
                                              final String pPrefix) {
        super(pXmlFile, new PsiNamedPropertyChangeListener(pPrefix));
    }

    protected void registerTag(final String pPropertyName, final String pPath) {
        psi.registerTag(pPropertyName, getXmlFile(), pPath);
    }
}
TOP

Related Classes of org.mevenide.idea.psi.support.AbstractPsiNamedPropertyObservable

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.