~vcs-imports/monodevelop/trunk

« back to all changes in this revision

Viewing changes to main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs

  • Committer: mkrueger
  • Date: 2010-07-22 10:55:56 UTC
  • Revision ID: svn-v4:e3ebcda4-bce8-0310-ba0a-eca2169e7518:trunk/monodevelop:160728
* MonoDevelop.Ide.Commands/EditCommands.cs:
* MonoDevelop.Ide.Commands/ViewCommands.cs: Use delegation methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
                protected override void Update (CommandInfo info)
248
248
                {
249
249
                        Document doc = IdeApp.Workbench.ActiveDocument;
250
 
                        if (doc != null && doc.Editor != null && doc.Editor.Parent.HasFocus) {
 
250
                        if (doc != null && doc.Editor != null && doc.Editor.HasFocus) {
251
251
                                info.Enabled = doc.CommentTags != null;
252
252
                        } else
253
253
                                info.Enabled = false;