PaletteViewerKeyHandler [message #101610] |
Wed, 22 October 2003 16:46  |
Eclipse User |
|
|
|
Hello,
If you have the following palette entries in a palette viewer:
Group1
+ Group2
+ Item1
+ Item2
+ Group3
+ Item3
+ Item4
Drawer1
+ Item5
And the focus is currently on Item4 and you press "down" key to go to
Drawer1, it will won't. Any ideas?
Thanks,
Maged Elaasar
|
|
|
|
Re: PaletteViewerKeyHandler [message #101723 is a reply to message #101610] |
Thu, 23 October 2003 10:05  |
Eclipse User |
|
|
|
More Info:
By looking at this method from PaletteViewerKeyHandler:
List getNavigationSiblings() {
ArrayList siblingsList = new ArrayList();
if (getFocus().getParent() instanceof GroupEditPart)
buildNavigationList( getFocus().getParent().getParent(),
getFocus().getParent().getParent(), siblingsList);
else
buildNavigationList(getFocus().getParent(), getFocus().getParent(),
siblingsList);
return siblingsList;
}
You will notice that in case the parent was a group, the navigation
sibliings were built starting from "2" levels up in the hierarchy. In the
LogicDesign example, that would return the SliderPaletteEditPart (and
therefore Drawer1 will be among the siblings), but in my case that returns
Group1 (which means Drawer1 will not be among the siblings).
I appreciate any feedback on this and if I should be logging a Bugzilla..
Maged
"Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
news:bn6q9g$s8n$1@eclipse.org...
> Hello,
>
> If you have the following palette entries in a palette viewer:
>
> Group1
> + Group2
> + Item1
> + Item2
> + Group3
> + Item3
> + Item4
> Drawer1
> + Item5
>
> And the focus is currently on Item4 and you press "down" key to go to
> Drawer1, it will won't. Any ideas?
>
> Thanks,
> Maged Elaasar
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.30119 seconds