|
@ -38,6 +38,13 @@ CodeEditorExtensionManager::CodeEditorExtensionManager() |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CodeEditorExtensionManager::~CodeEditorExtensionManager() |
|
|
|
|
|
{ |
|
|
|
|
|
for (int k = 0; k < m_features.length(); k++){ |
|
|
|
|
|
delete m_features.at(k); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void CodeEditorExtensionManager::loadEditor(QQuickItem* _editor) |
|
|
void CodeEditorExtensionManager::loadEditor(QQuickItem* _editor) |
|
|
{ |
|
|
{ |
|
|
if (!_editor) |
|
|
if (!_editor) |
|
@ -61,10 +68,11 @@ void CodeEditorExtensionManager::initExtensions() |
|
|
{ |
|
|
{ |
|
|
try{ |
|
|
try{ |
|
|
//only one for now
|
|
|
//only one for now
|
|
|
ConstantCompilation* compil = new ConstantCompilation(m_doc); |
|
|
ConstantCompilation* m_constantCompilation = new ConstantCompilation(m_doc); |
|
|
if (compil->tabUrl() != "") |
|
|
if (m_constantCompilation->tabUrl() != "") |
|
|
compil->addContentOn(m_tabView); |
|
|
m_constantCompilation->addContentOn(m_tabView); |
|
|
compil->start(); |
|
|
m_constantCompilation->start(); |
|
|
|
|
|
m_features.append(m_constantCompilation); |
|
|
} |
|
|
} |
|
|
catch (dev::Exception const& exception){ |
|
|
catch (dev::Exception const& exception){ |
|
|
qDebug() << "unable to load extensions: "; |
|
|
qDebug() << "unable to load extensions: "; |
|
|