39 this->setParent(static_cast<QWidget*>(m_Window->GetShell()->GetControl()));
40 this->setText(
"&XNAT");
41 this->setToolTip(
"Open XNAT tool");
47 this->connect(
this, SIGNAL(triggered(
bool)),
this, SLOT(
Run()));
53 if (m_Window->GetActivePage().
IsNull())
55 QString defaultPerspId = m_Window->GetWorkbench()->GetPerspectiveRegistry()->GetDefaultPerspective();
56 m_Window->GetWorkbench()->ShowPerspective(defaultPerspId, m_Window);
59 QList<berry::IEditorReference::Pointer> editors =
67 m_Window->GetActivePage()->OpenEditor(editorInput,
"org.mitk.editors.xnat.browser");
73 m_Window->GetActivePage()->Activate(reuseEditor);
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
QmitkOpenXnatEditorAction(berry::IWorkbenchWindow::Pointer window)
static const int MATCH_ID