Search in sources :

Example 6 with SwingInvoker

use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.

the class CProgressPanel method setSubText.

public void setSubText(final String subDescription) {
    String text = fitTextToLabel(m_description) + "\n";
    text += fitTextToLabel(subDescription);
    m_label.setText(convertTextToHtml(text));
    new SwingInvoker() {

        @Override
        public void operation() {
            m_label.updateUI();
        }
    }.invokeLater();
}
Also used : SwingInvoker(com.google.security.zynamics.zylib.gui.SwingInvoker)

Example 7 with SwingInvoker

use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.

the class CProgressPanel method setText.

public void setText(final String description) {
    m_description = description;
    String text = convertTextToHtml(description);
    text = fitTextToLabel(text);
    m_label.setText(text);
    new SwingInvoker() {

        @Override
        public void operation() {
            m_label.updateUI();
        }
    }.invokeLater();
}
Also used : SwingInvoker(com.google.security.zynamics.zylib.gui.SwingInvoker)

Example 8 with SwingInvoker

use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.

the class CMemorySectionBox method setSelectedItem.

@Override
public void setSelectedItem(final Object section) {
    if (section == null) {
        return;
    }
    for (int i = 0; i < getItemCount(); i++) {
        final CMemorySectionWrapper wrapper = getItemAt(i);
        if (wrapper == section || wrapper.getObject() == section) {
            super.setSelectedItem(wrapper);
            new SwingInvoker() {

                @Override
                protected void operation() {
                    updateUI();
                }
            }.invokeLater();
        }
    }
}
Also used : SwingInvoker(com.google.security.zynamics.zylib.gui.SwingInvoker)

Aggregations

SwingInvoker (com.google.security.zynamics.zylib.gui.SwingInvoker)8 CouldntLoadDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)2 LoadCancelledException (com.google.security.zynamics.binnavi.Database.Exceptions.LoadCancelledException)2 IDebugger (com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger)2 CDefaultProgressOperation (com.google.security.zynamics.binnavi.Gui.Progress.CDefaultProgressOperation)1 MemorySection (com.google.security.zynamics.binnavi.debug.models.processmanager.MemorySection)1 TargetProcessThread (com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread)1 INaviAddressSpace (com.google.security.zynamics.binnavi.disassembly.INaviAddressSpace)1 ILayoutSettings (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.settings.ILayoutSettings)1 ArrayList (java.util.ArrayList)1 BufferedLayouter (y.layout.BufferedLayouter)1 GraphLayout (y.layout.GraphLayout)1 LabelLayoutTranslator (y.layout.LabelLayoutTranslator)1 DefaultGraph2DRenderer (y.view.DefaultGraph2DRenderer)1 LayoutMorpher (y.view.LayoutMorpher)1