Package org.trzcinka.intellitrac.dto

Examples of org.trzcinka.intellitrac.dto.TicketChange


    ListCellRendererUtils.applyDefaultDisplaySettings(list, index, isSelected, cellHasFocus, this);
    if (!(value instanceof TicketChange)) {
      throw new IllegalArgumentException("value must be TicketChange instance");
    }
    TicketChange change = (TicketChange) value;

    ResourceBundle bundle = BundleLocator.getBundle();
    DateFormat format = new SimpleDateFormat(bundle.getString("tool_window.tickets.ticket_editor.change_history.date_format"));
    StringBuilder text = new StringBuilder(MessageFormat.format(bundle.getString("tool_window.tickets.ticket_editor.change_history.change_header"), format.format(change.getTime()), change.getAuthor()));
    if (TicketChange.COMMENT.equals(change.getField())) {
      text.append(bundle.getString("tool_window.tickets.ticket_editor.change_history.added_comment"));
    } else {
      text.append(MessageFormat.format(bundle.getString("tool_window.tickets.ticket_editor.change_history.change_info"), change.getField(), change.getOldValue(), change.getNewValue()));
    }

    setText(text.toString());

    return this;
View Full Code Here


    setContentPane(contentPane);
    setModal(true);

    changesList.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        TicketChange ticketChange = (TicketChange) changesList.getSelectedValue();
        if (ticketChange.getField().equals(TicketChange.COMMENT)) {
          String value = ticketChange.getNewValue();
          try {
            commentPane.setText(TracGatewayLocator.retrieveTracGateway().wikiToHtml(value));
          } catch (ConnectionFailedException e1) {
            TracGatewayLocator.handleConnectionProblem();
          }
View Full Code Here

TOP

Related Classes of org.trzcinka.intellitrac.dto.TicketChange

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.