Implemented a fix for the custom sort not seeing relations after loading a model

This commit is contained in:
Bjorn Pijnacker 2021-02-26 21:49:30 +01:00
parent 8da7e5cfce
commit 521ee92c0a
No known key found for this signature in database
GPG Key ID: 68CC60CD9AC50D72
2 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,6 @@ public class MappingModel implements Serializable, Viewable {
public MappingModel() {
this.relations = new HashSet<>();
this.changeListeners = new HashSet<>();
this.addChangeListener(OrderableListPanel.getInstance());
}
public void addRelation(Relation r) {

View File

@ -64,6 +64,7 @@ public class DiagramPanel extends JPanel implements ModelChangeListener {
this.addMouseListener(listener);
this.addMouseMotionListener(listener);
this.updateActionModels();
newModel.addChangeListener(OrderableListPanel.getInstance());
this.centerModel();
this.repaint();
}