public LinkCountView(MSystem system) { super("Association", "# Links", Color.red); fSystem = system; Collection<MAssociation> associations = fSystem.model().associations(); fAssociations = associations.toArray(new MAssociation[0]); Arrays.sort(fAssociations); setNames(fAssociations); fSystem.addChangeListener(this); update(); }