// Path: src/com/github/kennedyoliveira/ultimatepastebin/i18n/MessageBundle.java
// @Nullable
// public static String getMessage(String key, Object... params) {
//   return CommonBundle.message(getBundle(), key, params);
// }


import com.github.kennedyoliveira.pastebin4j.Paste;
import javax.swing.*;
import static com.github.kennedyoliveira.ultimatepastebin.i18n.MessageBundle.getMessage;
package com.github.kennedyoliveira.ultimatepastebin.ui;




/**
 * <p>>Wraps a {@link com.github.kennedyoliveira.pastebin4j.Paste} to make easy identifying
 * paste nodes.</p
 *
 * @author kennedy
 */
public class PasteNode implements IconVisitable {

  private Paste paste;

  public PasteNode(Paste paste) {
    this.paste = paste;
  }

  public Paste getPaste() {
    return paste;
  }

  @Override
  public String toString() {
// Path: src/com/github/kennedyoliveira/ultimatepastebin/i18n/MessageBundle.java
// @Nullable
// public static String getMessage(String key, Object... params) {
//   return CommonBundle.message(getBundle(), key, params);
// }


// Path: src/com/github/kennedyoliveira/ultimatepastebin/ui/PasteNode.java
import com.github.kennedyoliveira.pastebin4j.Paste;
import javax.swing.*;
import static com.github.kennedyoliveira.ultimatepastebin.i18n.MessageBundle.getMessage;

package com.github.kennedyoliveira.ultimatepastebin.ui;




/**
 * <p>>Wraps a {@link com.github.kennedyoliveira.pastebin4j.Paste} to make easy identifying
 * paste nodes.</p
 *
 * @author kennedy
 */
public class PasteNode implements IconVisitable {

  private Paste paste;

  public PasteNode(Paste paste) {
    this.paste = paste;
  }

  public Paste getPaste() {
    return paste;
  }

  @Override
  public String toString() {
    return paste.getTitle() == null || paste.getTitle().isEmpty() ? getMessage("ultimatepastebin.paste.untitled") : paste.getTitle();