MCPcopy Create free account
hub / github.com/MITK/MITK / foreach

Function foreach

Plugins/org.blueberry.ui.qt/src/internal/berryCommandService.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 */
82 const QList<Command::Pointer> commands = commandManager->GetAllCommands();
83 foreach (const Command::Pointer& command, commands)
84 {
85 const QList<QString> stateIds = command->GetStateIds();
86 foreach(const QString& stateId, stateIds)
87 {
88 const State::Pointer state = command->GetState(stateId);
89 if (PersistentState::Pointer persistentState = state.Cast<PersistentState>())
90 {
91 if (persistentState->ShouldPersist())
92 {
93 persistentState->Save(WorkbenchPlugin::GetDefault()->GetPreferences(),
94 CreatePreferenceKey(command, stateId));
95 }
96 }
97 }
98 }
99 commandCallbacks.clear();
100}
101

Callers

nothing calls this directly

Calls 11

GetDefaultFunction · 0.85
GetPointerMethod · 0.80
nextMethod · 0.80
RunFunction · 0.50
GetStateIdsMethod · 0.45
GetStateMethod · 0.45
ShouldPersistMethod · 0.45
SaveMethod · 0.45
GetPreferencesMethod · 0.45
GetParametersMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected