Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/Controller.cs @ 2782

Last change on this file since 2782 was 2782, checked in by mkommend, 14 years ago

added test application for netron (ticket #867)

File size: 729 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Netron.Diagramming.Core;
6
7namespace HeuristicLab.Netron {
8  public class Controller : ControllerBase {
9
10    public const string TextToolName = "Text Tool";
11    public const string TextEditorToolName = "Text Editor Tool";
12
13    public Controller(IDiagramControl surface)
14      : base(surface) {
15    }
16
17    public override bool ActivateTextEditor(ITextProvider textProvider) {
18      TextEditor.GetEditor(textProvider);
19      TextEditor.Show();
20      return true;
21    }
22
23    public ILayout StandardTreeLayout {
24      get {
25        return (ILayout)this.FindActivity("Standard TreeLayout");
26      }
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.