Ejemplo n.º 1
0
 void PerspectiveDeactivated(berry::IWorkbenchPage::Pointer /*page*/,
  berry::IPerspectiveDescriptor::Pointer perspective)
 {
   QAction* action = windowAdvisor->mapPerspIdToAction[perspective->GetId()];
   if (action)
   {
     action->setChecked(false);
   }
 }
 void PerspectiveActivated(const berry::IWorkbenchPage::Pointer& /*page*/,
   const berry::IPerspectiveDescriptor::Pointer& perspective) override
 {
   QAction* action = windowAdvisor->mapPerspIdToAction[perspective->GetId()];
   if (action)
   {
     action->setChecked(true);
   }
 }
Ejemplo n.º 3
0
bool comparePerspectives(const berry::IPerspectiveDescriptor::Pointer& a, const berry::IPerspectiveDescriptor::Pointer& b)
{
    if (a.IsNull() || b.IsNull())
        return false;
    return a->GetLabel().compare(b->GetLabel()) < 0;
}