@ -50,9 +50,10 @@ namespace SearchAndReplace
IDocument document ;
IDocument document ;
string fileName = files [ curIndex ] . ToString ( ) ;
string fileName = files [ curIndex ] . ToString ( ) ;
foreach ( IViewContent content in WorkbenchSingleton . Workbench . ViewContentCollection ) {
foreach ( IViewContent content in WorkbenchSingleton . Workbench . ViewContentCollection ) {
// WINDOWS DEPENDENCY : ToUpper
if ( content . FileName ! = null & &
if ( content . FileName ! = null & &
Path . GetFullPath ( content . FileName ) . ToUpper ( ) = = Path . GetFullPath ( fileName ) . ToUpper ( ) ) {
FileUtility . IsEqualFileName ( content . FileName , fileName ) & &
content is ITextEditorControlProvider )
{
document = ( ( ( ITextEditorControlProvider ) content ) . TextEditorControl ) . Document ;
document = ( ( ( ITextEditorControlProvider ) content ) . TextEditorControl ) . Document ;
return new ProvidedDocumentInformation ( document ,
return new ProvidedDocumentInformation ( document ,
fileName ,
fileName ,