Bug 337444 - MacroUtil in PDE UI tests references internal PartPane class that doesn't exist in 4.1
Summary: MacroUtil in PDE UI tests references internal PartPane class that doesn't exi...
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2011-02-17 09:36 EST by Remy Suen CLA
Modified: 2011-03-03 13:43 EST (History)
1 user (show)

See Also:


Attachments
MacroUtil patch v1 (4.38 KB, patch)
2011-03-03 08:53 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2011-02-17 09:36:35 EST
We would like to understand the reason for referencing this class so either a) we introduce a simple implementation in 4.1 for the tests to compile or b) PDE changes their code so it compiles cleanly against 4.1.
Comment 1 Curtis Windatt CLA 2011-02-28 15:48:18 EST
Ok, this is part of the macro support, which is a tool for recording UI actions that was added to PDE in the very beginning.  I don't know anyone who has ever used it and there are no open bugs involving it.

In the code we have a IWorkbenchPart.  We are trying to create a unique path that describes how to get to a specific control (getting a composite's children, counting which child the control is, recursively work for any nested composites).

Is there an alternate way that we can get to the main composite of the workbench part?

Arguably we could just remove the macro support altogether, or move it to the incubator.
Comment 2 Remy Suen CLA 2011-03-03 08:53:59 EST
Created attachment 190268 [details]
MacroUtil patch v1

(In reply to comment #1)
> Is there an alternate way that we can get to the main composite of the
> workbench part?

I don't think we'll ever expose this kind of method publicly as an API but we did add similar code elsewhere to get PDE itself to compile on 4.x (due to it having similar references in its code for the Plug-in Spy to function).

The attached patch will use that code path instead for retrieving the same information.
Comment 3 Curtis Windatt CLA 2011-03-03 10:17:57 EST
(In reply to comment #2)
> I don't think we'll ever expose this kind of method publicly as an API but we
> did add similar code elsewhere to get PDE itself to compile on 4.x (due to it
> having similar references in its code for the Plug-in Spy to function).

This is certainly not something we would expect to see in API.  If the patch uses a different code path and will play nice with 4.1, that is perfect.
Comment 4 Curtis Windatt CLA 2011-03-03 13:43:58 EST
Fixed in HEAD.