コード例 #1
0
  public TaskAnnotation() {
    super(
        "Task",
        new VersionID("2.4.1"),
        "Temerity",
        "Signifies the nodes that make up a common production goal (task).");

    {
      AnnotationParam param =
          new StringAnnotationParam(
              aProjectName, "The name of the project this task part of achieving.", null);
      addParam(param);
    }

    {
      AnnotationParam param =
          new EnumAnnotationParam(
              aEntityType,
              "The Shotgun entity type owning this task or [[IGNORE]] if not using Shotgun.",
              EntityType.Ignore.toTitle(),
              EntityType.titles());
      addParam(param);
    }

    {
      AnnotationParam param =
          new StringAnnotationParam(
              aTaskName,
              "The name of the overall production goal this node is used to achieve.  "
                  + "Typically, this is the name of a shot or the asset name.",
              null);
      addParam(param);
    }

    {
      AnnotationParam param =
          new EnumAnnotationParam(
              aTaskType,
              "The standard type of production goal this node is used to achieve.",
              TaskType.Asset.toTitle(),
              TaskType.titles());
      addParam(param);
    }

    {
      AnnotationParam param =
          new StringAnnotationParam(
              aCustomTaskType,
              "A unique type of production goal this node is used to achieve which is not one "
                  + "of the standard type available in TaskType.  If a custom type is specified, the "
                  + "TaskType parameter should be set to [[CUSTOM]].",
              null);
      addParam(param);
    }

    {
      AnnotationParam param =
          new EnumAnnotationParam(
              aPurpose,
              "The way this node is intended to be used.",
              NodePurpose.Edit.toTitle(),
              NodePurpose.commonTitles());
      addParam(param);
    }

    {
      ArrayList<String> layout = new ArrayList<String>();
      layout.add(aProjectName);
      layout.add(aEntityType);
      layout.add(aTaskName);
      layout.add(aTaskType);
      layout.add(aCustomTaskType);
      layout.add(aPurpose);

      setLayout(layout);
    }
  }