MCPcopy Create free account
hub / github.com/SpartanJ/eepp / runCommand

Method runCommand

src/tools/ecode/ecode.cpp:747–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void App::runCommand( const std::string& command ) {
748 if ( mSplitter->getCurWidget() && mSplitter->getCurWidget()->isType( UI_TYPE_CODEEDITOR ) ) {
749 UICodeEditor* editor = mSplitter->getCurWidget()->asType<UICodeEditor>();
750 editor->getDocument().execute( command, editor );
751 } else if ( mSplitter->getCurWidget() &&
752 mSplitter->getCurWidget()->isType( UI_TYPE_TERMINAL ) ) {
753 if ( !mSplitter->getCurWidget()->asType<UITerminal>()->execute( command ) )
754 mMainLayout->execute( command );
755 } else {
756 mMainLayout->execute( command );
757 }
758}
759
760bool App::commandExists( const std::string& command ) const {
761 if ( mSplitter->getCurWidget() && mSplitter->getCurWidget()->isType( UI_TYPE_CODEEDITOR ) ) {

Callers 6

UniversalLocatorMethod · 0.45
UIWelcomeScreenMethod · 0.45
updateSidePanelTabMethod · 0.45
buildSidePanelTabMethod · 0.45
runMethod · 0.45
createContainerMethod · 0.45

Calls 4

getCurWidgetMethod · 0.80
getDocumentMethod · 0.80
isTypeMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected