~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                        }
206
206
                }
207
207
                
 
208
                public virtual void RefreshItem ()
 
209
                {
 
210
                }
 
211
                
 
212
                public virtual void RefreshMultipleItems ()
 
213
                {
 
214
                        if (currentNodes.Length == 1)
 
215
                                RefreshItem ();
 
216
                        else {
 
217
                                ITreeNavigator[] nodes = currentNodes;
 
218
                                try {
 
219
                                        currentNodes = new ITreeNavigator [1];
 
220
                                        foreach (ITreeNavigator nod in nodes) {
 
221
                                                currentNodes [0] = nod;
 
222
                                                RefreshItem ();
 
223
                                        }
 
224
                                } finally {
 
225
                                        currentNodes = nodes;
 
226
                                }
 
227
                        }
 
228
                }
 
229
                
208
230
                public virtual DragOperation CanDragNode ()
209
231
                {
210
232
                        return DragOperation.None;
259
281
                        foreach (object ob in dataObjects)
260
282
                                OnNodeDrop (ob, operation, cachedPosition);
261
283
                }
262
 
                
 
284
 
263
285
                internal class TransactedNodeHandlerAttribute: CustomCommandTargetAttribute
264
286
                {
265
287
                        protected override void Run (object target, Command cmd)