I'm doing this in template proposals.
For template proposals, you need to override IInformationControlCreator getInformationControlCreator()
There are a couple of options to choose from, but I ended up going with "BrowserInformationControl".
I had to bring in a LOT of jface code for my template proposals and IIRC, the browser control was part of the reason why. jface has a lot of code that doesn't like to be overridden.
public class MyDSLTemplateProposal extends XtextTemplateProposal {
...
@Override
public IInformationControlCreator getInformationControlCreator() {
return new IInformationControlCreator() {
@Override
public IInformationControl createInformationControl(Shell parent) {
IInformationControl iic =new BrowserInformationControl(parent, null, "woohoo");
//IInformationControl iic = new DefaultInformationControl(parent);
return iic;
}
};
}
...
}
[Updated on: Fri, 10 May 2013 12:11] by Moderator