Opens the specified content item. The content item.
(ContentItem item)
| 1108 | /// </summary> |
| 1109 | /// <param name="item">The content item.</param> |
| 1110 | public void Open(ContentItem item) |
| 1111 | { |
| 1112 | if (item == null) |
| 1113 | throw new ArgumentNullException(); |
| 1114 | |
| 1115 | // Check if it's a folder |
| 1116 | if (item.IsFolder) |
| 1117 | { |
| 1118 | // Show folder |
| 1119 | var folder = (ContentFolder)item; |
| 1120 | folder.Node.Expand(); |
| 1121 | _tree.Select(folder.Node); |
| 1122 | if (!_showAllContentInTree) |
| 1123 | _view.SelectFirstItem(); |
| 1124 | return; |
| 1125 | } |
| 1126 | |
| 1127 | // Open it |
| 1128 | Editor.ContentEditing.Open(item); |
| 1129 | } |
| 1130 | |
| 1131 | /// <summary> |
| 1132 | /// Selects the specified asset in the content view. |
no test coverage detected