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

Bug 343984

Summary: StackOverFlow error
Product: [Eclipse Project] e4 Reporter: DJ Houghton <dj.houghton>
Component: UIAssignee: 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 Flags
log file none

Description DJ Houghton CLA 2011-04-27 11:58:17 EDT
build 0426-1606

(this is a special build from HEAD against EMF from 3.6.2)

I am trying to run a large product on top of 4.1 and I'm getting the following StackOverFlow error when opening/closing some of the wizards and dialogs.

I'll attach the full log since I'm not sure which part is the most important.
Comment 1 DJ Houghton CLA 2011-04-27 12:07:00 EDT
Created attachment 194176 [details]
log file
Comment 2 Remy Suen CLA 2011-04-27 14:47:09 EDT
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).
Comment 3 Lars Vogel CLA 2012-12-04 14:00:09 EST
I think this is fixed with Eclipse 4.2