Example #1
0
Core::IFile *PlainTextEditorFactory::open(const QString &fileName)
{
    Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
    return iface ? iface->file() : 0;
}
Core::IFile *FormEditorFactory::open(const QString &fileName)
{
    Core::IEditor *iface = m_core->editorManager()->openEditor(fileName, kind());
    return iface ? iface->file() : 0;
}