// want to
// go through the request mechanism, so simple implementation for now.
//to avoid 219038 and possibility of current viewer changing
final EditPartViewer viewer = getCurrentViewer();
final IHTMLGraphicalViewer graphicalViewer = (IHTMLGraphicalViewer)viewer;
EditPart editPart = viewer.findObjectAtExcluding(
getLocation(), Collections.EMPTY_LIST);
IPositionMediator positionMediator = new InlineEditingPositionMediator(
new ActionData(ActionData.INLINE_EDIT, null));
ExposeHelper exposeHelper = new ExposeHelper(graphicalViewer);
exposeHelper.adjustVertical(getCurrentInput().getMouseLocation());
DesignPosition position = EditPartPositionHelper.findEditPartPosition(
editPart, getCurrentInput().getMouseLocation(),
positionMediator);
if (b) {
graphicalViewer.setRangeEndPosition(position);
} else {
graphicalViewer.setRange(position, position);
}
graphicalViewer.updateHorizontalPos();
}