use of com.google.security.zynamics.binnavi.debug.models.processlist.ProcessDescription in project binnavi by google.
the class CRemoteFileBrowserLoader method showRemoteBrowser.
/**
* Shows the remote browsing dialog.
*/
private void showRemoteBrowser() {
final CRemoteSelectionDialog dlg = CRemoteSelectionDialog.show(m_parent, m_debugger, m_fileSystem, m_processList);
final File selectedFile = dlg.getSelectedFile();
final ProcessDescription selectedProcess = dlg.getSelectedProcess();
if (selectedFile != null) {
try {
m_debugger.selectFile(selectedFile.getAbsolutePath());
m_selectedTarget = true;
} catch (final DebugExceptionWrapper e) {
CUtilityFunctions.logException(m_loaderThread.getException());
final String message = "E00039: " + "Could not send target file request";
final String description = CUtilityFunctions.createDescription("BinNavi could not send the target file request to the debug client.", new String[] { "The connection to the debug client was closed before" + " the request could be sent." }, new String[] { "There is still no debug target selected." });
NaviErrorDialog.show(m_parent, message, description, m_loaderThread.getException());
}
} else if (selectedProcess != null) {
try {
m_debugger.selectProcess(selectedProcess.getPID());
m_selectedTarget = true;
} catch (final DebugExceptionWrapper e) {
CUtilityFunctions.logException(m_loaderThread.getException());
final String message = "E00040: " + "Could not send target process request";
final String description = CUtilityFunctions.createDescription("BinNavi could not send the target process request to the debug client.", new String[] { "The connection to the debug client was closed before the" + "request could be sent." }, new String[] { "There is still not debug target selected." });
NaviErrorDialog.show(m_parent, message, description, m_loaderThread.getException());
}
}
}
Aggregations