Free cookie consent management tool by TermsFeed Policy Generator

source: branches/SimulationCore/HeuristicLab.SimulationCore.Dsl/DslPackage/GeneratedCode/ModelExplorer.cs @ 10525

Last change on this file since 10525 was 10525, checked in by abeham, 10 years ago

#1610: added visual model

File size: 2.4 KB
Line 
1//------------------------------------------------------------------------------
2// <auto-generated>
3//   This code was generated by a tool.
4//
5//   Changes to this file may cause incorrect behavior and will be lost if
6//   the code is regenerated.
7// </auto-generated>
8//------------------------------------------------------------------------------
9
10using DslModeling = global::Microsoft.VisualStudio.Modeling;
11using DslShell = global::Microsoft.VisualStudio.Modeling.Shell;
12using DslDiagrams = global::Microsoft.VisualStudio.Modeling.Diagrams;
13
14namespace HeuristicLab.SimulationCore
15{
16  /// <summary>
17  /// Double-derived class to allow easier code customization.
18  /// </summary>
19  internal partial class HLSimExplorer : HLSimExplorerBase
20  {
21    /// <summary>
22    /// Constructs a new HLSimExplorer.
23    /// </summary>
24    public HLSimExplorer(global::System.IServiceProvider serviceProvider)
25      : base(serviceProvider)
26    {
27    }
28  }
29 
30  /// <summary>
31  /// Control hosted in the HLSimExplorerToolWindow.
32  /// </summary>
33  internal abstract class HLSimExplorerBase : DslShell::ModelExplorerTreeContainer
34  {
35    /// <summary>
36    /// Constructs a new HLSimExplorerBase.
37    /// </summary>
38    protected HLSimExplorerBase(global::System.IServiceProvider serviceProvider) : base(serviceProvider)
39    {
40     
41    }
42 
43 
44 
45    /// <summary>
46    /// Create IElementVisitor
47    /// </summary>
48    /// <returns>IElementVisitor</returns>
49    protected override DslModeling::IElementVisitor CreateElementVisitor()
50    {
51      return new DslShell::ExplorerElementVisitor(this);
52    }
53 
54    /// <summary>
55    /// Specifies the context menu that should be shown for the model explorer.
56    ///</summary>
57    protected override global::System.ComponentModel.Design.CommandID ContextMenuCommandId
58    {
59      get
60      {
61        return Constants.HLSimExplorerMenu;
62      }
63    }
64   
65    /// <summary>
66    /// Returns the root elements domain class Id. The is the very top level tree node in the TreeView
67    ///</summary>
68    protected override global::System.Guid RootElementDomainClassId
69    {
70      get { return global::HeuristicLab.SimulationCore.SimulationModel.DomainClassId; }
71    }
72   
73    /// <summary>
74    /// Returns the root elements to be displayed in the explorer.
75    ///</summary>
76    protected override global::System.Collections.IList FindRootElements(DslModeling::Store store)
77    {
78      return store.ElementDirectory.FindElements( this.RootElementDomainClassId);
79    }
80  }
81}
82 
83
84
Note: See TracBrowser for help on using the repository browser.