Skip to content
Snippets Groups Projects
Commit 2e71269e authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

prefer using WindowSwingUtils to WindowUtils

parent 25ebec27
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ import fr.soleil.comete.bean.tangotree.model.TangoTreeModel;
import fr.soleil.comete.bean.tangotree.node.AttributeNode;
import fr.soleil.comete.bean.trend.controller.CometeTrendController;
import fr.soleil.comete.swing.util.CometeUtils;
import fr.soleil.lib.project.awt.WindowUtils;
import fr.soleil.lib.project.swing.WindowSwingUtils;
public class AttributeSelectionPanel extends JPanel {
......@@ -126,7 +126,7 @@ public class AttributeSelectionPanel extends JPanel {
});
dismissButton.addActionListener((e) -> {
Window window = WindowUtils.getWindowForComponent(dismissButton);
Window window = WindowSwingUtils.getWindowForComponent(dismissButton);
if (window != null) {
window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING));
window.setVisible(false);
......
......@@ -28,7 +28,7 @@ import fr.soleil.comete.swing.util.EDTManager;
import fr.soleil.data.service.HistoryKey;
import fr.soleil.data.service.IKey;
import fr.soleil.lib.project.ObjectUtils;
import fr.soleil.lib.project.awt.WindowUtils;
import fr.soleil.lib.project.swing.WindowSwingUtils;
public class ChartPanel extends JPanel implements ITrendFileListener, IChartViewerListener {
......@@ -271,7 +271,7 @@ public class ChartPanel extends JPanel implements ITrendFileListener, IChartView
String configuration;
if (isCometeTrendSettings()) {
// CONTROLGUI-380: save settings is linked to CometeTrend
Window window = WindowUtils.getWindowForComponent(this);
Window window = WindowSwingUtils.getWindowForComponent(this);
if (window instanceof CometeTrend) {
configuration = ((CometeTrend) window).appendCometeTrendConfiguration(null).toString();
} else {
......
......@@ -25,7 +25,7 @@ import fr.soleil.comete.bean.trend.controller.TrendEvent;
import fr.soleil.comete.bean.trend.controller.TrendEvent.EventType;
import fr.soleil.comete.bean.trend.model.TrendFile;
import fr.soleil.lib.project.ObjectUtils;
import fr.soleil.lib.project.awt.WindowUtils;
import fr.soleil.lib.project.swing.WindowSwingUtils;
import fr.soleil.lib.project.swing.model.SortTreeModel;
public class TrendMenu implements ITrendFileListener {
......@@ -457,7 +457,7 @@ public class TrendMenu implements ITrendFileListener {
public void addAttributesAction() {
if (attributeSelectionDialog == null) {
attributeSelectionDialog = new JDialog(
WindowUtils.getWindowForComponent(ObjectUtils.recoverObject(parentReference)));
WindowSwingUtils.getWindowForComponent(ObjectUtils.recoverObject(parentReference)));
attributeSelectionDialog.setContentPane(attributePanel);
attributeSelectionDialog.setModal(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment