Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/10 14:18:19 (14 years ago)
Author:
mkommend
Message:

Removed copy and paste support in the GraphVisualizationInfoView (ticket #1273).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/General/GraphVisualizationInfoView.cs

    r4068 r4809  
    4545      this.connectionPenStyle = new LinePenStyle();
    4646      this.connectionPenStyle.EndCap = LineCap.ArrowAnchor;
     47
     48      PasteTool pasteTool = (PasteTool)this.Controller.Tools.Where(t => t.Name == ControllerBase.PasteToolName).FirstOrDefault();
     49      CopyTool copyTool = (CopyTool)this.Controller.Tools.Where(t => t.Name == ControllerBase.CopyToolName).FirstOrDefault();
     50      HeuristicLab.Netron.Controller controller = this.Controller as HeuristicLab.Netron.Controller;
     51      if (Controller != null) {
     52        if (pasteTool != null) controller.RemoveTool(pasteTool);
     53        if (copyTool != null) controller.RemoveTool(copyTool);
     54      }
    4755    }
    4856
Note: See TracChangeset for help on using the changeset viewer.