// System.out.println("Changing to " + location);
if (location == null || (! location.startsWith(RESOURCE_URI_PROTOCOL_PREFIX))) {
return;
}
location = location.substring(RESOURCE_URI_PROTOCOL_PREFIX.length());
AbstractRequirement req = getSelectedRequirement();
if (req == null) {
return;
}
boolean validate = false;
if (location.endsWith(REQUIREMENT_VALIDATION_SUFFIX)) {
location = location.substring(0, location.length() - REQUIREMENT_VALIDATION_SUFFIX.length());
validate = true;
}
Resource res = req.eResource();
EObject eo = res.getEObject(location);
if (eo instanceof AbstractRequirement) {
setSelectedRequirement((AbstractRequirement)eo);
fireRequirementSelected(req);
if (validate && req instanceof JavaRequirement) {