|
|
@ -3,7 +3,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Diagnostics; |
|
|
|
|
|
|
|
using System.Windows; |
|
|
|
using System.Windows.Controls; |
|
|
|
using System.Windows.Controls; |
|
|
|
|
|
|
|
using System.Windows.Input; |
|
|
|
using ICSharpCode.Core.Presentation; |
|
|
|
using ICSharpCode.Core.Presentation; |
|
|
|
using ICSharpCode.TreeView; |
|
|
|
using ICSharpCode.TreeView; |
|
|
|
using ICSharpCode.SharpDevelop.Workbench; |
|
|
|
using ICSharpCode.SharpDevelop.Workbench; |
|
|
@ -33,6 +35,20 @@ namespace ICSharpCode.SharpDevelop.Dom.ClassBrowser |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnMouseUp(System.Windows.Input.MouseButtonEventArgs e) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (e.ChangedButton == MouseButton.Right) { |
|
|
|
|
|
|
|
var treeNode = this.SelectedItem as ModelCollectionTreeNode; |
|
|
|
|
|
|
|
if (treeNode != null) { |
|
|
|
|
|
|
|
var model = treeNode.Model; |
|
|
|
|
|
|
|
if (model is IEntityModel) { |
|
|
|
|
|
|
|
var ctx = MenuService.ShowContextMenu(e.Source as UIElement, (IEntityModel) model, "/SharpDevelop/EntityContextMenu"); |
|
|
|
|
|
|
|
e.Handled = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public interface IClassBrowserTreeView |
|
|
|
public interface IClassBrowserTreeView |
|
|
|