Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Additional UIHierarchyItems within the Solution Explorer, e.g. "Deployment", "Viewport"

$
0
0

Hello everyone,

is it feasible to add individual UIHierarchyItems to the Solution Explorer?

Actually I am a C++ and Qt developer. In this world I can just create something like:

/* \see http://qt-project.org/doc/qt-4.8/qtreewidget.html#details
 */

QTreeWidget *treeWidget = new QTreeWidget();
 treeWidget->setColumnCount(1);

QTreeWidgetItem *cities = new QTreeWidgetItem(treeWidget);
cities->setText(0, tr("Cities"));

QTreeWidgetItem *osloItem = new QTreeWidgetItem(cities);
osloItem->setText(0, tr("Oslo"));

This small example adds a full tree view with two items.

Now, in the C#/Microsoft's .Net and VSX world I have no clue how to handle my issue...

I queried the relevant item instances, as I think it is the UIHierarchyItems collection?

EnvDTE.UIHierarchy uiHierarchy = dte2.ToolWindows.SolutionExplorer;
EnvDTE.UIHierarchyItems items = uiHierarchy.UIHierarchyItems;

items.Add( ... SOMETHING ... );

// Doess 'Add()' exist?

But I can I add a fixed set of items with a fix set of action handler?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>