Search in sources :

Example 1 with IProgressThread

use of com.google.security.zynamics.binnavi.API.helpers.IProgressThread in project binnavi by google.

the class FunctionTreeFunctionNode method doubleClicked.

@Override
public void doubleClicked() {
    if (!m_function.isLoaded()) {
        ProgressDialog.show(m_parent, "Loading Function", new IProgressThread() {

            @Override
            public boolean close() {
                return false;
            }

            @Override
            public void run() {
                try {
                    m_function.load();
                } catch (final CouldntLoadDataException e) {
                    Logger.logException(e);
                    MessageBox.showException(m_parent, e, "Function could not be loaded.");
                }
            }
        });
    }
}
Also used : IProgressThread(com.google.security.zynamics.binnavi.API.helpers.IProgressThread) CouldntLoadDataException(com.google.security.zynamics.binnavi.API.disassembly.CouldntLoadDataException)

Aggregations

CouldntLoadDataException (com.google.security.zynamics.binnavi.API.disassembly.CouldntLoadDataException)1 IProgressThread (com.google.security.zynamics.binnavi.API.helpers.IProgressThread)1