Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IStatus.matches()


   */
  public static IStatus getMostSevere(IStatus[] status) {
    IStatus max = null;
    for (int i = 0; i < status.length; i++) {
      IStatus curr = status[i];
      if (curr.matches(IStatus.ERROR)) {
        return curr;
      }
      if (max == null || curr.getSeverity() > max.getSeverity()) {
        max = curr;
      }
View Full Code Here


  private void numberFieldChanged(Text textControl)
  {
    String number = textControl.getText();
    IStatus status = validatePositiveNumber(number);
    if(!status.matches(4))
      fOverlayStore.setValue((String)fTextFields.get(textControl), number);
    updateStatus(status);
  }

  private IStatus validatePositiveNumber(String number)
View Full Code Here

  private void numberFieldChanged(Text textControl)
  {
    String number = textControl.getText();
    IStatus status = validatePositiveNumber(number);
    if(!status.matches(4))
      fOverlayStore.setValue((String)fTextFields.get(textControl), number);
    updateStatus(status);
  }

  private void textFieldChanged(Text textControl)
View Full Code Here

  private void textFieldChanged(Text textControl)
  {
    String tagName = textControl.getText();
    IStatus status = validateCFTagName(tagName);
    if(!status.matches(4))
        fOverlayStore.setValue((String)fTextFields.get(textControl), textControl.getText());
    updateStatus(status);
  }

  private IStatus validatePositiveNumber(String number)
View Full Code Here

  }

  private void numberFieldChanged(Text textControl) {
    String number = textControl.getText();
    IStatus status = validatePositiveNumber(number, (String[]) getNumberFields().get(textControl));
    if (!status.matches(IStatus.ERROR)) {
      getOverlayStore().setValue((String) getTextFields().get(textControl), number);
    }
    updateStatus(status);
  }
View Full Code Here

   */
  private IStatus getMostSevere(List statusList) {
    IStatus max = null;
    for (int i = 0; i < statusList.size(); i++) {
      IStatus curr = (IStatus) statusList.get(i);
      if (curr.matches(IStatus.ERROR)) {
        return curr;
      }
      if (max == null || curr.getSeverity() > max.getSeverity()) {
        max = curr;
      }
View Full Code Here

 
  /* -----------------  ----------------- */
 
  public static void handleOperationStatus(String dialogTitle, CoreException ce) {
    IStatus status = ce.getStatus();
    if(status.isOK() || status.matches(IStatus.CANCEL)) {
      return;
    }
   
    boolean logError = status.matches(IStatus.ERROR);
   
View Full Code Here

    IStatus status = ce.getStatus();
    if(status.isOK() || status.matches(IStatus.CANCEL)) {
      return;
    }
   
    boolean logError = status.matches(IStatus.ERROR);
   
    handleWithErrorDialog(logError, dialogTitle, ce.getMessage(), ce.getCause());
  }
 
  public static void handleOperationStatus(String dialogTitle, CommonException ce) {
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.