コード例 #1
0
ファイル: Uninstaller.java プロジェクト: BrainTech/svarog
 @Override
 public void afterDeletion(List arg0, AbstractUIProgressHandler arg1) throws Exception {
   int answer =
       arg1.askQuestion(
           "Remove configuration files?",
           "Do you want to remove the configuration files for Svarog?",
           AbstractUIHandler.CHOICES_YES_NO,
           AbstractUIHandler.ANSWER_NO);
   if (answer == AbstractUIHandler.ANSWER_YES) {
     answer =
         arg1.askQuestion(
             "Curren user or all?",
             "Do you want to remove configuration files only for the current user (YES) or for all users (NO)?",
             AbstractUIHandler.CHOICES_YES_NO_CANCEL,
             AbstractUIHandler.ANSWER_CANCEL);
     if (answer == AbstractUIHandler.ANSWER_YES) {
       removeCurrentUser();
     } else if (answer == AbstractUIHandler.ANSWER_NO) removeAllProfiles();
   }
 }