~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommandCollection.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                                Add (cmd.Clone ());
49
49
                }
50
50
                
51
 
                public void ExecuteCommand (IProgressMonitor monitor, SolutionEntityItem entry, CustomCommandType type, ConfigurationSelector configuration)
 
51
                public void ExecuteCommand (IProgressMonitor monitor, IWorkspaceObject entry, CustomCommandType type, ConfigurationSelector configuration)
52
52
                {
53
53
                        ExecuteCommand (monitor, entry, type, null, configuration);
54
54
                }
55
55
                
56
 
                public void ExecuteCommand (IProgressMonitor monitor, SolutionEntityItem entry, CustomCommandType type, ExecutionContext context, ConfigurationSelector configuration)
 
56
                public void ExecuteCommand (IProgressMonitor monitor, IWorkspaceObject entry, CustomCommandType type, ExecutionContext context, ConfigurationSelector configuration)
57
57
                {
58
58
                        foreach (CustomCommand cmd in this) {
59
59
                                if (cmd.Type == type)
71
71
                        return false;
72
72
                }
73
73
                
74
 
                public bool CanExecute (CustomCommandType type, ExecutionContext context, ConfigurationSelector configuration)
 
74
                public bool CanExecute (IWorkspaceObject entry, CustomCommandType type, ExecutionContext context, ConfigurationSelector configuration)
75
75
                {
76
76
                        foreach (CustomCommand cmd in this) {
77
77
                                if (cmd.Type == type) {
78
 
                                        return cmd.CanExecute (context, configuration);
 
78
                                        return cmd.CanExecute (entry, context, configuration);
79
79
                                }
80
80
                        }
81
81
                        return false;