Failed to get the xml catalog user specified entries from the eclipse preference [message #207311] |
Wed, 23 January 2008 03:22  |
Eclipse User |
|
|
|
Hello All,
I am having the code to get the schema url from the xml catalog if i have
entered through plugin(Plugin specified entries).code is given below
List entries = new ArrayList();
ICatalog defaultCatalog =
XMLCorePlugin.getDefault().getDefaultXMLCatalog();
if (defaultCatalog != null) {
// Process default catalog
ICatalogEntry[] defaults = defaultCatalog.getCatalogEntries();
for (int entry = 0; entry < defaults.length; entry++) {
entries.add(defaults[entry]);
}
// Process declared OASIS nextCatalogs catalog
INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
for (int nextCatalog = 0; nextCatalog < nextCatalogs.length;
nextCatalog++) {
ICatalog catalog = nextCatalogs[nextCatalog].getReferencedCatalog();
ICatalogEntry[] entries3 = catalog.getCatalogEntries();
for (int entry = 0; entry < nextEntries.length; entry++) {
entries.add(nextEntries[entry]);
}
}
}
but if i m entering through user specified enteries this code is not
working.
Can any body help me in this regard of how to get the schema url in JAVA
if i'll make user specified entries dynamically.
Thanks in advance
Debasis
|
|
|
|
Powered by
FUDForum. Page generated in 0.22641 seconds