package jdepend.client.report.ui; import java.awt.BorderLayout; import javax.swing.JDialog; import jdepend.framework.ui.component.JDependFrame; import jdepend.framework.ui.dialog.CooperDialog; import jdepend.model.Relation; import jdepend.model.RelationData; import jdepend.client.report.way.mapui.GraphPanel; public class RelationDetailForMoveDialog extends CooperDialog { private JDependFrame frame; private JDialog parentDialog; public RelationDetailForMoveDialog(JDependFrame frame, JDialog parentDialog, Relation relation) { this.frame = frame; this.parentDialog = parentDialog; this.setLayout(new BorderLayout()); RelationData relationData = new RelationData(relation); relationData.init(); relationData.appendRelations(relation.getResult().getComponents()); this.add(new GraphPanel(this.frame, this, relationData.getRelations())); } @Override public void dispose() { if (this.parentDialog != null) { this.parentDialog.dispose(); } super.dispose(); } }