mirror of https://github.com/rusefi/RomRaider.git
with frame disposed GC would do the rest, no value in unlinking objects from each other
This commit is contained in:
parent
8f971b40ab
commit
78a24f0b73
|
@ -443,13 +443,6 @@ public class Rom extends DefaultMutableTreeNode implements Serializable {
|
|||
// Do nothing.
|
||||
}
|
||||
frame.dispose();
|
||||
|
||||
if(frame.getTableView() != null) {
|
||||
frame.getTableView().setVisible(false);
|
||||
frame.getTableView().setData(null);
|
||||
frame.getTableView().setTable(null);
|
||||
frame.setTableView(null);
|
||||
}
|
||||
}
|
||||
|
||||
tableTreeNode.setUserObject(null);
|
||||
|
|
|
@ -515,11 +515,7 @@ public abstract class TableView extends JPanel implements Serializable {
|
|||
public TableFrame getFrame() {
|
||||
return table.getTableFrame();
|
||||
}
|
||||
|
||||
public void setTable(Table t) {
|
||||
this.table = t;
|
||||
}
|
||||
|
||||
|
||||
public Table getTable() {
|
||||
return this.table;
|
||||
}
|
||||
|
@ -528,10 +524,6 @@ public abstract class TableView extends JPanel implements Serializable {
|
|||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataCellView[] data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public DataCellView getDataCell(int location) {
|
||||
return data[location];
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public class TableFrame extends JInternalFrame implements InternalFrameListener,
|
|||
private static final long serialVersionUID = -2651279694660392351L;
|
||||
private static final ResourceBundle rb = new ResourceUtil().getBundle(
|
||||
TableFrame.class.getName());
|
||||
private TableView tableView;
|
||||
private final TableView tableView;
|
||||
private TableMenuBar tableMenuBar = null;
|
||||
|
||||
public TableFrame(String title, TableView tableView) {
|
||||
|
@ -122,10 +122,6 @@ public class TableFrame extends JInternalFrame implements InternalFrameListener,
|
|||
return tableView;
|
||||
}
|
||||
|
||||
public void setTableView(TableView v) {
|
||||
tableView = v;
|
||||
}
|
||||
|
||||
public ECUEditor getEditor() {
|
||||
return ECUEditorManager.getECUEditor();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue