private Rectangle getCaretRectangle(int offset) {
Point location= fContentAssistSubjectControlAdapter.getLocationAtOffset(offset);
Control subjectControl= fContentAssistSubjectControlAdapter.getControl();
Point controlSize= subjectControl.getSize();
constrainLocation(location, new Point(0, 0), new Rectangle(0, 0, controlSize.x, controlSize.y));
location= subjectControl.toDisplay(location);
Rectangle subjectRectangle= new Rectangle(location.x, location.y, 1, fContentAssistSubjectControlAdapter.getLineHeight());
return subjectRectangle;
}
protected Point getStackedLocation(Shell shell, Shell parent) {