Changeset 12239


Ignore:
Timestamp:
03/23/15 15:20:13 (7 years ago)
Author:
pfleck
Message:

#2025

  • Separated item- and plugin-description.
  • Clear and collapse when showing the dialog instead of showing the last selected item.
  • Added tooltips.
Location:
branches/NewItemDialog/HeuristicLab.Optimizer/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs

    r12215 r12239  
    5151      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    5252      this.searchLabel = new System.Windows.Forms.Label();
     53      this.expandAllButton = new System.Windows.Forms.Button();
     54      this.collapseAllButton = new System.Windows.Forms.Button();
     55      this.searchTextBox = new System.Windows.Forms.TextBox();
     56      this.clearSearchButton = new System.Windows.Forms.Button();
    5357      this.splitContainer = new System.Windows.Forms.SplitContainer();
    5458      this.availableItemsGroupBox = new System.Windows.Forms.GroupBox();
    55       this.searchTextBox = new System.Windows.Forms.TextBox();
    56       this.clearSearchButton = new System.Windows.Forms.Button();
    5759      this.typesTreeView = new System.Windows.Forms.TreeView();
    5860      this.imageList = new System.Windows.Forms.ImageList(this.components);
    59       this.descriptionGroupBox = new System.Windows.Forms.GroupBox();
     61      this.itemGroupBox = new System.Windows.Forms.GroupBox();
     62      this.itemDescriptionTextBox = new System.Windows.Forms.TextBox();
     63      this.pluginDescriptionGroupBox = new System.Windows.Forms.GroupBox();
    6064      this.versionTextBox = new System.Windows.Forms.TextBox();
    6165      this.pluginTextBox = new System.Windows.Forms.TextBox();
    62       this.descriptionTextBox = new System.Windows.Forms.TextBox();
    63       this.expandAllButton = new System.Windows.Forms.Button();
    64       this.collapseAllButton = new System.Windows.Forms.Button();
     66      this.pluginDescriptionTextBox = new System.Windows.Forms.TextBox();
    6567      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    6668      this.expandToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     
    6870      this.collapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    6971      this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     72      this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer();
     73      this.searchTextBox.SuspendLayout();
    7074      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
    7175      this.splitContainer.Panel1.SuspendLayout();
     
    7377      this.splitContainer.SuspendLayout();
    7478      this.availableItemsGroupBox.SuspendLayout();
    75       this.searchTextBox.SuspendLayout();
    76       this.descriptionGroupBox.SuspendLayout();
     79      this.itemGroupBox.SuspendLayout();
     80      this.pluginDescriptionGroupBox.SuspendLayout();
    7781      this.contextMenuStrip.SuspendLayout();
     82      ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).BeginInit();
     83      this.descriptionSplitContainer.Panel1.SuspendLayout();
     84      this.descriptionSplitContainer.Panel2.SuspendLayout();
     85      this.descriptionSplitContainer.SuspendLayout();
    7886      this.SuspendLayout();
    7987      //
     
    8391      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
    8492      this.okButton.Enabled = false;
    85       this.okButton.Location = new System.Drawing.Point(456, 502);
     93      this.okButton.Location = new System.Drawing.Point(456, 587);
    8694      this.okButton.Name = "okButton";
    8795      this.okButton.Size = new System.Drawing.Size(75, 23);
     
    95103      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    96104      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    97       this.cancelButton.Location = new System.Drawing.Point(537, 502);
     105      this.cancelButton.Location = new System.Drawing.Point(537, 587);
    98106      this.cancelButton.Name = "cancelButton";
    99107      this.cancelButton.Size = new System.Drawing.Size(75, 23);
     
    111119      this.toolTip.SetToolTip(this.searchLabel, "Enter string to search for items");
    112120      //
    113       // splitContainer
    114       //
    115       this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    116             | System.Windows.Forms.AnchorStyles.Left)
    117             | System.Windows.Forms.AnchorStyles.Right)));
    118       this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
    119       this.splitContainer.Location = new System.Drawing.Point(12, 12);
    120       this.splitContainer.Name = "splitContainer";
    121       this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
    122       //
    123       // splitContainer.Panel1
    124       //
    125       this.splitContainer.Panel1.Controls.Add(this.availableItemsGroupBox);
    126       //
    127       // splitContainer.Panel2
    128       //
    129       this.splitContainer.Panel2.Controls.Add(this.descriptionGroupBox);
    130       this.splitContainer.Size = new System.Drawing.Size(600, 484);
    131       this.splitContainer.SplitterDistance = 373;
    132       this.splitContainer.TabIndex = 0;
    133       this.splitContainer.TabStop = false;
    134       //
    135       // availableItemsGroupBox
    136       //
    137       this.availableItemsGroupBox.Controls.Add(this.searchLabel);
    138       this.availableItemsGroupBox.Controls.Add(this.searchTextBox);
    139       this.availableItemsGroupBox.Controls.Add(this.typesTreeView);
    140       this.availableItemsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    141       this.availableItemsGroupBox.Location = new System.Drawing.Point(0, 0);
    142       this.availableItemsGroupBox.Name = "availableItemsGroupBox";
    143       this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3);
    144       this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373);
    145       this.availableItemsGroupBox.TabIndex = 5;
    146       this.availableItemsGroupBox.TabStop = false;
    147       this.availableItemsGroupBox.Text = "Available Items";
     121      // expandAllButton
     122      //
     123      this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     124      this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn;
     125      this.expandAllButton.Location = new System.Drawing.Point(12, 587);
     126      this.expandAllButton.Name = "expandAllButton";
     127      this.expandAllButton.Size = new System.Drawing.Size(23, 23);
     128      this.expandAllButton.TabIndex = 0;
     129      this.expandAllButton.TabStop = false;
     130      this.toolTip.SetToolTip(this.expandAllButton, "Expand all nodes.");
     131      this.expandAllButton.UseVisualStyleBackColor = true;
     132      this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click);
     133      //
     134      // collapseAllButton
     135      //
     136      this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     137      this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut;
     138      this.collapseAllButton.Location = new System.Drawing.Point(41, 587);
     139      this.collapseAllButton.Name = "collapseAllButton";
     140      this.collapseAllButton.Size = new System.Drawing.Size(23, 23);
     141      this.collapseAllButton.TabIndex = 0;
     142      this.collapseAllButton.TabStop = false;
     143      this.toolTip.SetToolTip(this.collapseAllButton, "Collapse all nodes.");
     144      this.collapseAllButton.UseVisualStyleBackColor = true;
     145      this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click);
    148146      //
    149147      // searchTextBox
     
    157155      this.searchTextBox.Size = new System.Drawing.Size(562, 20);
    158156      this.searchTextBox.TabIndex = 1;
     157      this.toolTip.SetToolTip(this.searchTextBox, "Filters the available Items.\r\nThe search term is tokenized by space and a name ha" +
     158        "s to contain all tokens to be displayed.\r\n(E.g. \"Sym Reg\" matches \"Symbolic Regr" +
     159        "ession\")");
    159160      this.searchTextBox.TextChanged += new System.EventHandler(this.searchTextBox_TextChanged);
    160161      this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);
     
    178179      this.clearSearchButton.Click += new System.EventHandler(this.clearSearchButton_Click);
    179180      //
     181      // splitContainer
     182      //
     183      this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     184            | System.Windows.Forms.AnchorStyles.Left)
     185            | System.Windows.Forms.AnchorStyles.Right)));
     186      this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
     187      this.splitContainer.Location = new System.Drawing.Point(12, 12);
     188      this.splitContainer.Name = "splitContainer";
     189      this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     190      //
     191      // splitContainer.Panel1
     192      //
     193      this.splitContainer.Panel1.Controls.Add(this.availableItemsGroupBox);
     194      //
     195      // splitContainer.Panel2
     196      //
     197      this.splitContainer.Panel2.Controls.Add(this.descriptionSplitContainer);
     198      this.splitContainer.Size = new System.Drawing.Size(600, 569);
     199      this.splitContainer.SplitterDistance = 373;
     200      this.splitContainer.TabIndex = 0;
     201      this.splitContainer.TabStop = false;
     202      //
     203      // availableItemsGroupBox
     204      //
     205      this.availableItemsGroupBox.Controls.Add(this.searchLabel);
     206      this.availableItemsGroupBox.Controls.Add(this.searchTextBox);
     207      this.availableItemsGroupBox.Controls.Add(this.typesTreeView);
     208      this.availableItemsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
     209      this.availableItemsGroupBox.Location = new System.Drawing.Point(0, 0);
     210      this.availableItemsGroupBox.Name = "availableItemsGroupBox";
     211      this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3);
     212      this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373);
     213      this.availableItemsGroupBox.TabIndex = 5;
     214      this.availableItemsGroupBox.TabStop = false;
     215      this.availableItemsGroupBox.Text = "Available Items";
     216      //
    180217      // typesTreeView
    181218      //
     
    203240      this.imageList.TransparentColor = System.Drawing.Color.Transparent;
    204241      //
    205       // descriptionGroupBox
    206       //
    207       this.descriptionGroupBox.Controls.Add(this.versionTextBox);
    208       this.descriptionGroupBox.Controls.Add(this.pluginTextBox);
    209       this.descriptionGroupBox.Controls.Add(this.descriptionTextBox);
    210       this.descriptionGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    211       this.descriptionGroupBox.Location = new System.Drawing.Point(0, 0);
    212       this.descriptionGroupBox.Name = "descriptionGroupBox";
    213       this.descriptionGroupBox.Size = new System.Drawing.Size(600, 107);
    214       this.descriptionGroupBox.TabIndex = 1;
    215       this.descriptionGroupBox.TabStop = false;
    216       this.descriptionGroupBox.Text = "Description";
     242      // itemGroupBox
     243      //
     244      this.itemGroupBox.Controls.Add(this.itemDescriptionTextBox);
     245      this.itemGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
     246      this.itemGroupBox.Location = new System.Drawing.Point(0, 0);
     247      this.itemGroupBox.Name = "itemGroupBox";
     248      this.itemGroupBox.Size = new System.Drawing.Size(600, 81);
     249      this.itemGroupBox.TabIndex = 1;
     250      this.itemGroupBox.TabStop = false;
     251      this.itemGroupBox.Text = "Item";
     252      //
     253      // itemDescriptionTextBox
     254      //
     255      this.itemDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     256            | System.Windows.Forms.AnchorStyles.Left)
     257            | System.Windows.Forms.AnchorStyles.Right)));
     258      this.itemDescriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     259      this.itemDescriptionTextBox.Location = new System.Drawing.Point(6, 19);
     260      this.itemDescriptionTextBox.Multiline = true;
     261      this.itemDescriptionTextBox.Name = "itemDescriptionTextBox";
     262      this.itemDescriptionTextBox.ReadOnly = true;
     263      this.itemDescriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     264      this.itemDescriptionTextBox.Size = new System.Drawing.Size(588, 56);
     265      this.itemDescriptionTextBox.TabIndex = 0;
     266      this.itemDescriptionTextBox.TabStop = false;
     267      //
     268      // pluginDescriptionGroupBox
     269      //
     270      this.pluginDescriptionGroupBox.Controls.Add(this.versionTextBox);
     271      this.pluginDescriptionGroupBox.Controls.Add(this.pluginTextBox);
     272      this.pluginDescriptionGroupBox.Controls.Add(this.pluginDescriptionTextBox);
     273      this.pluginDescriptionGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
     274      this.pluginDescriptionGroupBox.Location = new System.Drawing.Point(0, 0);
     275      this.pluginDescriptionGroupBox.Name = "pluginDescriptionGroupBox";
     276      this.pluginDescriptionGroupBox.Size = new System.Drawing.Size(600, 107);
     277      this.pluginDescriptionGroupBox.TabIndex = 1;
     278      this.pluginDescriptionGroupBox.TabStop = false;
     279      this.pluginDescriptionGroupBox.Text = "Plugin";
    217280      //
    218281      // versionTextBox
     
    237300      this.pluginTextBox.TabStop = false;
    238301      //
    239       // descriptionTextBox
    240       //
    241       this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     302      // pluginDescriptionTextBox
     303      //
     304      this.pluginDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    242305            | System.Windows.Forms.AnchorStyles.Left)
    243306            | System.Windows.Forms.AnchorStyles.Right)));
    244       this.descriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    245       this.descriptionTextBox.Location = new System.Drawing.Point(6, 46);
    246       this.descriptionTextBox.Multiline = true;
    247       this.descriptionTextBox.Name = "descriptionTextBox";
    248       this.descriptionTextBox.ReadOnly = true;
    249       this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    250       this.descriptionTextBox.Size = new System.Drawing.Size(588, 55);
    251       this.descriptionTextBox.TabIndex = 0;
    252       this.descriptionTextBox.TabStop = false;
    253       //
    254       // expandAllButton
    255       //
    256       this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    257       this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn;
    258       this.expandAllButton.Location = new System.Drawing.Point(12, 502);
    259       this.expandAllButton.Name = "expandAllButton";
    260       this.expandAllButton.Size = new System.Drawing.Size(23, 23);
    261       this.expandAllButton.TabIndex = 0;
    262       this.expandAllButton.TabStop = false;
    263       this.expandAllButton.UseVisualStyleBackColor = true;
    264       this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click);
    265       //
    266       // collapseAllButton
    267       //
    268       this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    269       this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut;
    270       this.collapseAllButton.Location = new System.Drawing.Point(41, 502);
    271       this.collapseAllButton.Name = "collapseAllButton";
    272       this.collapseAllButton.Size = new System.Drawing.Size(23, 23);
    273       this.collapseAllButton.TabIndex = 0;
    274       this.collapseAllButton.TabStop = false;
    275       this.collapseAllButton.UseVisualStyleBackColor = true;
    276       this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click);
     307      this.pluginDescriptionTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     308      this.pluginDescriptionTextBox.Location = new System.Drawing.Point(6, 46);
     309      this.pluginDescriptionTextBox.Multiline = true;
     310      this.pluginDescriptionTextBox.Name = "pluginDescriptionTextBox";
     311      this.pluginDescriptionTextBox.ReadOnly = true;
     312      this.pluginDescriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     313      this.pluginDescriptionTextBox.Size = new System.Drawing.Size(588, 55);
     314      this.pluginDescriptionTextBox.TabIndex = 0;
     315      this.pluginDescriptionTextBox.TabStop = false;
    277316      //
    278317      // contextMenuStrip
     
    314353      this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click);
    315354      //
     355      // descriptionSplitContainer
     356      //
     357      this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
     358      this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0);
     359      this.descriptionSplitContainer.Name = "descriptionSplitContainer";
     360      this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     361      //
     362      // descriptionSplitContainer.Panel1
     363      //
     364      this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox);
     365      //
     366      // descriptionSplitContainer.Panel2
     367      //
     368      this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox);
     369      this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192);
     370      this.descriptionSplitContainer.SplitterDistance = 81;
     371      this.descriptionSplitContainer.TabIndex = 1;
     372      this.descriptionSplitContainer.TabStop = false;
     373      //
    316374      // NewItemDialog
    317375      //
     
    319377      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    320378      this.CancelButton = this.cancelButton;
    321       this.ClientSize = new System.Drawing.Size(624, 537);
     379      this.ClientSize = new System.Drawing.Size(624, 622);
    322380      this.Controls.Add(this.splitContainer);
    323381      this.Controls.Add(this.cancelButton);
     
    335393      this.Load += new System.EventHandler(this.NewItemDialog_Load);
    336394      this.Shown += new System.EventHandler(this.NewItemDialog_Shown);
     395      this.searchTextBox.ResumeLayout(false);
    337396      this.splitContainer.Panel1.ResumeLayout(false);
    338397      this.splitContainer.Panel2.ResumeLayout(false);
     
    341400      this.availableItemsGroupBox.ResumeLayout(false);
    342401      this.availableItemsGroupBox.PerformLayout();
    343       this.searchTextBox.ResumeLayout(false);
    344       this.descriptionGroupBox.ResumeLayout(false);
    345       this.descriptionGroupBox.PerformLayout();
     402      this.itemGroupBox.ResumeLayout(false);
     403      this.itemGroupBox.PerformLayout();
     404      this.pluginDescriptionGroupBox.ResumeLayout(false);
     405      this.pluginDescriptionGroupBox.PerformLayout();
    346406      this.contextMenuStrip.ResumeLayout(false);
     407      this.descriptionSplitContainer.Panel1.ResumeLayout(false);
     408      this.descriptionSplitContainer.Panel2.ResumeLayout(false);
     409      ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit();
     410      this.descriptionSplitContainer.ResumeLayout(false);
    347411      this.ResumeLayout(false);
    348412
     
    355419    private System.Windows.Forms.ToolTip toolTip;
    356420    private System.Windows.Forms.SplitContainer splitContainer;
    357     private System.Windows.Forms.TextBox descriptionTextBox;
     421    private System.Windows.Forms.TextBox pluginDescriptionTextBox;
    358422    private System.Windows.Forms.Label searchLabel;
    359423    private System.Windows.Forms.TextBox searchTextBox;
     
    363427    private System.Windows.Forms.Button collapseAllButton;
    364428    private System.Windows.Forms.GroupBox availableItemsGroupBox;
    365     private System.Windows.Forms.GroupBox descriptionGroupBox;
     429    private System.Windows.Forms.GroupBox pluginDescriptionGroupBox;
    366430    private System.Windows.Forms.TextBox versionTextBox;
    367431    private System.Windows.Forms.TextBox pluginTextBox;
     
    372436    private System.Windows.Forms.ToolStripMenuItem collapseAllToolStripMenuItem;
    373437    private System.Windows.Forms.Button clearSearchButton;
     438    private System.Windows.Forms.GroupBox itemGroupBox;
     439    private System.Windows.Forms.TextBox itemDescriptionTextBox;
     440    private System.Windows.Forms.SplitContainer descriptionSplitContainer;
    374441  }
    375442}
  • branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12238 r12239  
    162162      searchTextBox.Text = string.Empty;
    163163      searchTextBox.Focus();
     164      SelectedType = null;
     165      typesTreeView.SelectedNode = null;
     166      typesTreeView.CollapseAll();
     167      UpdateDescription();
    164168    }
    165169
     
    172176        if (!searchString.Contains(currentSearchString)) {
    173177          typesTreeView.BeginUpdate();
    174           // expand saerch -> restore all tree nodes
     178          // expand search -> restore all tree nodes
    175179          var selectedNode = typesTreeView.SelectedNode;
    176180          typesTreeView.Nodes.Clear();
     
    197201
    198202        // select first item
    199         if (SelectedType == null) {
    200           var firstNode = FirstVisibleNode;
    201           while (firstNode != null && !(firstNode.Tag is Type))
    202             firstNode = firstNode.NextVisibleNode;
    203           if (firstNode != null)
    204             typesTreeView.SelectedNode = firstNode;
    205         }
     203        var firstNode = FirstVisibleNode;
     204        while (firstNode != null && !(firstNode.Tag is Type))
     205          firstNode = firstNode.NextVisibleNode;
     206        if (firstNode != null)
     207          typesTreeView.SelectedNode = firstNode;
    206208
    207209        if (typesTreeView.Nodes.Count == 0) {
     
    243245
    244246    protected virtual void UpdateDescription() {
    245       descriptionTextBox.Text = string.Empty;
     247      itemDescriptionTextBox.Text = string.Empty;
     248      pluginDescriptionTextBox.Text = string.Empty;
     249      pluginTextBox.Text = string.Empty;
     250      versionTextBox.Text = string.Empty;
    246251
    247252      if (typesTreeView.SelectedNode != null) {
    248253        string category = typesTreeView.SelectedNode.Tag as string;
    249254        if (category != null) {
    250           descriptionTextBox.Text = category;
    251           pluginTextBox.Text = string.Empty;
    252           versionTextBox.Text = string.Empty;
     255          itemDescriptionTextBox.Text = category;
    253256        }
    254257        Type type = typesTreeView.SelectedNode.Tag as Type;
     
    258261          var plugin = ApplicationManager.Manager.GetDeclaringPlugin(type);
    259262          if (description != null)
    260             descriptionTextBox.Text = description;
    261           if (plugin != null)
     263            itemDescriptionTextBox.Text = description;
     264          if (plugin != null) {
    262265            pluginTextBox.Text = plugin.Name;
     266            pluginDescriptionTextBox.Text = plugin.Description;
     267          }
    263268          if (version != null)
    264269            versionTextBox.Text = version.ToString();
    265270        }
    266271      } else if (typesTreeView.Nodes.Count == 0) {
    267         descriptionTextBox.Text = "No types found";
    268         pluginTextBox.Text = string.Empty;
    269         versionTextBox.Text = string.Empty;
     272        itemDescriptionTextBox.Text = "No types found";
    270273      }
    271274    }
Note: See TracChangeset for help on using the changeset viewer.