Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 288335 - [Modeling]Manage ActionBarContributor's GlobalHandlers enablement state
Summary: [Modeling]Manage ActionBarContributor's GlobalHandlers enablement state
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Incubators (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Benjamin Cabé CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 05:00 EDT by Sebastien Moran CLA
Modified: 2009-09-02 10:11 EDT (History)
1 user (show)

See Also:


Attachments
Manage ActionBarContributor's GlobalHandlers enablement state (3.89 KB, patch)
2009-09-02 05:01 EDT, Sebastien Moran CLA
contact: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Moran CLA 2009-09-02 05:00:57 EDT
This patch just adds two methods in the *EmfActionBarContributor* class to manage the enablement state of the ActionBar's GlobalHandler. It also adds one method in the *EmfMasterDetailBlock* class which registers a *FocusListener* that will be responsible to enable/disable the  ActionBar's GlobalHandler.

Basically when the MasterPart's TreeViewer gains the focus the FocusListener enable the corresponding ActionBar's GlobalHandler, and disable it when it loses the focus.
Comment 1 Sebastien Moran CLA 2009-09-02 05:01:53 EDT
Created attachment 146266 [details]
Manage ActionBarContributor's GlobalHandlers enablement state
Comment 2 Benjamin Cabé CLA 2009-09-02 10:10:31 EDT
patch integrated in HEAD, thanks Sébastien! :)