コード例 #1
0
  private String findTitle(ThreadConsole console) {
    String title = console.getTitle();

    if (console.getThread().isActive())
      title += " " + LabelsFactory.get(LabelsFactory.TITLE_CONSOLE_BUSY);
    else if (console.getThread().isInterrupted())
      title += " " + LabelsFactory.get(LabelsFactory.TITLE_CONSOLE_INTERRUPTED);

    return title;
  }
コード例 #2
0
  public void addConsole(ThreadConsole console, boolean findPosition) {
    console.setTitle(findConsoleName(console.getThread()));
    int index = (findPosition) ? findConsolePosition(console) : getComponentCount();

    insertTab(findTitle(console), null, console, null, index);
  }