|
Re: Content assist formatted text with HTML mark-up [message #1058050 is a reply to message #1057924] |
Fri, 10 May 2013 15:55 |
Steve Kallestad Messages: 62 Registered: March 2013 |
Member |
|
|
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 16:11] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04127 seconds