mbien commented on code in PR #7155:
URL: https://github.com/apache/netbeans/pull/7155#discussion_r1527413622
##########
nb/o.n.upgrader/src/org/netbeans/upgrade/AutoUpgrade.java:
##########
@@ -133,73 +94,13 @@ private static boolean showUpgradeDialog (final File
source, String note) {
JButton bNO = new JButton("No");
bNO.setMnemonic(KeyEvent.VK_N);
JButton[] options = new JButton[] {bYES, bNO};
- JOptionPane p = new JOptionPane (panel, JOptionPane.QUESTION_MESSAGE,
JOptionPane.YES_NO_OPTION, null, options, bYES);
- JDialog d = Util.createJOptionProgressDialog(p, NbBundle.getMessage
(AutoUpgrade.class, "MSG_Confirmation_Title"), source, progressBar);
+ JOptionPane p = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE,
JOptionPane.YES_NO_OPTION, null, options, bYES);
+ JDialog d = Util.createJOptionProgressDialog(p,
NbBundle.getMessage(AutoUpgrade.class, "MSG_Confirmation_Title"), source,
progressBar);
d.setVisible (true);
return Integer.valueOf(JOptionPane.YES_OPTION).equals (p.getValue ());
}
- private static void showNoteDialog (String note) {
- Util.setDefaultLookAndFeel();
- JOptionPane p = new JOptionPane(new AutoUpgradePanel (null, note),
JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION);
- JDialog d = Util.createJOptionDialog(p, NbBundle.getMessage
(AutoUpgrade.class, "MSG_Note_Title"));
- d.setVisible (true);
- }
-
- static void doUpgrade (File source, String oldVersion)
Review Comment:
I moved the test from AutoUpgrade to CopyTest.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists