hutneditor.openHutnReader(new StringReader (String.valueOf(data)), "");
hutntext.setStyledInput(String.valueOf(data), "XMI-Light representation");
} catch (Exception ex){
output.addLine ("Error reading file: " + _inputFile.getAbsolutePath() + " - " + ex.getMessage ());
}
XMLUtility util = new XMLUtility (output);
util.addLookupPath(UMTMain.resource_dir);
if (!UMTMain.environmentIsEmbedded())
util.doSAXParseValidate(hutntext.getReader());
hutneditor.setLoading(false);
} else if (name.equalsIgnoreCase("openXmiLightString")) {
hutneditor.setLoading(true);
Reader r = new StringReader (_buffer);
hutneditor.openHutnReader(r, "");
hutntext.setStyledInput(_buffer, "Reversed XMI Light");
XMLUtility util = new XMLUtility (output);
util.addLookupPath(UMTMain.resource_dir);
if (!UMTMain.environmentIsEmbedded())
util.doSAXParseValidate(hutntext.getReader());
hutneditor.setLoading(false);
}
setPositionForTextView(0);
} catch (Exception ex) {
hutneditor.setLoading(false);