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

Method commandExists

src/tools/ecode/ecode.cpp:760–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760bool App::commandExists( const std::string& command ) const {
761 if ( mSplitter->getCurWidget() && mSplitter->getCurWidget()->isType( UI_TYPE_CODEEDITOR ) ) {
762 UICodeEditor* editor = mSplitter->getCurWidget()->asType<UICodeEditor>();
763 if ( editor->getDocument().hasCommand( command ) )
764 return true;
765 }
766 return mMainLayout->getKeyBindings().hasCommand( command );
767}
768
769void App::onPluginEnabled( Plugin* plugin ) {
770 if ( mSplitter ) {

Callers

nothing calls this directly

Calls 4

getCurWidgetMethod · 0.80
getDocumentMethod · 0.80
isTypeMethod · 0.45
hasCommandMethod · 0.45

Tested by

no test coverage detected