TagBrowseTree Component in Designer scope

I am trying to use TagBrowseTree Component of ignition in Designer Module.
But it shows some wrong test data like “sports, Fruits” etc

How do I get Realtime tags in my TagBrowseTree like in Standard Tag Browser Tree in Designer.

Code snippet
TagBrowseTree tagtree = new TagBrowseTree ();


TagBrowseTree is a Vision specific class, and I expect that trying to make it work outside of Vision isn’t going to go well. It expects you to call startupComponent, which requires an instance of a VisionClientContext, at which point it browses and brings in tag data.

The right way to do this would be to construct your own tree component and bring in the tag data yourself, I think. Try the com.inductiveautomation.ignition.designer.tags.tree.TagTreeModelImpl class.