| Summary: | [spy][regression] Plug-in spy is not working correctly for Eclipse 4.x | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ankur Sharma <ankur_sharma> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public, daniel_megert, Michael_Rennie, remy.suen, tom.schindl |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Ankur Sharma
Moving to platform UI. Any suggestions on a workaround? I suspect the proper solution is to split off a pde.runtime 4.x stream and obtain the required information from the model.
In 4.2 we get the incorrect shell. Currently we call HandlerUtil.getActiveShell(event). In 4.2 this returns the workbench shell, not the local shell where the spy command was invoked from. Adding the following to the method obtains the local shell first.
Object o = getVariable(event, E4Workbench.LOCAL_ACTIVE_SHELL);
if (o instanceof Shell) {
return (Shell) o;
}
Same thing happens when we call HandlerUtil.getCurrentSelection().
the live model tooling provides some introspection to the model: * Widget-Tree * Object-Tree with @Injection information If you can add code to PDE that is a no-op in 3.8 and works in 4.2, that would be the best option (least pain :-) The next best option would be to provide a hook in the main 3.8 bundles, and we'll write a plugin or fragment that we can build in 4.2 to enhance plugin spy. That way, everything still lives in master. PW *** This bug has been marked as a duplicate of bug 356209 *** |