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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.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:
90
90
                        });
91
91
                        TreeView.Tree.Selection.Mode = Gtk.SelectionMode.Single;
92
92
                        TreeView.Tree.CursorChanged += HandleCursorChanged;
93
 
                        
 
93
                        inspectEditor.ButtonPressEvent += HandleInspectEditorButtonPressEvent;
94
94
                        TreeView.ShadowType = ShadowType.In;
95
95
                        treeViewPlaceholder.Add (TreeView);
96
96
                        treeViewPlaceholder.ShowAll ();
194
194
                        this.buttonForeward.Clicked += this.OnNavigateForwardActionActivated;
195
195
                        
196
196
                }
 
197
                
 
198
                [CommandHandler (EditCommands.Copy)]
 
199
                protected void OnCopyCommand ()
 
200
                {
 
201
                        inspectEditor.RunAction (Mono.TextEditor.ClipboardActions.Copy);
 
202
                }
 
203
                
 
204
                [CommandHandler (EditCommands.SelectAll)]
 
205
                protected void OnSelectAllCommand ()
 
206
                {
 
207
                        inspectEditor.RunAction (Mono.TextEditor.SelectionActions.SelectAll);
 
208
                }
 
209
                
 
210
                void HandleInspectEditorButtonPressEvent (object o, ButtonPressEventArgs args)
 
211
                {
 
212
                        if (args.Event.Button != 3)
 
213
                                return;
 
214
                        var menuSet = new CommandEntrySet ();
 
215
                        menuSet.AddItem (EditCommands.SelectAll);
 
216
                        menuSet.AddItem (EditCommands.Copy);
 
217
                        IdeApp.CommandService.ShowContextMenu (menuSet, this);
 
218
                }
197
219
 
198
220
                void SearchTreeviewhandleRowActivated (object o, RowActivatedArgs args)
199
221
                {