Package org.sylfra.idea.plugins.revu.model

Examples of org.sylfra.idea.plugins.revu.model.IssuePriority


  }

  @NotNull
  protected IssuePriority createDefaultDataForDialog()
  {
    return new IssuePriority();
  }
View Full Code Here


    super.internalUpdateData(data);

    List<IssuePriority> priorities = data.getItems();
    for (byte i = 0; i < priorities.size(); i++)
    {
      IssuePriority issuePriority = priorities.get(i);
      issuePriority.setOrder(i);
    }
  }
View Full Code Here

    return IssuePriority.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    IssuePriority priority = (IssuePriority) source;

    writer.addAttribute("order", String.valueOf(priority.getOrder()));
    writer.addAttribute("name", priority.getName());
  }
View Full Code Here

  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
  {
    String order = reader.getAttribute("order");
    String name = reader.getAttribute("name");

    return new IssuePriority(Byte.valueOf(order), name);
  }
View Full Code Here

  }

  @NotNull
  protected IssuePriority createDefaultDataForDialog()
  {
    return new IssuePriority();
  }
View Full Code Here

    super.internalUpdateData(data);

    List<IssuePriority> priorities = data.getItems();
    for (byte i = 0; i < priorities.size(); i++)
    {
      IssuePriority issuePriority = priorities.get(i);
      issuePriority.setOrder(i);
    }
  }
View Full Code Here

    return IssuePriority.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    IssuePriority priority = (IssuePriority) source;

    writer.addAttribute("order", String.valueOf(priority.getOrder()));
    writer.addAttribute("name", priority.getName());
  }
View Full Code Here

  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
  {
    String order = reader.getAttribute("order");
    String name = reader.getAttribute("name");

    return new IssuePriority(Byte.valueOf(order), name);
  }
View Full Code Here

TOP

Related Classes of org.sylfra.idea.plugins.revu.model.IssuePriority

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.