This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Consider situation: You have two classes: Class1; Class2 extends Class1. Also you have: LookSelector1 for Class1 representedObject; LookSelector2 for Class2 represtenedObject. If I use switcherLook and I have selected Class2 instance, I expect that LookSelector1 and LookSelector2 will be available in "View As" menu. But I have got only the final look in LookSelector2. My request: There should be available LookSelectors in View As menu.
Created attachment 7857 [details] a patch, add all looks to viewAs
The attached patch adds all looks for represented object found in the selectors. There is a question: If I have a selector LS. LS contains the selectors LS1, LS2 and a look L1 for represented object O. LS1 contains the looks L11, L12 and LS2 contains look L21. Should the viewAs action offer something like this? LookNode->ViewAs->L11 ->L12 ->L21 ->L1 Or should offer only the selectors and looks at the top level like this? LookNode->ViewAs->LS1 ->LS2 ->L1 If yes than the viewAs action can switch only to looks L11, L21, L2. The look L22 won't be accesible by this action. Which way is more suitable?
Thanks for the patch, it seems it works as I expected. First way is correct in my opinion.
implemented in looks_jul_2002_private branch. The first way was chosen.
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.