34 throw ExecutionException(
"No " + name +
35 " found while executing " + event->GetCommand()->GetId());
39 const QString& name,
const QString& expectedType,
40 const QString& wrongType)
42 throw ExecutionException(
"Incorrect type for "
44 +
" found while executing "
45 + event->GetCommand()->GetId()
46 +
", expected " + expectedType
47 +
" found " + wrongType);
67 HandlerUtil::NoVariableFound(event, name);
99 "StringVectorType", o->GetClassName());
139 "QString", o->GetClassName());
159 "IWorkbenchPart", o->GetClassName());
179 "QString", o->GetClassName());
200 "IWorkbenchSitePart", o->GetClassName());
220 HandlerUtil::IncorrectTypeFound(event,
243 "StringVectorType", o->GetClassName());
263 HandlerUtil::IncorrectTypeFound(event,
265 "ISelection", o->GetClassName());
285 HandlerUtil::IncorrectTypeFound(event,
307 HandlerUtil::IncorrectTypeFound(event,
330 "ISelection", o->GetClassName());
363 throw ExecutionException(
"The command does not have a toggle state");
367 bool oldValue = boolObj->GetValue();
369 state->SetValue(newValue);
374 throw ExecutionException(
"The command's toggle state doesn't contain a boolean value");
381 if (parameter.isNull())
383 throw ExecutionException(
"The event does not have the radio state parameter");
390 throw ExecutionException(
"The command does not have a radio state");
394 return parameter == *strObj;
398 throw ExecutionException(
"The command's radio state doesn't contain a String value");
407 throw ExecutionException(
"The command does not have a radio state");
410 state->SetValue(newValue);
berry::SmartPointer< const Self > ConstPointer
static IWorkbenchPart::Pointer GetActivePart(const ExecutionEvent::ConstPointer &event)
static Object::ConstPointer GetShowInInputChecked(const ExecutionEvent::ConstPointer &event)
static Object::ConstPointer GetVariable(const ExecutionEvent::ConstPointer &event, const QString &name)
static void UpdateRadioState(const SmartPointer< Command > &command, const QString &newState)
static const QString ACTIVE_PART_NAME()
static StringVectorType::ConstPointer GetActiveContexts(const ExecutionEvent::ConstPointer &event)
static const QString SHOW_IN_INPUT()
static IWorkbenchWindow::Pointer GetActiveWorkbenchWindowChecked(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetActiveMenuEditorInput(const ExecutionEvent::ConstPointer &event)
static ObjectString::ConstPointer GetActivePartIdChecked(const ExecutionEvent::ConstPointer &event)
static IWorkbenchPartSite::Pointer GetActiveSite(const ExecutionEvent::ConstPointer &event)
static bool MatchesRadioState(const SmartPointer< ExecutionEvent > &event)
static const QString ACTIVE_CONTEXT_NAME()
static ObjectString::ConstPointer GetActivePartId(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetActiveMenuSelection(const ExecutionEvent::ConstPointer &event)
static const QString STATE_ID
static IWorkbenchWindow::Pointer GetActiveWorkbenchWindow(const ExecutionEvent::ConstPointer &event)
static const QString STATE_ID
static const QString ACTIVE_CURRENT_SELECTION_NAME()
static const QString ACTIVE_MENU_SELECTION_NAME()
static StringVectorType::ConstPointer GetActiveMenusChecked(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetActiveMenuEditorInputChecked(const ExecutionEvent::ConstPointer &event)
static Object::ConstPointer GetVariableChecked(const ExecutionEvent::ConstPointer &event, const QString &name)
static const QString ACTIVE_MENU_NAME()
berry::SmartPointer< Self > Pointer
static const QString PARAMETER_ID
static IWorkbenchPart::Pointer GetActivePartChecked(const ExecutionEvent::ConstPointer &event)
static const QString ACTIVE_MENU_EDITOR_INPUT_NAME()
static const QString ACTIVE_EDITOR_ID_NAME()
static const QString ACTIVE_WORKBENCH_WINDOW_NAME()
static const QString ACTIVE_PART_ID_NAME()
static ISelection::ConstPointer GetShowInSelectionChecked(const ExecutionEvent::ConstPointer &event)
static ObjectString::ConstPointer GetActiveEditorIdChecked(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetCurrentSelection(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetCurrentSelectionChecked(const ExecutionEvent::ConstPointer &event)
static ObjectString::ConstPointer GetActiveEditorId(const ExecutionEvent::ConstPointer &event)
ObjectType * GetPointer() const
static bool ToggleCommandState(const SmartPointer< Command > &command)
static ISelection::ConstPointer GetActiveMenuSelectionChecked(const ExecutionEvent::ConstPointer &event)
static StringVectorType::ConstPointer GetActiveMenus(const ExecutionEvent::ConstPointer &event)
SmartPointer< Other > Cast() const
static const QString SHOW_IN_SELECTION()
static const QString ACTIVE_SITE_NAME()
static IWorkbenchPartSite::Pointer GetActiveSiteChecked(const ExecutionEvent::ConstPointer &event)
static Object::ConstPointer GetShowInInput(const ExecutionEvent::ConstPointer &event)
static StringVectorType::ConstPointer GetActiveContextsChecked(const ExecutionEvent::ConstPointer &event)
static ISelection::ConstPointer GetShowInSelection(const ExecutionEvent::ConstPointer &event)