if (!(e.getSource() instanceof Component) || !RecordingEventListener.getInstance().isRecording())
return;
final MComponent component = finder.getMComponentByComponent((Component) e.getSource());
if (component == null)
return;
IRecorder recorder = RecordingEventListener.getInstance().getRecorder();
String title = component.getText();
if (title == null)
return;
if (finder != null && finder.isRecording())
finder.markUsed(component);
recorder.record(new SelectAction(component.getComponentId(), title, finder.getScriptModel(), windowMonitor)
.enscript(component));
}