/**
* Sets the multiplicity label sources.
*/
private void setupMultiplicityLabels() {
multiplicity1Label = new SimpleLabel();
multiplicity1Label.setSource(new LabelSource() {
/**
* {@inheritDoc}
*/
public String getLabelText() {
return getRelation().getElement1Multiplicity().toString();
}
/**
* {@inheritDoc}
*/
public void setLabelText(String aText) { }
});
multiplicity2Label = new SimpleLabel();
multiplicity2Label.setSource(new LabelSource() {
/**
* {@inheritDoc}
*/
public String getLabelText() {
return getRelation().getElement2Multiplicity().toString();