Fix a bug in the Utils.isMacOS function and remove some unused functions.
| | |
| | | import javax.swing.JFrame; |
| | | import javax.swing.JPanel; |
| | | import javax.swing.SwingUtilities; |
| | | import javax.swing.WindowConstants; |
| | | |
| | | import org.opends.quicksetup.ButtonName; |
| | | import org.opends.quicksetup.CurrentInstallStatus; |
| | |
| | | } |
| | | } |
| | | }); |
| | | frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); |
| | | frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); |
| | | UIFactory.IconType ic; |
| | | if (Utils.isMacOS()) |
| | | { |
| | |
| | | b.setToolTipText(tooltip); |
| | | } |
| | | |
| | | b.setOpaque(false); |
| | | |
| | | return b; |
| | | } |
| | | |
| | |
| | | Utils.getCommandLineMaxLineWidth()); |
| | | } |
| | | |
| | | private static String getMsg(String key, String[] args) |
| | | { |
| | | return org.opends.server.util.StaticUtils.wrapText( |
| | | getI18n().getMsg(key, args), Utils.getCommandLineMaxLineWidth()); |
| | | } |
| | | |
| | | private static ResourceProvider getI18n() |
| | | { |
| | | return ResourceProvider.getInstance(); |
| | |
| | | /* Create these objects to resend the stop process output to the details |
| | | * area. |
| | | */ |
| | | StopReader errorReader = new StopReader(err, true); |
| | | StopReader outputReader = new StopReader(out, false); |
| | | new StopReader(err, true); |
| | | new StopReader(out, false); |
| | | |
| | | int returnValue = process.waitFor(); |
| | | |
| | |
| | | */ |
| | | public static boolean isMacOS() |
| | | { |
| | | return containsOsProperty("Mac OS"); |
| | | return containsOsProperty("mac os"); |
| | | } |
| | | |
| | | /** |
| | |
| | | quitClicked(); |
| | | } |
| | | }); |
| | | setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); |
| | | setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); |
| | | UIFactory.IconType ic; |
| | | if (Utils.isMacOS()) |
| | | { |