Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2739


Ignore:
Timestamp:
02/02/10 18:14:37 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • added extension method to pretty print type names
Location:
trunk/sources
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.2/HeuristicLab.Common-3.2.csproj

    r2476 r2739  
    8484  <ItemGroup>
    8585    <Compile Include="CancelEventArgs.cs" />
     86    <Compile Include="TypeExtensions.cs" />
    8687    <Compile Include="ObservableList.cs" />
    8788    <Compile Include="DoubleExtensions.cs">
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs

    r2694 r2739  
    2828using System.Windows.Forms;
    2929using System.Linq;
     30using HeuristicLab.Common;
    3031using HeuristicLab.PluginInfrastructure;
    3132using HeuristicLab.MainForm;
     
    113114              TreeNode typeNode = new TreeNode();
    114115              string name = ItemAttribute.GetName(type);
    115               typeNode.Text = name != null ? name : type.Name;
     116              typeNode.Text = name != null ? name : type.GetPrettyName();
    116117              typeNode.ImageIndex = 0;
    117118              if (type.IsInterface) typeNode.ImageIndex = 2;
     
    138139        }
    139140        if (typesTreeView.Nodes.Count == 0) {
    140           typesTreeView.Nodes.Add("No types of base type \"" + BaseType.Name + "\" found");
     141          typesTreeView.Nodes.Add("No types of base type \"" + BaseType.GetPrettyName() + "\" found");
    141142          typesTreeView.Enabled = false;
    142143        }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ViewHost.cs

    r2727 r2739  
    2828using System.Windows.Forms;
    2929using System.Linq;
     30using HeuristicLab.Common;
    3031using HeuristicLab.MainForm;
    3132
     
    6869                        select t;
    6970        foreach (Type viewType in viewTypes) {
    70           ToolStripMenuItem item = new ToolStripMenuItem(viewType.Name);
     71          ToolStripMenuItem item = new ToolStripMenuItem(viewType.GetPrettyName());
    7172          item.Name = viewType.FullName;
    72           item.ToolTipText = viewType.FullName;
     73          item.ToolTipText = viewType.GetPrettyName(true);
    7374          item.Tag = viewType;
    7475          contextMenuStrip.Items.Add(item);
Note: See TracChangeset for help on using the changeset viewer.