Package org.cloudfoundry.ide.eclipse.server.ui.internal

Examples of org.cloudfoundry.ide.eclipse.server.ui.internal.UpdatePasswordDialog


          if (!confirm) {
            return;
          }
        }

        UpdatePasswordDialog dialog = new UpdatePasswordDialog(getShell(), cfServer.getUsername());

        if (dialog.open() == IDialogConstants.OK_ID) {
          final String newPassword = dialog.getPassword();
          String errorMsg = CloudUiUtil.updatePassword(newPassword, cfServer, server);

          if (errorMsg != null) {
            validateLabel.setText(errorMsg);
            validateLabel.setForeground(validateLabel.getDisplay().getSystemColor(SWT.COLOR_RED));
View Full Code Here


  public Object execute(ExecutionEvent event) throws ExecutionException {
    initializeSelection(event);
    IServerWorkingCopy wc = selectedServer.createWorkingCopy();
    final CloudFoundryServer cfServer = (CloudFoundryServer) wc.loadAdapter(CloudFoundryServer.class, null);
    final UpdatePasswordDialog dialog = new UpdatePasswordDialog(Display.getDefault().getActiveShell(), cfServer.getUsername());
   
    if (dialog.open() == IDialogConstants.OK_ID) {
      String errorMsg = CloudUiUtil.updatePassword(dialog.getPassword(), cfServer, wc);
      if (errorMsg != null) {
        MessageDialog.openError(Display.getDefault().getActiveShell(), Messages.UpdatePasswordCommand_TEXT_PW_UPDATE, NLS.bind(Messages.UpdatePasswordCommand_ERROR_PW_UPDATE_BODY, errorMsg));
      } else {
        MessageDialog.openInformation(Display.getDefault().getActiveShell(), Messages.UpdatePasswordCommand_TEXT_PW_UPDATE, Messages.UpdatePasswordCommand_TEXT_PW_UPDATE_SUCC);
      }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.ui.internal.UpdatePasswordDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.