private void init(URL a_url) { m_glyph = loadGlyphElement(a_url); ModuleManager.getSingletonInstance().clear(); // m_display = Engine.getSingletonInstance().getDisplay(); m_history = new HistoryList(this); m_history.record("loadFile"); m_savedTime = m_modifiedTime; }
private boolean isCircularInclude(String a_href) { if (getShortFileName().equals(a_href)) { return true; } // if ModuleManager manager = ModuleManager.getSingletonInstance(); XInclude[] includes = m_glyph.getBody().getInclude(); int i; for (i = 0; i < includes.length; i++) { XInclude include = includes[i]; GlyphFile child = manager.getGlyphFile(include.getHref()); if (child.isCircularInclude(a_href)) { return true; } // if } // for i return false; }
public void restore(Memento a_memento) { m_glyph = loadGlyphElement(a_memento.getData()); ModuleManager.getSingletonInstance().clear(); }