Esempio n. 1
0
 public void CopyTo([NotNull] QueueItem to)
 {
     to.FileName = FileName;
     to.Position = Position;
     to.Line     = Line;
 }
 void Navigate(QueueItem to)
 {
     executableStatus = to;
     UpdateMenuItems();
     PluginBase.MainForm.OpenEditableDocument(to.FileName, false);
     var position = to.Position;
     PluginBase.MainForm.CurrentDocument.SciControl.SetSel(position, position);
     executableStatus = null;
 }
Esempio n. 3
0
 public bool Equals([NotNull] QueueItem to) => Equals(to.FileName, to.Position, to.Line);
 /// <summary>
 /// Handles the incoming events
 /// </summary>
 public void HandleEvent(object sender, NotifyEvent e, HandlingPriority priority)
 {
     if (e.Type == EventType.Command && ((DataEvent) e).Action == ProjectManagerEvents.Project)
     {
         behavior.Clear();
         sciPrevPosition = 0;
         executableStatus = null;
         UpdateMenuItems();
         return;
     }
     if (e.Type != EventType.FileSwitch) return;
     var doc = PluginBase.MainForm.CurrentDocument;
     if (!doc.IsEditable) return;
     var sci = doc.SciControl;
     sci.Modified -= SciControlModified;
     sci.Modified += SciControlModified;
     sci.UpdateUI -= SciControlUpdateUI;
     sci.UpdateUI += SciControlUpdateUI;
     SciControlUpdateUI(sci);
 }