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

Method setEditorCommandPalette

src/tools/ecode/commandpalette.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void CommandPalette::setEditorCommandPalette( const std::vector<std::string>& commandList,
50 const UI::KeyBindings& keybindings ) {
51 mCommandPaletteEditor = build( commandList, keybindings );
52 mEditorModel = CommandPaletteModel::create( 3, mCommandPaletteEditor );
53 if ( !mCurModel )
54 mCurModel = mEditorModel;
55}
56
57const std::shared_ptr<CommandPaletteModel>& CommandPalette::getCurModel() const {
58 return mCurModel;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected