00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef MITKDATASTORAGEEDITORINPUT_H_ 00019 #define MITKDATASTORAGEEDITORINPUT_H_ 00020 00021 #include <berryIEditorInput.h> 00022 #include <mitkIDataStorageReference.h> 00023 00024 #include "mitkGUICommonPluginDll.h" 00025 00026 namespace mitk 00027 { 00028 00029 class MITK_GUI_COMMON_PLUGIN DataStorageEditorInput : public berry::IEditorInput 00030 { 00031 public: 00032 berryObjectMacro(DataStorageEditorInput); 00033 00034 DataStorageEditorInput(); 00035 DataStorageEditorInput(IDataStorageReference::Pointer ref); 00036 00037 bool Exists() const; 00038 std::string GetName() const; 00039 std::string GetToolTipText() const; 00040 00041 IDataStorageReference::Pointer GetDataStorageReference(); 00042 00043 bool operator==(const berry::Object*) const; 00044 00045 private: 00046 00047 IDataStorageReference::Pointer m_DataStorageRef; 00048 }; 00049 00050 } 00051 00052 #endif /*MITKDATASTORAGEEDITORINPUT_H_*/