You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
900 B
36 lines
900 B
package com.fr.design.dcm; |
|
|
|
import com.fr.design.dialog.UIDialog; |
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import javax.swing.*; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-05-16 |
|
*/ |
|
public class UniversalDatabaseOpener { |
|
|
|
private static UIDialog dialog = null; |
|
|
|
public static UIDialog getDialog() { |
|
return dialog; |
|
} |
|
|
|
public static void showUniverseDatabaseDialog() { |
|
UniversalDatabasePane upmPane = new UniversalDatabasePane(); |
|
if (dialog == null) { |
|
dialog = new UniversalDatabaseDialog(DesignerContext.getDesignerFrame(), upmPane); |
|
} |
|
dialog.setVisible(true); |
|
} |
|
|
|
public static void closeWindow() { |
|
if (dialog != null) { |
|
dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
|
dialog.setVisible(false); |
|
dialog = null; |
|
} |
|
} |
|
}
|
|
|