Example #1
0
        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);
        }
Example #2
0
 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);
 }
Example #3
0
 public void SaveFile(CWFile File)
 {
     __SaveFile(File);
 }
Example #4
0
 public void RemoveFile(CWFile FileInfo)
 {
     __RemoveFile(FileInfo);
 }
Example #5
0
 public void CloseFile(CWFile FileInfo, bool PromptForSaveIfDirty, bool ForceSaveIfDirty)
 {
     __CloseFile(FileInfo, PromptForSaveIfDirty, ForceSaveIfDirty);
 }
Example #6
0
 public bool IsFileOpen(CWFile File)
 {
     return(__IsFileOpen(File));
 }
Example #7
0
 public void EditorSetCaret(CWFile File, int[] position, bool isOffset)
 {
     __EditorSetCaret(File, position, isOffset);
 }
Example #8
0
 public void SaveFile(CWFile File)
 {
     __SaveFile(File);
 }
 public void CWFileAfterLoad(CWFile FileDetails)
 {
 }
 public void CWFileAfterClose(CWFile FileDetails)
 {
 }
 public void CWEditorTriggerFire(CWFile FileDetails, string TriggerName)
 {
 }
Example #12
0
        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;
            }
        }
Example #13
0
        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));
        }
Example #14
0
        public static void SaveFile(CWFile File)
        {
            AssertOpenFile(File, "SaveFile");

            GetEditor(GetFile(File)).CommitSave(GetFile(File));
        }
Example #15
0
        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);
        }
Example #16
0
 public void RemoveIndicator(CWFile File, string IndicatorName, int line)
 {
     __RemoveIndicator(File, IndicatorName, line);
 }
Example #17
0
 public void DebugDelBreakpoint(CWFile File, int line)
 {
     __DebugDelBreakpoint(File, line);
 }
 public void CWFileAfterSave(CWFile FileDetails)
 {
 }
Example #19
0
 public CWObjects IntellicodeGetObjectsInFile(CWFile file)
 {
     return(__IntellicodeGetObjectsInFile(file));
 }
Example #20
0
 public void AddIndicatorIcon(CWFile File, string IndicatorName, int line, Image marginIcon)
 {
     __AddIndicatorIcon(File, IndicatorName, line, marginIcon);
 }
Example #21
0
 public void EditorInsertText(CWFile File, int offset, string text)
 {
     __EditorInsertText(File, offset, text);
 }
Example #22
0
 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);
 }
Example #23
0
 public void SetFile(CWFile File)
 {
     __SetFile(File);
 }
Example #24
0
 public void CloseFile(CWFile FileInfo, bool PromptForSaveIfDirty, bool ForceSaveIfDirty)
 {
     __CloseFile(FileInfo, PromptForSaveIfDirty, ForceSaveIfDirty);
 }
Example #25
0
        public static void RemoveFile(CWFile FileInfo)
        {
            AssertOpenProject("RemoveFile");
            AssertValidFile(FileInfo, "RemoveFile");

            g.Main.DeleteFile(GetFile(FileInfo), false);
        }
Example #26
0
 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);
 }
Example #27
0
 public void RemoveIndicator(CWFile File, string IndicatorName, int line)
 {
     __RemoveIndicator(File, IndicatorName, line);
 }
Example #28
0
 public void DebugDelBreakpoint(CWFile File, int line)
 {
     __DebugDelBreakpoint(File, line);
 }
Example #29
0
 public void SetFile(CWFile File)
 {
     __SetFile(File);
 }
Example #30
0
 public int[] DebugGetBreakpoints(CWFile File)
 {
     return __DebugGetBreakpoints(File);
 }
Example #31
0
 public void AddIndicatorIcon(CWFile File, string IndicatorName, int line, Image marginIcon)
 {
     __AddIndicatorIcon(File, IndicatorName, line, marginIcon);
 }
Example #32
0
 public int[] EditorGetCaret(CWFile File, bool TranslateToOffset)
 {
     return __EditorGetCaret(File, TranslateToOffset);
 }
Example #33
0
 public int[] DebugGetBreakpoints(CWFile File)
 {
     return(__DebugGetBreakpoints(File));
 }
Example #34
0
 public string EditorGetSelected(CWFile File)
 {
     return __EditorGetSelected(File);
 }
Example #35
0
 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);
 }
Example #36
0
 public string EditorGetText(CWFile File)
 {
     return __EditorGetText(File);
 }
Example #37
0
 public int[] EditorGetCaret(CWFile File, bool TranslateToOffset)
 {
     return(__EditorGetCaret(File, TranslateToOffset));
 }
Example #38
0
 public void EditorInsertText(CWFile File, int offset, string text)
 {
     __EditorInsertText(File, offset, text);
 }
Example #39
0
 public CWErrors IntellicodeScanFile(CWFile File)
 {
     return(__IntellicodeScanFile(File));
 }
Example #40
0
 public void EditorSetCaret(CWFile File, int[] position, bool isOffset)
 {
     __EditorSetCaret(File, position, isOffset);
 }
Example #41
0
 public void EditorSetText(CWFile File, string text)
 {
     __EditorSetText(File, text);
 }
Example #42
0
 public void EditorSetText(CWFile File, string text)
 {
     __EditorSetText(File, text);
 }
Example #43
0
 public string EditorGetSelected(CWFile File)
 {
     return(__EditorGetSelected(File));
 }
Example #44
0
 public CWObjects IntellicodeGetObjectsInFile(CWFile file)
 {
     return __IntellicodeGetObjectsInFile(file);
 }
Example #45
0
 public string EditorGetText(CWFile File)
 {
     return(__EditorGetText(File));
 }
Example #46
0
 public CWErrors IntellicodeScanFile(CWFile File)
 {
     return __IntellicodeScanFile(File);
 }
Example #47
0
 public void RemoveFile(CWFile FileInfo)
 {
     __RemoveFile(FileInfo);
 }
Example #48
0
 public bool IsFileOpen(CWFile File)
 {
     return  __IsFileOpen(File);
 }
Example #49
0
 public void OpenFile(CWFile FileInfo, int JumpToOffset)
 {
     __OpenFile(FileInfo, JumpToOffset);
 }
Example #50
0
 public void OpenFile(CWFile FileInfo, int JumpToOffset)
 {
     __OpenFile(FileInfo, JumpToOffset);
 }