public void showLocalLogs() { for (LogFile logFile : LogRepository.getInstance().getLocalLogs()) { try { logFile.loadHeaders(); this.getLocalFileSystemPanel().addLogFile(logFile); } catch (Exception e) { JOptionPane.showMessageDialog( null, "Failed Loading/Adding local log (" + logFile.getName() + "), skipped.\nReason: " + e.getLocalizedMessage(), "WARNING", JOptionPane.WARNING_MESSAGE); } } }
public void addLogUpload(LogFile logFile) { if (RemoteLogRepositoryBackend.getInstance().isConnected()) { RemoteLogRepositoryBackend.getInstance().enqueueUpload(logFile); JProgressBar jpb = new JProgressBar(); jpb.setStringPainted(true); jpb.setString("Requesting"); this._middlePanel._uploadsPanel.addRow(new JLabel(logFile.getName()), jpb); } }