private void createContents(MemberOfEditPart memberofeditpart) {
String text = new String("{");
Boolean virgula = new Boolean(false);
fFigureMemberOfLabelFigure = new WrappingLabel();
fFigureMemberOfLabelFigure.setText("«memberOf»");
this.add(fFigureMemberOfLabelFigure);
fFigureMemberOfNameLabelFigure = new WrappingLabel();
fFigureMemberOfNameLabelFigure.setText("Name");
this.add(fFigureMemberOfNameLabelFigure);
fFigureMemberOfMetaAttributesLabelFigure = new WrappingLabel();
if (updateFaceIsEssential(memberofeditpart)) {
text = text.concat("essential");
virgula = true;
}
if (updateFaceIsInseparable(memberofeditpart)) {
if (virgula)
text = text.concat(",");
text = text.concat("inseparable");
virgula = true;
}
if (updateFaceIsImmutablePart(memberofeditpart)) {
if (virgula)
text = text.concat(",");
text = text.concat("immutable part");
virgula = true;
}
if (updateFaceIsImmutableWhole(memberofeditpart)) {
if (virgula)
text = text.concat(",");
text = text.concat("immutable whole");
}
if (text.equals("{"))
text = "";
else
text = text.concat("}");
fFigureMemberOfMetaAttributesLabelFigure.setText(text);
this.add(fFigureMemberOfMetaAttributesLabelFigure);
fFigureMemberOfSourcePropertyNameLabelFigure = new WrappingLabel();
fFigureMemberOfSourcePropertyNameLabelFigure.setText("");
this.add(fFigureMemberOfSourcePropertyNameLabelFigure);
fFigureMemberOfSourcePropertyCardinalitiesLabelFigure = new WrappingLabel();
fFigureMemberOfSourcePropertyCardinalitiesLabelFigure.setText("");
this.add(fFigureMemberOfSourcePropertyCardinalitiesLabelFigure);
fFigureMemberOfTargetPropertyNameLabelFigure = new WrappingLabel();
fFigureMemberOfTargetPropertyNameLabelFigure.setText("");
this.add(fFigureMemberOfTargetPropertyNameLabelFigure);
fFigureMemberOfTargetPropertyCardinalitiesLabelFigure = new WrappingLabel();
fFigureMemberOfTargetPropertyCardinalitiesLabelFigure.setText("");
this.add(fFigureMemberOfTargetPropertyCardinalitiesLabelFigure);
}