private final TokenSelector tokenSelector;
public MouseClickHandler(JTextComponent component, ScriptPartitioner partitioner) {
this.component = component;
tokenSelector = new TokenSelector(component, partitioner);
tokenSelector.setSelectCompleteToken(true);
}