Ignore:
Timestamp:
2006-01-17T10:31:10+13:00 (18 years ago)
Author:
mdewsnip
Message:

Tidied up plugin and classifier parsing and error output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r11038 r11046  
    481481        }
    482482
    483         document = CollectionDesignManager.XMLStringToDOM(xml,plugin);
    484     }
    485     catch (Exception error) {
    486         System.err.println("Failed when trying to parse: " + plugin);
    487         error.printStackTrace();
    488     }
    489     if(document != null) {
     483        if (xml.length() > 0) {
     484        document = CollectionDesignManager.XMLStringToDOM(xml, plugin);
     485        }
     486        else {
     487        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.PlugInManager.PlugIn_XML_Parse_Failed", plugin), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
     488        }
     489    }
     490    catch (Exception exception) {
     491        DebugStream.println("Failed when trying to parse: " + plugin);
     492        DebugStream.printStackTrace(exception);
     493    }
     494
     495    if (document != null) {
    490496        parseXML(document.getDocumentElement());
    491497    }
     
    522528    }
    523529    }
    524 
    525530
    526531
Note: See TracChangeset for help on using the changeset viewer.