1 11 12 package org.eclipse.pde.internal.core.plugin; 13 14 import org.w3c.dom.Element ; 15 import org.xml.sax.SAXException ; 16 17 21 public class AbbreviatedPluginHandler extends PluginHandler { 22 23 private String [] fExtensionPointIDs; 24 25 29 public AbbreviatedPluginHandler(String [] extensionPointIDs) { 30 super(true); 31 32 fExtensionPointIDs = extensionPointIDs; 33 } 34 35 38 protected boolean isInterestingExtension(Element element) { 39 String point = element.getAttribute("point"); for (int i = 0; i < fExtensionPointIDs.length; i++) { 41 if (point.equals(fExtensionPointIDs[i])) { 42 return true; 43 } 44 } 45 return false; 46 } 47 48 51 public void characters(char[] characters, int start, int length) 52 throws SAXException { 53 processCharacters(characters, start, length); 54 } 55 56 } 57 | Popular Tags |