protected IProject findDestProject() {
    IContainer c = SVFileUtils.getWorkspaceFolder(getOption(SOURCE_FOLDER, ""));

    if (c == null) {
      return null;
    } else if (c instanceof IProject) {
      return (IProject) c;
    } else {
      return c.getProject();
    }
  }
  protected void validate() {
    setErrorMessage(null);
    if (!SVCharacter.isSVIdentifier(getOption(NAME, ""))) {
      setErrorMessage("Invalid class name format");
    }

    IContainer c = SVFileUtils.getWorkspaceFolder(getOption(SOURCE_FOLDER, ""));
    if (c != null) {
      String filename_str = getOption(FILE_NAME, null);
      if (filename_str != null && !filename_str.equals("")) {
        IFile f = c.getFile(new Path(filename_str));
        if (f.exists()) {
          setErrorMessage("File \"" + filename_str + "\" exists");
        }
      }
    } else {
      setErrorMessage("Directory \"" + getOption(SOURCE_FOLDER, "") + "\" does not exist");
    }

    setPageComplete((getErrorMessage() == null));
  }