30 throw ExecutionException(
"No " + name +
31 " found while executing " + event->GetCommand()->GetId());
35 const QString& name,
const QString& expectedType,
36 const QString& wrongType)
38 throw ExecutionException(
"Incorrect type for " 40 +
" found while executing " 41 + event->GetCommand()->GetId()
42 +
", expected " + expectedType
43 +
" found " + wrongType);
63 HandlerUtil::NoVariableFound(event, name);
95 "StringVectorType", o->GetClassName());
135 "QString", o->GetClassName());
155 "IWorkbenchPart", o->GetClassName());
175 "QString", o->GetClassName());
196 "IWorkbenchSitePart", o->GetClassName());
216 HandlerUtil::IncorrectTypeFound(event,
239 "StringVectorType", o->GetClassName());
259 HandlerUtil::IncorrectTypeFound(event,
261 "ISelection", o->GetClassName());
281 HandlerUtil::IncorrectTypeFound(event,
303 HandlerUtil::IncorrectTypeFound(event,
326 "ISelection", o->GetClassName());
359 throw ExecutionException(
"The command does not have a toggle state");
363 bool oldValue = boolObj->GetValue();
365 state->SetValue(newValue);
370 throw ExecutionException(
"The command's toggle state doesn't contain a boolean value");
377 if (parameter.isNull())
379 throw ExecutionException(
"The event does not have the radio state parameter");
386 throw ExecutionException(
"The command does not have a radio state");
390 return parameter == *strObj;
394 throw ExecutionException(
"The command's radio state doesn't contain a String value");
403 throw ExecutionException(
"The command does not have a radio state");
406 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)
SmartPointer< Other > Cast() const
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 Object::ConstPointer UNDEFINED_VARIABLE
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)
static bool ToggleCommandState(const SmartPointer< Command > &command)
static ISelection::ConstPointer GetActiveMenuSelectionChecked(const ExecutionEvent::ConstPointer &event)
static StringVectorType::ConstPointer GetActiveMenus(const ExecutionEvent::ConstPointer &event)
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)
ObjectType * GetPointer() const