Author: scabanovich
Date: 2010-09-08 09:10:20 -0400 (Wed, 08 Sep 2010)
New Revision: 24812
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java
Log:
https://jira.jboss.org/browse/JBIDE-7026
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java 2010-09-08
12:31:17 UTC (rev 24811)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java 2010-09-08
13:10:20 UTC (rev 24812)
@@ -253,13 +253,8 @@
}
XMLReader newInstance() throws SAXException {
- Bundle b = Platform.getBundle("org.apache.xerces");
- if(b == null) {
- System.out.println("Cannot find plugin org.apache.xerces");
- throw new SAXException("Cannot find plugin org.apache.xerces");
- }
try {
- return (XMLReader) b.loadClass(DEFAULT_SAX_PARSER_CLASS_NAME).newInstance();
+ return (XMLReader)
ModelPlugin.getDefault().getBundle().loadClass(DEFAULT_SAX_PARSER_CLASS_NAME).newInstance();
} catch (ClassNotFoundException e1) {
throw new SAXException("SAX2 driver class " +
DEFAULT_SAX_PARSER_CLASS_NAME +
" not found", e1);