OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Compare Revisions

Regard whitespace Rev 143 → Rev 144

/trunk/OpenConcerto/src/org/openconcerto/sql/element/SQLElementLink.java
46,6 → 46,7
private final Path path;
private final LinkType type;
private final String name;
// TODO final (see #setAction())
private ReferenceAction action;
 
protected SQLElementLink(SQLElement owner, Path path, SQLElement owned, final LinkType type, final String name, final ReferenceAction action) {
80,9 → 81,11
this.type = type;
if (name != null) {
this.name = name;
} else {
} else if (length == 1) {
final SQLField singleField = lastStep.getSingleField();
this.name = singleField != null ? singleField.getName() : lastStep.getSingleLink().getName();
} else {
this.name = lastStep.getFrom().getName();
}
assert this.getName() != null;
this.action = action;
202,6 → 205,8
return this.action;
}
 
// use SQLElementLinkSetup
@Deprecated
public final void setAction(ReferenceAction action) {
final List<ReferenceAction> possibleActions = getOwner().getPossibleActions(this.getLinkType(), this.getOwned());
if (!possibleActions.contains(action))