~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.2.6 upstream) (1.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100202113959-s4exdz7er7igylz2
Tags: 2.2.1+dfsg-1
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
                        foldSegments.Add (result);
250
250
                        return result;
251
251
                }
252
 
                
 
252
                HashSet<string> symbols = new HashSet<string> ();
253
253
                class ParseInformationUpdaterWorkerThread : WorkerThread
254
254
                {
255
255
                        SourceEditorWidget widget;
269
269
                                try {
270
270
                                        if (this.widget.options.ShowFoldMargin && widget.parsedDocument != null) {
271
271
                                                List<FoldSegment> foldSegments = new List<FoldSegment> ();
272
 
                                                
 
272
                                                bool updateSymbols = widget.parsedDocument.Defines.Count != widget.symbols.Count;
 
273
                                                if (!updateSymbols) {
 
274
                                                        foreach (PreProcessorDefine define in widget.parsedDocument.Defines) {
 
275
                                                                if (!widget.symbols.Contains (define.Define)) {
 
276
                                                                        updateSymbols = true;
 
277
                                                                        break;
 
278
                                                                }
 
279
                                                        }
 
280
                                                }
 
281
                                                if (updateSymbols) {
 
282
                                                        widget.symbols.Clear ();
 
283
                                                        foreach (PreProcessorDefine define in widget.parsedDocument.Defines) {
 
284
                                                                widget.symbols.Add (define.Define);
 
285
                                                        }
 
286
                                                        widget.Document.UpdateHighlighting ();
 
287
                                                }
273
288
                                                foreach (FoldingRegion region in widget.parsedDocument.GenerateFolds ()) {
274
289
                                                        if (runInThread && IsStopping)
275
290
                                                                return;
1154
1169
                internal void MonodocResolver ()
1155
1170
                {
1156
1171
                        ResolveResult res = TextEditor.GetLanguageItem (TextEditor.Caret.Offset);
1157
 
                        string url = IdeApp.HelpOperations.GetHelpUrl (res);
 
1172
                        string url = HelpService.GetMonoDocHelpUrl (res);
1158
1173
                        if (url != null)
1159
1174
                                IdeApp.HelpOperations.ShowHelp (url);
1160
1175
                }