Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using Netron.Diagramming.Core;
|
---|
6 |
|
---|
7 | namespace 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 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.