Implemented a fix for the custom sort not seeing relations after loading a model
This commit is contained in:
parent
8da7e5cfce
commit
521ee92c0a
|
@ -28,7 +28,6 @@ public class MappingModel implements Serializable, Viewable {
|
||||||
public MappingModel() {
|
public MappingModel() {
|
||||||
this.relations = new HashSet<>();
|
this.relations = new HashSet<>();
|
||||||
this.changeListeners = new HashSet<>();
|
this.changeListeners = new HashSet<>();
|
||||||
this.addChangeListener(OrderableListPanel.getInstance());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addRelation(Relation r) {
|
public void addRelation(Relation r) {
|
||||||
|
|
|
@ -64,6 +64,7 @@ public class DiagramPanel extends JPanel implements ModelChangeListener {
|
||||||
this.addMouseListener(listener);
|
this.addMouseListener(listener);
|
||||||
this.addMouseMotionListener(listener);
|
this.addMouseMotionListener(listener);
|
||||||
this.updateActionModels();
|
this.updateActionModels();
|
||||||
|
newModel.addChangeListener(OrderableListPanel.getInstance());
|
||||||
this.centerModel();
|
this.centerModel();
|
||||||
this.repaint();
|
this.repaint();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue