Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 287712 - [Webapp] Allow additional buttons to be added to the help webapp
Summary: [Webapp] Allow additional buttons to be added to the help webapp
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.6 M3   Edit
Assignee: Chris Goldthorpe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 288558
  Show dependency tree
 
Reported: 2009-08-26 12:06 EDT by Chris Goldthorpe CLA
Modified: 2010-11-22 11:59 EST (History)
2 users (show)

See Also:


Attachments
Patch (20.89 KB, patch)
2009-09-10 20:08 EDT, Chris Goldthorpe CLA
no flags Details | Diff
Test project (12.50 KB, application/x-zip-compressed)
2009-09-10 20:11 EDT, Chris Goldthorpe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Goldthorpe CLA 2009-08-26 12:06:25 EDT
This enhancement is a request to be able to add additional buttons to the tootlbar of the help webapp.
Comment 1 Chris Goldthorpe CLA 2009-09-10 20:08:01 EDT
Created attachment 146919 [details]
Patch

Here is a patch I created to implement this functionality. I ended up writing this code myself so it does not need any IP processing. The characteristics of this patch are:

The extension point uses a class because it needs to have a method to get the tooltip text based on the locale.
Buttons can be added to any toolbar, the function AbstractButton.isAddedToToolbar(String) determines which toolbars it gets contributed to.
It is possible to specify a JavaScript file to be included in the jsp file for the toolbar.
Buttons can be on, off or hidden.

The code at present does not support a drop down menu but that would be easy to add, and somewhat harder to explain to users how it worked.
Comment 2 Chris Goldthorpe CLA 2009-09-10 20:11:30 EDT
Created attachment 146920 [details]
Test project

This is a test project which adds a home button to every toolbar which calls a function in an included javascript file.
Comment 3 Chris Goldthorpe CLA 2009-09-21 13:29:29 EDT
Fixed in HEAD
Comment 4 Hao Zhang CLA 2009-10-14 22:05:45 EDT
Verified in N20091012-2000.