Pushed to Assembla. Thanks!

Am Samstag, den 16.08.2008, 17:51 +0200 schrieb Sebastian Herbszt:

> Hello list,
> 
> when there is an error in getting the keys the finish button is disabled
> by "setPageComplete(false)" in SignWizardPage.java. It gets enabled
> again by selecting a changeset. Pressing it results in an error popup.
> The following change keeps the button disabled.
> 
> - Sebastian
> 
> diff -r e5703ada2e39 
> src/com/vectrace/MercurialEclipse/wizards/SignWizardPage.java
> --- a/src/com/vectrace/MercurialEclipse/wizards/SignWizardPage.java Wed Aug 
> 13 19:13:07 2008 +0200
> +++ b/src/com/vectrace/MercurialEclipse/wizards/SignWizardPage.java Sat Aug 
> 16 17:40:18 2008 +0200
> @@ -46,6 +46,7 @@
>      private ChangesetTable changesetTable;
>      private Text messageTextField;
>      private Text passTextField;
> +    private boolean gotGPGkeys;
>  
>      /**
>       * @param pageName
> @@ -84,7 +85,9 @@
>                  ChangeSet cs = changesetTable.getSelection();
>                  
> messageTextField.setText(Messages.getString("SignWizardPage.messageTextField.text")
>  //$NON-NLS-1$
>                          .concat(cs.toString()));
> -                setPageComplete(true);
> +                if (gotGPGkeys) {
> +                    setPageComplete(true);
> +                }
>              }
>  
>              public void widgetDefaultSelected(SelectionEvent e) {
> @@ -145,7 +148,9 @@
>                      }
>                  }
>              }
> +            gotGPGkeys = true;
>          } catch (HgException e) {
> +            gotGPGkeys = false;
>              
> combo.add(Messages.getString("SignWizardPage.errorLoadingGpgKeys")); 
> //$NON-NLS-1$
>              setPageComplete(false);
>              MercurialEclipsePlugin.logError(e);
> 
> 
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups 
> "MercurialEclipse" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/mercurialeclipse?hl=en
> -~----------~----~----~----~------~----~------~--~---
> 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to