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; }
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); }