improved errors localization
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.synchronizer/src/org/eclipse/mylyn/docs/intent/client/synchronizer/factory/SynchronizerStatusFactory.java b/plugins/org.eclipse.mylyn.docs.intent.client.synchronizer/src/org/eclipse/mylyn/docs/intent/client/synchronizer/factory/SynchronizerStatusFactory.java
index 52a5a3a..d95a783 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.client.synchronizer/src/org/eclipse/mylyn/docs/intent/client/synchronizer/factory/SynchronizerStatusFactory.java
+++ b/plugins/org.eclipse.mylyn.docs.intent.client.synchronizer/src/org/eclipse/mylyn/docs/intent/client/synchronizer/factory/SynchronizerStatusFactory.java
@@ -170,10 +170,6 @@
compiledElement = referenceChangeLeftTarget.getLeftElement();
targetInstruction = getInstructionFromAffectation(indexEntry, compiledElement,
referenceChangeLeftTarget.getReference(), referenceChangeLeftTarget.getLeftTarget());
- if (targetInstruction == null) {
- // in case of implicit opposite link
- targetInstruction = getInstructionFromCompiledElement(indexEntry, compiledElement);
- }
break;
case DiffPackage.MODEL_ELEMENT_CHANGE_LEFT_TARGET:
@@ -239,7 +235,7 @@
}
/**
- * Lookup for a value instruction.
+ * Lookup for a value instruction. If not found, returns the compiledElement instruction.
*
* @param indexEntry
* the index entry
@@ -272,7 +268,7 @@
}
}
}
- return null;
+ return getInstructionFromCompiledElement(indexEntry, compiledElement);
}
/**