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

Bug 72655

Summary: [RCP] ActionFactory.RESET_PERSPECTIVE enablement state maintenance doesn't work
Product: [Eclipse Project] Platform Reporter: Daniel Krügler <daniel.kruegler>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact: Prakash Rangaraj <prakash>
Severity: normal    
Priority: P3 Keywords: helpwanted
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Daniel Krügler CLA 2004-08-26 02:46:56 EDT
The corresponding effects clause says:
"This action maintains its enablement state."

To my opinion this is not true. A simple RCP program which just adds
ActionFactory.RESET_PERSPECTIVE into the global menu gets not the assumed
behaviour (its always disabled). Instead one has to additionally add two
listener, IPageListener, and IPerspectiveListener, where enablement has to be
coded manually (see WorkbenchActionBuilder implementation).

Recommended resolution: Registration of these listeners should be done by the
implementing class ResetPerspectiveAction itself to provide the promised effects.
Comment 1 Nick Edgar CLA 2006-03-15 11:24:19 EST
Reassigning bugs in component areas that are changing ownership.
Comment 2 Boris Bokowski CLA 2009-11-26 16:14:47 EST
Prakash is now responsible for watching bugs in the [RCP] component area.
Comment 3 Prakash Rangaraj CLA 2010-09-30 05:48:08 EDT
This doesn't happen in HEAD. Could possibly be fixed by some other bug (most probably by Bug# 270007 comment# 12)