Esempio n. 1
0
 public CodeView(CodeEditorWindow owner, ITextView textView)
 {
     m_Owner = owner;
     _textView = textView;
     _document = _textView.Document;
     var textFont = _textView.Appearance.Text.font;
     _font = textFont ? textFont : GUI.skin.font;
     _navigator = new DefaultTextStructureNavigator();
     Caret.Moved += EnsureCursorIsVisible;
     _textView.DoubleClicked = DoubleClickedDocument;
 }
 public static void OpenOrFocusCodeEditorWindow()
 {
     CodeEditorWindow.OpenOrFocusExistingWindow();
 }
Esempio n. 3
0
 public void NavigateTo(string fileName, IAnchor anchor = null)
 {
     CodeEditorWindow.OpenWindowFor(fileName, PositionFrom(anchor));
 }