List of usage examples for org.eclipse.jface.dialogs IDialogConstants BACK_LABEL
String BACK_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants BACK_LABEL.
Click Source Link
From source file:org.talend.registration.wizards.register.AbstractBasicWizardDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false); createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, true); }
From source file:org.talend.registration.wizards.register.RegisterWizardPage2.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false); nextButton = createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, true); String password = passwordText.getText(); String password2 = passwordText2.getText(); String pseudonym = userNameText.getText(); if (!alreadyRegistered) { if (password != null && !"".equals(password) && password2 != null && !"".equals(password2) && password.equals(password2) && pseudonym != null && !"".equals(pseudonym)) { nextButton.setEnabled(true); } else {//from w w w . j a va 2 s .c o m nextButton.setEnabled(false); } } else { String oldPassword = oldPasswdText.getText(); if (oldPassword != null && oldPassword.equals(password) && pseudonym != null && !"".equals(pseudonym)) { nextButton.setEnabled(true); } else { nextButton.setEnabled(false); } } }