I am looking to dynamically create a context menu without using any mapping as the values will always be random.
The issue I am having is setting submenu groups.
I have decided to go with
Java reflection for what I am looking to accomplish, but the issue I am having is I cannot seem to access the Current Object without knowing the actual Object.
The problem is having to know the object makes it loose its dynamic ability. From what I can see the only options end up being new instance or knowing the name. Does anyone know a work around to this?
Any Help would be greatly appreciated. Suggestions advising not to do it this way or use mapping ect are not an option. The menu has to be 100% dynamic without 100 if/else statements.