@Override public boolean equals(Object o) { if (!(o instanceof Service)) return false; Service other = (Service) o; return id.equals(other.getId()); }
@Override public boolean visit(Expression st) throws Exception { if (!isSymfonySource) return false; if (st instanceof StringLiteral) { StringLiteral literal = (StringLiteral) st; String literalValue = literal.getValue().replaceAll("['\"]", ""); if (PathUtils.isViewPath(literalValue)) { // TODO: report viewpath reference } IPath path = getSourceModule().getModelElement().getScriptProject().getPath(); Service service = model.findService(literalValue, path); if (service != null) { fRequestor.acceptTypeReference(service.getFullyQualifiedName(), literal.sourceStart()); } } return true; }