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

Bug 366648

Summary: Fix to make toolbars dissappear and appear per UniversalEditor instance
Product: z_Archived Reporter: Jurgen Vinju <jurgen.vinju>
Component: IMPAssignee: Robert M. Fuhrer <rfuhrer>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: Paul.Klint
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jurgen Vinju CLA 2011-12-13 18:06:35 EST
This patch finally makes the language contribution extension point complete. It now manages to manage the toolbar items properly, such that each instance of ILanguageContributor can actually be connected to a particular editor with a particular input (for different languages and for different files in the same language). 

This required some intricate use of IPartListener2 API in UniversalEditor. 

I'm submitting it as a patch for careful review. I think it is an important enhancement for the IMP run-time since toolbar items are such a good way to design interaction with the user but we never had it readily available to the IDE developer.
Comment 1 Jurgen Vinju CLA 2012-02-02 10:45:12 EST
Alas. it is broken :-( This particular issue is nagging me bigtime. It is some intricate problem with the way the platform expects toolbars to be connected to editor-id's that just does not fly well with UniversalEditor. I'm ready to make a new GUI element at the top of UniversalEditor to host buttons, just to avoid this entire issue. ToolBars are nice to have; I think even essential for usability.