Examples of StatusInfo


Examples of org.eclipse.jdt.internal.ui.dialogs.StatusInfo

    JavaPlugin.getDefault().getDialogSettings().put(DIALOG_SETTINGS_SHOW_ALL, !selected);
  }

  private void doSelectionChanged(Object[] objects) {
    if (objects.length != 1) {
      updateStatus(new StatusInfo(IStatus.ERROR, "")); //$NON-NLS-1$
      setSelectionResult(null);
    } else {
      updateStatus(new StatusInfo());
      setSelectionResult(objects);
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.StatusInfo

    String[] buttonNames = { "Create public resource path",
        "Create package for client source" };
    this.moduleCreateElementsCheckboxes = new SelectionButtonDialogFieldGroup(
        32, buttonNames, 1);

    this.moduleContainerStatus = new StatusInfo();
    this.modulePackageStatus = new StatusInfo();
    this.moduleNameStatus = new StatusInfo();
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.StatusInfo

            return false;
        }
    }

    private void validateInput() {
        StatusInfo status = new StatusInfo();
        if (!isIntValid(fMaxCallDepth.getText())) {
            status.setError("Invalid input: expecting a number between 1 and 99");
        }
        if (!isIntValid(fMaxCallers.getText())) {
            status.setError("Invalid input: expecting a number between 1 and 99");
        }
        updateStatus(status);
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.phar.StatusInfo

        getShell(), provider, treeContentProvider);
    // dialog.setComparator(new JavaElementComparator());
    dialog.setAllowMultiple(false);
    dialog.setValidator(new ISelectionStatusValidator() {
      public IStatus validate(Object[] selection) {
        StatusInfo res = new StatusInfo();
        // only single selection
        if (selection.length == 1
            && (selection[0] instanceof IFile || selection[0] instanceof ISourceModule))
          res.setOK();
        // else
        // res.setError("");
        return res;
      }
    });
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.StatusInfo

    applyDialogFont(composite);
    return composite;
  }

  private void doValidation() {
    StatusInfo status = new StatusInfo();

    String newName = fNameDialogField.getText();
    String newPath = fPathDialogField.getText();

    if (newPath.length() == 0) {
      status.setError("Enter PEAR path.");
    }

    if (newName.length() == 0 && newPath.length() > 0) {
      int lastIndex = WINDOWS ? newPath.lastIndexOf("\\") : newPath.lastIndexOf("/");
      if (lastIndex > 0) {
        newName = newPath.substring(lastIndex + 1).replace(' ', '_');
        fNameDialogField.setText(newName);
      }
    }

    if (newName.length() == 0) {
      status.setError("Enter library name.");
    } else {
      if (!Pattern.matches("^[a-zA-Z0-9_]+$", newName)) {
        status.setError("Name can only contain letters, numbers and underscores");
      } else if (fExistingNames.contains(newName)) {
        status.setError("An entry with the same name already exists");
      }
    }

    updateStatus(status);
  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.StatusInfo

  @Override
  protected void validateSettings(Key changedKey, String oldValue,
      String newValue) {

    StatusInfo status = new StatusInfo();

    if (phpExes.getAllItems().length == 0) {
      status = new StatusInfo(StatusInfo.WARNING,
          "No PHP executable configured. Dependencies cannot be managed properly.");
    }

    if (buttonGroup != null && buttonGroup.isSelected(1)) {
      if (!validateScript(scriptField.getText())) {
        status = new StatusInfo(StatusInfo.WARNING,
            "The selected file is not a valid php script/archive.");
      }
    }

    fContext.statusChanged(status);
View Full Code Here

Examples of org.eclipse.ui.internal.statushandlers.StatusNotificationManager.StatusInfo

  /**
   * The selection in the multiple job list has changed. Update widget
   * enablements and repopulate the list.
   */
  void handleSelectionChange() {
    StatusInfo newSelection = getSingleSelection();
    if (newSelection != null && newSelection != selectedStatus) {
      selectedStatus = newSelection;
      setStatus(selectedStatus.getStatus().getStatus());
      updateEnablements();
      showDetailsArea();
View Full Code Here

Examples of org.epic.perleditor.templates.ui.dialog.StatusInfo

  }
 
  private void updateButtons() {   
    boolean valid= fNameText.getText().trim().length() != 0;

    StatusInfo status= new StatusInfo();
   
    if (!valid) {
      if (fSuppressError)
        status.setError(""); //$NON-NLS-1$             
      else
        status.setError(TemplateMessages.getString("EditTemplateDialog.error.noname")); //$NON-NLS-1$
     } else if (fTranslator.getErrorMessage() != null) {
       status.setError(fTranslator.getErrorMessage())
    }

    updateStatus(status);
  }
View Full Code Here

Examples of org.erlide.ui.util.StatusInfo

                    // return result;
                    // }
                    // } catch (CoreException e) {
                    // JavaPlugin.log(e);
                    // }
                    return new StatusInfo();
                }
                return new StatusInfo(IStatus.ERROR, "");
            }
        };
        dialog.setValidator(validator);
        dialog.setMessage(labelText);
        dialog.addFilter(filter);
View Full Code Here

Examples of org.erlide.ui.util.StatusInfo

        statusChanged(validateCommaSeparatedCharacters(erlangTriggersText.getText()));
        statusChanged(validateCommaSeparatedCharacters(eDocTriggersText.getText()));
    }

    private IStatus validateCommaSeparatedCharacters(final String text) {
        final StatusInfo status = new StatusInfo();
        status.setOK();
        if (text.length() > 1) {
            final String[] chars = text.split(",");
            for (final String c : chars) {
                if (c.trim().length() != 1) {
                    status.setError("Trigger keys should be a list of comma-separated characters");
                    break;
                }
            }
        }
        return status;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.