use of org.eclipse.titan.designer.editors.GeneralPairMatcher in project titan.EclipsePlug-ins by eclipse.
the class ASN1DoubleClickStrategy method doubleClicked.
@Override
public final void doubleClicked(final ITextViewer part) {
int pos = part.getSelectedRange().x;
fText = part;
if (fText.getDocument().getLength() < pos) {
return;
}
if (pos < 0) {
return;
}
GeneralPairMatcher pairMatcher = new PairMatcher();
IRegion region = pairMatcher.match(fText.getDocument(), pos);
if (region != null) {
fText.setSelectedRange(region.getOffset() + 1, region.getLength() - 2);
return;
}
selectWord(pos);
}
Aggregations