Public Member Functions

QmitkCommonActivator Class Reference
[Internal]

The plug-in activator for the StateMachine. More...

#include <QmitkCommonActivator.h>

Inheritance diagram for QmitkCommonActivator:
Inheritance graph
[legend]
Collaboration diagram for QmitkCommonActivator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Start (berry::IBundleContext::Pointer context)

Detailed Description

The plug-in activator for the StateMachine.

When the plug-in is started by the framework, it initializes StateMachine specific things.

Definition at line 32 of file QmitkCommonActivator.h.


Member Function Documentation

void QmitkCommonActivator::Start ( berry::IBundleContext::Pointer  context )

Sets default StateMachine to EventMapper.

Reimplemented from berry::Plugin.

Definition at line 27 of file QmitkCommonActivator.cpp.

References mitk::GlobalInteraction::GetInstance(), and QmitkRegisterClasses().

{ 
  QFile file(":/org.mitk.gui.qt.common/StateMachine.xml");
  if(file.exists() && file.open(QIODevice::ReadOnly | QIODevice::Text) )
  {
    QByteArray contents = file.readAll();
    QString string(contents);
    file.close();
    mitk::GlobalInteraction::GetInstance()->Initialize("global", string.toStdString());
  }
  else throw std::exception();

  QmitkRegisterClasses();

}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines