Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330206 - Help button setHelpAvailable(), API is not working
Summary: Help button setHelpAvailable(), API is not working
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 22:49 EST by Vishal CLA
Modified: 2011-03-07 11:59 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vishal CLA 2010-11-14 22:49:42 EST
I have craeted a Wizard and in that I want to disable the help button.So, I am using an API setHelpAvailable(false),but this is not working.Please look into this bug as soon as possible.

Thanks & Regards
Vishal Saraogi
Comment 1 Prakash Rangaraj CLA 2010-11-15 03:03:40 EST
Where are you calling this method? This should be called before the Wizard is opened. Do you have any sample code to reproduce?
Comment 2 Dani Megert CLA 2010-11-25 04:09:08 EST
> I want to disable the help button
I suspect you want to remove the "?" button but the method you use only hides the normal button labeled "Help".

To hide the "?" you need to call setHelpAvailable(false) on your WizardDialog. If you don't control/create the dialog, you can add the following method to your wizard:

	public void setContainer(IWizardContainer wizardContainer) {
		super.setContainer(wizardContainer);
		if (getContainer() instanceof TrayDialog)
			((TrayDialog)getContainer()).setHelpAvailable(false);

	}


I've updated the Javadoc to clarify this.
Comment 3 Remy Suen CLA 2010-11-25 19:05:40 EST
Should this bug be actually _assigned_ to someone so it isn't missed during the verification pass?
Comment 4 Dani Megert CLA 2010-11-26 02:02:55 EST
(In reply to comment #3)
> Should this bug be actually _assigned_ to someone
Yep, I thought I did that.
Comment 5 Dani Megert CLA 2010-12-07 08:19:29 EST
Verified in I20101206-1800.
Comment 6 Markus Keller CLA 2011-03-07 11:59:15 EST
I've added another note to the Javadocs in IWizard and Wizard.