@@ -77,8 +77,8 @@ internal static void CommandMenuInit()
7777
7878 internal static void SetToolBarIcon ( )
7979 {
80- if ( ! string . IsNullOrEmpty ( BNpp . NotepadPP . NppBinVersion )
81- && int . TryParse ( BNpp . NotepadPP . NppBinVersion . Split ( '.' ) [ 0 ] , out int majorVersion )
80+ if ( ! string . IsNullOrEmpty ( Npp . NotepadPP . NppBinVersion )
81+ && int . TryParse ( Npp . NotepadPP . NppBinVersion . Split ( '.' ) [ 0 ] , out int majorVersion )
8282 && majorVersion >= 8 )
8383 {
8484 toolbarIconsWithDarkMode tbIcons = new toolbarIconsWithDarkMode
@@ -174,57 +174,57 @@ public static void ShowTheDialog()
174174
175175 dialog = new RegExToolDialog
176176 {
177- GetText = ( ) => BNpp . Text ,
177+ GetText = ( ) => Npp . Text ,
178178
179179 SetText = text =>
180180 {
181181 if ( Keyboard . IsKeyDown ( Key . LeftCtrl ) || Keyboard . IsKeyDown ( Key . RightCtrl ) )
182182 {
183- BNpp . NotepadPP . FileNew ( ) ;
183+ Npp . NotepadPP . FileNew ( ) ;
184184 }
185185
186- BNpp . Text = text ;
186+ Npp . Text = text ;
187187 } ,
188188
189189 SetTextInNew = text =>
190190 {
191- BNpp . NotepadPP . FileNew ( ) ;
191+ Npp . NotepadPP . FileNew ( ) ;
192192
193- BNpp . Text = text ;
193+ Npp . Text = text ;
194194 } ,
195195
196- GetSelectedText = ( ) => BNpp . SelectedText ,
196+ GetSelectedText = ( ) => Npp . SelectedText ,
197197
198- SetPosition = ( index , length ) => BNpp . SelectTextAndShow ( index , index + length ) ,
198+ SetPosition = ( index , length ) => Npp . SelectTextAndShow ( index , index + length ) ,
199199
200- SetSelection = ( index , length ) => BNpp . AddSelection ( index , index + length ) ,
200+ SetSelection = ( index , length ) => Npp . AddSelection ( index , index + length ) ,
201201
202- GetSelectionStartIndex = ( ) => BNpp . SelectionStart ,
202+ GetSelectionStartIndex = ( ) => Npp . SelectionStart ,
203203
204- GetSelectionLength = ( ) => BNpp . SelectionLength ,
204+ GetSelectionLength = ( ) => Npp . SelectionLength ,
205205
206- SaveCurrentDocument = ( ) => BNpp . NotepadPP . SaveCurrentFile ( ) ,
206+ SaveCurrentDocument = ( ) => Npp . NotepadPP . SaveCurrentFile ( ) ,
207207
208- SetCurrentTabInCSharpHighlighting = ( ) => BNpp . NotepadPP . SetCurrentLanguage ( LangType . L_CS ) ,
208+ SetCurrentTabInCSharpHighlighting = ( ) => Npp . NotepadPP . SetCurrentLanguage ( LangType . L_CS ) ,
209209
210210 TryOpen = ( fileName , onlyIfAlreadyOpen ) =>
211211 {
212212 try
213213 {
214214 bool result = false ;
215215
216- if ( BNpp . NotepadPP . CurrentFileName . Equals ( fileName , StringComparison . OrdinalIgnoreCase ) )
216+ if ( Npp . NotepadPP . CurrentFileName . Equals ( fileName , StringComparison . OrdinalIgnoreCase ) )
217217 {
218218 result = true ;
219219 }
220- else if ( BNpp . NotepadPP . GetAllOpenedDocuments . Any ( s => s . Equals ( fileName , StringComparison . OrdinalIgnoreCase ) ) )
220+ else if ( Npp . NotepadPP . GetAllOpenedDocuments . Any ( s => s . Equals ( fileName , StringComparison . OrdinalIgnoreCase ) ) )
221221 {
222- BNpp . NotepadPP . ShowTab ( fileName ) ;
222+ Npp . NotepadPP . ShowTab ( fileName ) ;
223223 result = true ;
224224 }
225225 else if ( ! onlyIfAlreadyOpen )
226226 {
227- result = BNpp . NotepadPP . OpenFile ( fileName ) ;
227+ result = Npp . NotepadPP . OpenFile ( fileName ) ;
228228 }
229229 else
230230 {
@@ -245,7 +245,7 @@ public static void ShowTheDialog()
245245 }
246246 } ,
247247
248- GetCurrentFileName = ( ) => BNpp . NotepadPP . CurrentFileName
248+ GetCurrentFileName = ( ) => Npp . NotepadPP . CurrentFileName
249249 } ;
250250
251251 dialog . Show ( ) ;
0 commit comments