Object object = ((IStructuredSelection) selection).getFirstElement();
for (int i = 0, length = this.objects == null ? 0 : this.objects.length;
object != null && i < length; i++) {
- if (this.objects[i] == object) {
+ if (this.objects[i].equals(object)) {
this.combo.select(i);
}
}