Package org.eclipse.dltk.ui.dialogs

Examples of org.eclipse.dltk.ui.dialogs.StatusInfo


    super();
    setImageDescriptor(PDTPluginImages.DESC_WIZBAN_NEW_PHPCLASS);
    this.selection = selection;
    this.initialFilename = initialFileName;

    status = new StatusInfo();
  }
View Full Code Here


      }
    });
  }

  protected StatusInfo classModifiedChanged() {
    StatusInfo status = new StatusInfo();
    if (classModifierField.getSelectionButton(IS_ABSTRACT_INDEX).getSelection()
        && classModifierField.getSelectionButton(IS_FINAL_INDEX).getSelection()) {
      status.setError("A class cannot be abstract and final at the same time");
    }
    return status;
  }
View Full Code Here

    });
   
  }

  private StatusInfo filenameChanged() {
    StatusInfo status = new StatusInfo();
    if (!fileNameField.equals("") && getScriptFolder().getSourceModule(fileNameField.getText()).exists()) { //$NON-NLS-1$
      status.setError("The specified class already exists");
      return status;
    }

    int dotIndex = fileNameField.getText().lastIndexOf('.');
    if ((fileNameField.getText().length() == 0 || dotIndex == 0) && fileNameField.getText().length() > 0) {
      status.setError(PHPUIMessages.PHPFileCreationWizardPage_15);
      return status;
    }

    if (dotIndex != -1) {
      String fileNameWithoutExtention = fileNameField.getText().substring(0, dotIndex);
      for (int i = 0; i < fileNameWithoutExtention.length(); i++) {
        char ch = fileNameWithoutExtention.charAt(i);
        if (!(Character.isJavaIdentifierPart(ch) || ch == '.' || ch == '-')) {
          status.setError(PHPUIMessages.PHPFileCreationWizardPage_16); //$NON-NLS-1$
          return status;
        }
      }
    }
    return status;
View Full Code Here

    });
   
  }

  protected StatusInfo nameChanged() {
    StatusInfo status = new StatusInfo();
    if (classNameField.getText().length() == 0) {
      status.setError("Enter name of class.");
      fileNameField.setTextWithoutUpdate("");
    } else {
      fileNameField.setText(classNameField.getText() + ".php");
    }

    if (classNameField.getText().length() > 0 && Character.isLowerCase(classNameField.getText().charAt(0))) {
      status.setWarning("Classes starting with lowercase letters are discouraged");
    }

    return status;
  }
View Full Code Here

    super();
    setImageDescriptor(PDTPluginImages.DESC_WIZBAN_NEW_PHPINTERFACE);
    this.selection = selection;
    this.initialFilename = initialFileName;

    status = new StatusInfo();
  }
View Full Code Here

  private Map fData; // page data

  public static final String DATA_NO_LINK = "PropertyAndPreferencePage.nolink"; //$NON-NLS-1$

  public PropertyAndPreferencePage() {
    fBlockStatus = new StatusInfo();
    fBlockEnableState = null;
    fProject = null;
    fData = null;
  }
View Full Code Here

  protected void doStatusChanged() {
    if (!isProjectPreferencePage() || useProjectSettings()) {
      updateStatus(fBlockStatus);
    } else {
      updateStatus(new StatusInfo());
    }
  }
View Full Code Here

        // if (ext.equalsIgnoreCase("twig") == false) {
        // updateStatus("File extension must be \"twig\"");
        // return;
        // }
        // }
        updateStatus(new IStatus[]{new StatusInfo()});
    }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ui.dialogs.StatusInfo

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.