|
|
|
|
Re: Word wrap on ConfigurableCompletionProposal tooltips - how? [message #1086382 is a reply to message #1086209] |
Wed, 14 August 2013 06:39 |
|
Hi,
we subclassed DefaultInformationControl and changed setVisible as follows
@Override
public void setVisible(boolean visible) {
if (getShell().isVisible() == visible) {
return;
}
getShell().setVisible(visible);
}
then we extended XtextSourceViewerConfiguration to hook in the new class
@Override
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
return new IInformationControlCreator() {
@Override
public IInformationControl createInformationControl(Shell parent) {
return new BasisDefaultInformationControl(parent, SWT.TOOL | SWT.ON_TOP, SWT.WRAP, null, null);
}
};
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.02135 seconds