Package com.jetbrains.lang.dart.psi

Source Code of com.jetbrains.lang.dart.psi.DartPackagePathReferenceContributor

package com.jetbrains.lang.dart.psi;

import com.intellij.psi.PsiReferenceContributor;
import com.intellij.psi.PsiReferenceRegistrar;
import com.intellij.psi.filters.ElementFilter;
import com.intellij.xml.util.XmlUtil;
import org.jetbrains.annotations.NotNull;

/**
* @author Dennis.Ushakov
*/
public class DartPackagePathReferenceContributor extends PsiReferenceContributor {
  @Override
  public void registerReferenceProviders(@NotNull PsiReferenceRegistrar registrar) {
    DartPackagePathReferenceProvider provider = new DartPackagePathReferenceProvider();
    String[] htmlAttrs = new String[] {"href", "src"};
    ElementFilter htmlFilter = DartPackagePathReferenceProvider.getFilter();
    XmlUtil.registerXmlAttributeValueReferenceProvider(registrar, htmlAttrs, htmlFilter, false, provider, PsiReferenceRegistrar.HIGHER_PRIORITY);
  }
}
TOP

Related Classes of com.jetbrains.lang.dart.psi.DartPackagePathReferenceContributor

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.