- HYDROData_Iterator anIt( doc(), theKind );
- for( ; anIt.More(); anIt.Next() )
- {
- if( anIt.Current()->GetName() == theName )
- return anIt.Current();
- }
- return Handle_HYDROData_Object();
+ // Abort transaction in the model document
+ doc()->AbortOperation();
+}
+
+void HYDROGUI_Operation::commitDocOperation()
+{
+ // Commit transaction in the model document
+ doc()->CommitOperation( HYDROGUI_Tool::ToExtString( getName() ) );
+}
+
+Handle_HYDROData_Document HYDROGUI_Operation::doc() const
+{
+ return HYDROData_Document::Document( myModule->getStudyId() );