protected void updatePreference() throws Exception { try { timerProcesses.setDelay(preference.getProcessUpdateInterval() * 1000); timerResources.setDelay(Preference.getResourceUpdateinterval() * 1000); timerFileSystems.setDelay(preference.getFileSystemsUpdateInterval() * 1000); panelProcesses.setPreference(preference); panelResources.setPreference(preference); panelFileSystems.setPreference(preference); if (sshSession.isConnected()) { FileSystemInfo fileSystemInfo = FileSystemInfo.factory(sshSession); panelFileSystems.display(fileSystemInfo); ProcessInfo processinfo = ProcessInfo.factory(sshSession, sshUserInfo); panelProcesses.display(processinfo); } setProcessMenuItemsEnabled(); repaint(); } catch (Exception e) { e.printStackTrace(); throw e; } }
public void actionPerformed(ActionEvent e) { try { FileSystemInfo fileSystemInfo = FileSystemInfo.factory(sshSession); panelFileSystems.display(fileSystemInfo); } catch (Exception e1) { e1.printStackTrace(); } }