| Summary: | StackOverFlow error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | DJ Houghton <dj.houghton> | ||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Lars.Vogel, ob1.eclipse, pwebster, remy.suen | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
DJ Houghton
Created attachment 194176 [details]
log file
This is caused by multiple subsequent requests (must be more than one) to set a global action handler for a given view. Using a selection listener like the one below will cause the infinite loop to occur.
private ISelectionListener listener = new ISelectionListener() {
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
getViewSite().getActionBars().setGlobalActionHandler(
"delete", action); //$NON-NLS-1$
getViewSite().getActionBars().setGlobalActionHandler(
"new", action); //$NON-NLS-1$
}
};
The workaround is to delay this request (such as by using a job).
I think this is fixed with Eclipse 4.2 |