com.intellij.xml.impl.schema.AnyXmlAttributeDescriptor Java Examples

The following examples show how to use com.intellij.xml.impl.schema.AnyXmlAttributeDescriptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WeexTagDescriptor.java    From weex-language-support with MIT License 5 votes vote down vote up
@Override
public XmlAttributeDescriptor[] getAttributesDescriptors(@Nullable XmlTag context) {
    XmlAttributeDescriptor[] attributeDescriptors = HtmlNSDescriptorImpl.getCommonAttributeDescriptors(context);
    XmlAttributeDescriptor[] customAttributes = new XmlAttributeDescriptor[1];
    customAttributes[0] = new AnyXmlAttributeDescriptor("weex");
    return ArrayUtil.mergeArrays(attributeDescriptors, customAttributes);
}
 
Example #2
Source File: RTClassTagDescriptor.java    From react-templates-plugin with MIT License 5 votes vote down vote up
@Nullable
    @Override
    public XmlAttributeDescriptor getAttributeDescriptor(@NonNls final String attributeName, @Nullable XmlTag context) {
        return new AnyXmlAttributeDescriptor(attributeName);
//        return ContainerUtil.find(getAttributesDescriptors(context), new Condition<XmlAttributeDescriptor>() {
//            @Override
//            public boolean value(XmlAttributeDescriptor descriptor) {
//                return attributeName.equals(descriptor.getName());
//            }
//        });
    }
 
Example #3
Source File: RTAttributeDescriptorsProvider.java    From react-templates-plugin with MIT License 5 votes vote down vote up
@Nullable
@Override
public XmlAttributeDescriptor getAttributeDescriptor(final String attrName, XmlTag xmlTag) {
    if (xmlTag != null) {
        if (RTAttributes.isRTAttribute(attrName)) {
            return new AnyXmlAttributeDescriptor(attrName);
        }
    }
    return null;
}
 
Example #4
Source File: RTClassTagDescriptor.java    From react-templates-plugin with MIT License 5 votes vote down vote up
@Nullable
    @Override
    public XmlAttributeDescriptor getAttributeDescriptor(@NonNls final String attributeName, @Nullable XmlTag context) {
        return new AnyXmlAttributeDescriptor(attributeName);
//        return ContainerUtil.find(getAttributesDescriptors(context), new Condition<XmlAttributeDescriptor>() {
//            @Override
//            public boolean value(XmlAttributeDescriptor descriptor) {
//                return attributeName.equals(descriptor.getName());
//            }
//        });
    }
 
Example #5
Source File: RTAttributeDescriptorsProvider.java    From react-templates-plugin with MIT License 5 votes vote down vote up
@Nullable
@Override
public XmlAttributeDescriptor getAttributeDescriptor(final String attrName, XmlTag xmlTag) {
    if (xmlTag != null) {
        if (RTAttributes.isRTAttribute(attrName)) {
            return new AnyXmlAttributeDescriptor(attrName);
        }
    }
    return null;
}