public static void AddIndicatorIcon(CWFile File, string IndicatorName, int line, Image marginIcon) { if (g.Project == null) throw new PluginException("Attempting to add indicator with no project open.", "AddIndicatorSpan"); CProject.File file = GetFile(File); if (file == null) throw new PluginException("Invalid CWFile instance -- file is not in project.", "AddIndicatorSpan"); // Check to see if the file is open UCEditor editor = GetEditor(file); if (editor == null) throw new PluginException("File specified is not open", "AddIndicatorSpan"); // Add the indicator editor.txtEditor.Document.Indicators.Add( new CIndicators.CustomIconIndicator(IndicatorName, marginIcon), line); }
public void AddIndicatorSpan(CWFile File, string IndicatorName, int startoffset, int endoffset, Image marginIcon, Color lineForeColor, Color lineBackColor, bool Bold, bool Italic, bool Underline) { __AddIndicatorSpan(File, IndicatorName, startoffset, endoffset, marginIcon, lineForeColor, lineBackColor, Bold, Italic, Underline); }
public void SaveFile(CWFile File) { __SaveFile(File); }
public void RemoveFile(CWFile FileInfo) { __RemoveFile(FileInfo); }
public void CloseFile(CWFile FileInfo, bool PromptForSaveIfDirty, bool ForceSaveIfDirty) { __CloseFile(FileInfo, PromptForSaveIfDirty, ForceSaveIfDirty); }
public bool IsFileOpen(CWFile File) { return(__IsFileOpen(File)); }
public void EditorSetCaret(CWFile File, int[] position, bool isOffset) { __EditorSetCaret(File, position, isOffset); }
public void CWFileAfterLoad(CWFile FileDetails) { }
public void CWFileAfterClose(CWFile FileDetails) { }
public void CWEditorTriggerFire(CWFile FileDetails, string TriggerName) { }
public static void SetFile(CWFile File) { AssertOpenProject("SetFile"); AssertValidFile(File, "SetFile"); CProject.File actfile = GetFile(File); actfile.FileIcon = File.file_icon; actfile.isDirty = File.is_dirty; actfile.isForcedReload = File.is_forced_reload; actfile.isForeign = File.is_foreign; actfile.isPendingReload = File.is_pending_reload; actfile.RelativePath = File.relative_path; actfile.SimpleName = File.simple_name; if (File.parent_dir != null) { AssertValidDirectory(File.parent_dir, "SetFile__SetDirectoryOnFile"); actfile.ParentDir = GetDir(File.parent_dir); } else { actfile.ParentDir = null; } }
public static void AddIndicatorSpan(CWFile File, string IndicatorName, int startoffset, int endoffset, Image marginIcon, Color lineForeColor, Color lineBackColor, bool Bold, bool Italic, bool Underline) { if (g.Project == null) throw new PluginException("Attempting to add indicator with no project open.", "AddIndicatorSpan"); CProject.File file = GetFile(File); if (file == null) throw new PluginException("Invalid CWFile instance -- file is not in project.", "AddIndicatorSpan"); // Check to see if the file is open UCEditor editor = GetEditor(file); if (editor == null) throw new PluginException("File specified is not open", "AddIndicatorSpan"); // Finally, add the indicator editor.txtEditor.Document.Indicators.Add( new CIndicators.CustomIndicator(IndicatorName, marginIcon, lineForeColor, lineBackColor, Bold, Italic, Underline), startoffset, (endoffset - startoffset)); }
public static void SaveFile(CWFile File) { AssertOpenFile(File, "SaveFile"); GetEditor(GetFile(File)).CommitSave(GetFile(File)); }
public static void RemoveIndicator(CWFile File, string IndicatorName, int line) { if (g.Project == null) throw new PluginException("Attempting to add indicator with no project open.", "AddIndicatorSpan"); CProject.File file = GetFile(File); if (file == null) throw new PluginException("Invalid CWFile instance -- file is not in project.", "AddIndicatorSpan"); // Check to see if the file is open UCEditor editor = GetEditor(file); if (editor == null) throw new PluginException("File specified is not open", "AddIndicatorSpan"); // Remove the indicator ArrayList toremove = new ArrayList(); foreach (ActiproSoftware.SyntaxEditor.Indicator ind in editor.txtEditor.Document.Indicators) { if (ind is CIndicators.CustomIconIndicator) { if (line == -1) toremove.Add(ind); else if ((ind as CIndicators.CustomIconIndicator).LineIndex == line) toremove.Add(ind); } else if (ind is CIndicators.CustomIndicator) { toremove.Add(ind); } } foreach (ActiproSoftware.SyntaxEditor.Indicator ind in toremove) editor.txtEditor.Document.Indicators.Remove(ind); }
public void RemoveIndicator(CWFile File, string IndicatorName, int line) { __RemoveIndicator(File, IndicatorName, line); }
public void DebugDelBreakpoint(CWFile File, int line) { __DebugDelBreakpoint(File, line); }
public void CWFileAfterSave(CWFile FileDetails) { }
public CWObjects IntellicodeGetObjectsInFile(CWFile file) { return(__IntellicodeGetObjectsInFile(file)); }
public void AddIndicatorIcon(CWFile File, string IndicatorName, int line, Image marginIcon) { __AddIndicatorIcon(File, IndicatorName, line, marginIcon); }
public void EditorInsertText(CWFile File, int offset, string text) { __EditorInsertText(File, offset, text); }
public void SetFile(CWFile File) { __SetFile(File); }
public static void RemoveFile(CWFile FileInfo) { AssertOpenProject("RemoveFile"); AssertValidFile(FileInfo, "RemoveFile"); g.Main.DeleteFile(GetFile(FileInfo), false); }
public void DebugAddBreakpoint(CWFile File, int line, int pass_count, bool clear_after_hit, string conditional) { __DebugAddBreakpoint(File, line, pass_count, clear_after_hit, conditional); }
public int[] DebugGetBreakpoints(CWFile File) { return __DebugGetBreakpoints(File); }
public int[] EditorGetCaret(CWFile File, bool TranslateToOffset) { return __EditorGetCaret(File, TranslateToOffset); }
public int[] DebugGetBreakpoints(CWFile File) { return(__DebugGetBreakpoints(File)); }
public string EditorGetSelected(CWFile File) { return __EditorGetSelected(File); }
public string EditorGetText(CWFile File) { return __EditorGetText(File); }
public int[] EditorGetCaret(CWFile File, bool TranslateToOffset) { return(__EditorGetCaret(File, TranslateToOffset)); }
public CWErrors IntellicodeScanFile(CWFile File) { return(__IntellicodeScanFile(File)); }
public void EditorSetText(CWFile File, string text) { __EditorSetText(File, text); }
public string EditorGetSelected(CWFile File) { return(__EditorGetSelected(File)); }
public CWObjects IntellicodeGetObjectsInFile(CWFile file) { return __IntellicodeGetObjectsInFile(file); }
public string EditorGetText(CWFile File) { return(__EditorGetText(File)); }
public CWErrors IntellicodeScanFile(CWFile File) { return __IntellicodeScanFile(File); }
public bool IsFileOpen(CWFile File) { return __IsFileOpen(File); }
public void OpenFile(CWFile FileInfo, int JumpToOffset) { __OpenFile(FileInfo, JumpToOffset); }