1 11 package org.eclipse.pde.internal.core.builders; 12 13 import org.eclipse.core.resources.IFile; 14 import org.w3c.dom.Attr ; 15 import org.w3c.dom.Element ; 16 17 18 public class FragmentErrorReporter extends PluginBaseErrorReporter { 19 20 public FragmentErrorReporter(IFile file) { 21 super(file); 22 } 23 24 27 protected void validateTopLevelAttributes(Element element) { 28 super.validateTopLevelAttributes(element); 29 30 if (assertAttributeDefined(element, "plugin-id", CompilerFlags.ERROR)) validatePluginIDRef(element, element.getAttributeNode("plugin-id")); 33 if (assertAttributeDefined(element, "plugin-version", CompilerFlags.ERROR)) validateVersionAttribute(element, element.getAttributeNode("plugin-version")); 36 Attr attr = element.getAttributeNode("match"); if (attr != null) 38 validateMatch(element, attr); 39 } 40 41 protected String getRootElementName() { 42 return "fragment"; } 44 45 } 46 | Popular Tags |