Reputation: 57
I'm developing a new Eclipse plugin which needs to use a custom help in the Java project wizard as I show below.
Java Project Wizard Page 1
And ...
Java Project Wizard Page 2
These two pages use the same as help? if not.
How do I create a help for each page or Do you have any suggestions?
Thank you in advance.
Upvotes: 0
Views: 368
Reputation: 111142
Assuming you are deriving your wizard pages from NewJavaProjectWizardPageOne
and NewJavaProjectWizardPageTwo
you can set a new help context id by overriding the setControl
method:
@Override
protected void setControl(Control newControl) {
super.setControl(newControl);
PlatformUI.getWorkbench().getHelpSystem().setHelp(newControl, "your help context id");
}
where 'your help context id' is a help context id declared in a contexts xml file using the org.eclipse.help.contexts extension point in the usual way.
Upvotes: 0