Class AbstractAddTask

    • Constructor Detail

      • AbstractAddTask

        protected AbstractAddTask​(String name,
                                  FormItemContainer parent)
        Constructor for initialize abstract task fields. By a call of this constructor the new form item will be added to the end of the parent.
        Parameters:
        name - the task name. (The name can not be null).
        parent - the parental container for which the new item will be added. (The parent can not be null).
      • AbstractAddTask

        protected AbstractAddTask​(String name,
                                  FormItemContainer parent,
                                  int index)
        Constructor for initialize abstract task fields.
        Parameters:
        name - the task name. (The name can not be null).
        parent - parent the parental container for which the new item will be added. (The parent can not be null).
        index - the position index to which will be added an item.
    • Method Detail

      • add

        protected abstract org.eclipse.core.runtime.IStatus add​(Form form,
                                                                FormItemContainer parent)
        The method add new FormItem
        Parameters:
        form - the form in which there are all objects.
        parent - the parental element to which the field will be added.
        Returns:
        the status of operation.
      • add

        protected abstract org.eclipse.core.runtime.IStatus add​(Form form,
                                                                FormItemContainer parent,
                                                                int index)
        The method add new FormItem
        Parameters:
        form - the form in which there are all objects.
        parent - the parental element to which the field will be added.
        index - the position index to which will be added an item.
        Returns:
        the status of operation.
      • getName

        protected static String getName​(String itemName)
        Creates a new task name.
        Parameters:
        itemName - the new item name, cannot be null
        Returns:
        a new name, never null