Example #1
0
void CheckWellFormed(const wxExFileName& fn)
{
  if (fn.GetLexer().GetLanguage() == "xml")
  {
    if (!wxXmlDocument(fn.GetFullPath()).IsOk())
    {
      wxLogStatus("not a valid XML document");
    }
  }
}
Example #2
0
bool wxExFrame::OpenFile(
    const wxExFileName& filename,
    const wxExVCSEntry& vcs,
    long flags)
{
    wxExSTC* stc = GetSTC();

    if (stc != NULL)
    {
        stc->SetText(vcs.GetOutput());

        wxExVCSCommandOnSTC(
            vcs.GetCommand(), filename.GetLexer(), stc);
    }
    else
    {
        wxLogMessage(vcs.GetOutput());
    }

    return true;
}