GoTo() 공개 메소드

public GoTo ( string file, int line, int column ) : void
file string
line int
column int
리턴 void
예제 #1
0
 private void goToType(ITypeCache cache, Editor editor)
 {
     _ctx.Post((s) =>
         {
             if (_gotoType == null || !_gotoType.Visible)
             {
                 _gotoType = new TypeSearchForm(
                     cache,
                     (file, line, column) => { editor.GoTo(file, line, column); },
                     () => { new System.Threading.Thread(() => { System.Threading.Thread.Sleep(1000); editor.SetFocus(); }).Start(); });
                 _gotoType.Show(this);
             }
             setToForeground(_gotoType);
         }, null);
 }
예제 #2
0
 private void explore(ITypeCache cache, Editor editor)
 {
     _ctx.Post((s) =>
         {
             if (_exploreForm == null || !_exploreForm.Visible)
             {
                 _exploreForm = new FileExplorer(
                     cache,
                     _defaultLanguage,
                     (file, line, column) => { editor.GoTo(file, line, column); },
                     () => { editor.SetFocus(); });
                 _exploreForm.Show(this);
             }
             setToForeground(_exploreForm);
         }, null);
 }
예제 #3
0
파일: TrayForm.cs 프로젝트: acken/OpenIDE
 private void goToType(ITypeCache cache, Editor editor)
 {
     Logger.Write("Preparing to open type search");
     _ctx.Post((s) =>
         {
             Logger.Write("Opening type search");
             try {
                 if (_gotoType == null || !_gotoType.Visible)
                 {
                     Logger.Write("Creating typesearch form");
                     _gotoType = new TypeSearchForm(
                         cache,
                         (file, line, column) => { editor.GoTo(file, line, column); },
                         () => { new System.Threading.Thread(() => { System.Threading.Thread.Sleep(1000); editor.SetFocus(); }).Start(); });
                     _gotoType.Show(this);
                 }
                 setToForeground(_gotoType);
             } catch (Exception ex) {
                 Logger.Write(ex);
             }
         }, null);
 }