Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 177186

Summary: Require Control adapter in JavaOutlinePage
Product: [Eclipse Project] JDT Reporter: Michael Rennie <Michael_Rennie>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, darin.eclipse
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 152641    

Description Michael Rennie CLA 2007-03-13 14:09:12 EDT
Providing the all instances and all references features in the outline view requires that we open a popup dialog to display results. Currently this does not work as expected, since we cannot get the handle of the current control for the JavaOutlinePage, and therefore have no location on which to open the popup. 

This page should provide a Control adapter to allow access to the control of the part, so we can resolve a correct anchor point for the popup.
Comment 1 Dani Megert CLA 2007-03-14 04:08:44 EDT
getSite().getShell()
Comment 2 Michael Rennie CLA 2007-03-14 10:14:40 EDT
that call is not sufficient to obtain an (x, y) coordinate to open a popup on, we need a handle to the tree control.
Comment 3 Michael Rennie CLA 2007-03-14 10:21:40 EDT
If I use the site, or any of the available handles, at the time of opening the popup, the (x,y) coordinates are always returned as (0,0). We opened bug 174233 and made a workaround for this problem, but that does not work very well as it will open the popup in last known good coordinates (might be on the other side of the screen).
Comment 4 Dani Megert CLA 2007-03-14 10:26:01 EDT
sorry but we won't expose that.
Comment 5 Dani Megert CLA 2007-03-14 10:28:12 EDT
We do not want to expose that it is a tree. Maybe in the future we use the Browser widget, or a table or custom draw.