Search in sources :

Example 1 with CRemoteSelectionDialog

use of com.google.security.zynamics.binnavi.Gui.Debug.RemoteBrowser.CRemoteSelectionDialog 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());
        }
    }
}
Also used : ProcessDescription(com.google.security.zynamics.binnavi.debug.models.processlist.ProcessDescription) DebugExceptionWrapper(com.google.security.zynamics.binnavi.debug.debugger.DebugExceptionWrapper) CRemoteSelectionDialog(com.google.security.zynamics.binnavi.Gui.Debug.RemoteBrowser.CRemoteSelectionDialog) File(java.io.File)

Aggregations

CRemoteSelectionDialog (com.google.security.zynamics.binnavi.Gui.Debug.RemoteBrowser.CRemoteSelectionDialog)1 DebugExceptionWrapper (com.google.security.zynamics.binnavi.debug.debugger.DebugExceptionWrapper)1 ProcessDescription (com.google.security.zynamics.binnavi.debug.models.processlist.ProcessDescription)1 File (java.io.File)1