Core::IEditor *GLSLEditorEditable::duplicate(QWidget *parent)
{
    GLSLTextEditorWidget *newEditor = new GLSLTextEditorWidget(parent);
    newEditor->duplicateFrom(editorWidget());
    GLSLEditorPlugin::instance()->initializeEditor(newEditor);
    return newEditor->editor();
}
Core::IEditor *GLSLEditorFactory::createEditor(QWidget *parent)
{
    GLSLTextEditorWidget *rc = new GLSLTextEditorWidget(parent);
    GLSLEditorPlugin::initializeEditor(rc);
    return rc->editor();
}