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 how can I add a fixed set of items with a fix set of action handler?
I do not want to add additional projects or files, I like to add individual logical units like "Deployment" for setting up preferences for deployment, or "Connectivity" for setting project specific network values.