43 this->setParent(static_cast<QWidget*>(m_Window->GetShell()->GetControl()));
44 this->setText(
"&XNAT");
45 this->setToolTip(
"Open XNAT tool");
51 this->connect(
this, SIGNAL(triggered(
bool)),
this, SLOT(
Run()));
57 if (m_Window->GetActivePage().
IsNull())
59 QString defaultPerspId = m_Window->GetWorkbench()->GetPerspectiveRegistry()->GetDefaultPerspective();
60 m_Window->GetWorkbench()->ShowPerspective(defaultPerspId, m_Window);
63 QList<berry::IEditorReference::Pointer> editors =
71 m_Window->GetActivePage()->OpenEditor(editorInput,
"org.mitk.editors.xnat.browser");
77 m_Window->GetActivePage()->Activate(reuseEditor);
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
QmitkOpenXnatEditorAction(berry::IWorkbenchWindow::Pointer window)
static const int MATCH_ID