Search in sources :

Example 1 with CModuleFilterCreator

use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.filters.CModuleFilterCreator in project binnavi by google.

the class CAddressSpaceNodeComponent method createGui.

/**
   * Creates all the necessary GUI components of this component.
   */
private void createGui() {
    final JPanel topPanel = new JPanel(new BorderLayout());
    final JPanel innerTopPanel = new JPanel(new BorderLayout());
    final JPanel debuggerChooserPanel = new JPanel(new BorderLayout());
    debuggerChooserPanel.setBorder(new TitledBorder("Address Space Debugger"));
    m_debuggerCombo = new CDebuggerComboBox(new CDebuggerComboModel(m_debuggerContainer));
    m_debuggerCombo.setSelectedDebugger(m_addressSpace.getConfiguration().getDebuggerTemplate());
    final JPanel debuggerComboPanel = new JPanel(new BorderLayout());
    debuggerComboPanel.add(m_debuggerCombo, BorderLayout.CENTER);
    debuggerChooserPanel.add(debuggerComboPanel, BorderLayout.CENTER);
    innerTopPanel.add(m_stdEditPanel);
    innerTopPanel.add(debuggerChooserPanel, BorderLayout.SOUTH);
    topPanel.add(innerTopPanel);
    final JPanel buttonPanel = new JPanel(new GridLayout(1, 2));
    buttonPanel.setBorder(new EmptyBorder(0, 0, 5, 2));
    buttonPanel.add(new JPanel());
    buttonPanel.add(m_saveButton);
    topPanel.add(buttonPanel, BorderLayout.SOUTH);
    final JPanel bottomPanel = new CTablePanel<INaviModule>(m_table, new CModuleFilterCreator(), new CModuleFilterHelp());
    bottomPanel.setBorder(m_titledBorder);
    bottomPanel.add(new JScrollPane(m_table));
    final JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, topPanel, bottomPanel);
    splitPane.setOneTouchExpandable(true);
    splitPane.setDividerLocation(splitPane.getMinimumDividerLocation());
    splitPane.setResizeWeight(0.5);
    setBorder(new EmptyBorder(0, 0, 0, 1));
    add(splitPane);
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) CDebuggerComboModel(com.google.security.zynamics.binnavi.Gui.DebuggerComboBox.CDebuggerComboModel) GridLayout(java.awt.GridLayout) BorderLayout(java.awt.BorderLayout) CModuleFilterCreator(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.filters.CModuleFilterCreator) CDebuggerComboBox(com.google.security.zynamics.binnavi.Gui.DebuggerComboBox.CDebuggerComboBox) CModuleFilterHelp(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.AddressSpace.Component.Help.CModuleFilterHelp) TitledBorder(javax.swing.border.TitledBorder) EmptyBorder(javax.swing.border.EmptyBorder) JSplitPane(javax.swing.JSplitPane) CTablePanel(com.google.security.zynamics.binnavi.Gui.FilterPanel.CTablePanel)

Aggregations

CDebuggerComboBox (com.google.security.zynamics.binnavi.Gui.DebuggerComboBox.CDebuggerComboBox)1 CDebuggerComboModel (com.google.security.zynamics.binnavi.Gui.DebuggerComboBox.CDebuggerComboModel)1 CTablePanel (com.google.security.zynamics.binnavi.Gui.FilterPanel.CTablePanel)1 CModuleFilterHelp (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.AddressSpace.Component.Help.CModuleFilterHelp)1 CModuleFilterCreator (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.filters.CModuleFilterCreator)1 BorderLayout (java.awt.BorderLayout)1 GridLayout (java.awt.GridLayout)1 JPanel (javax.swing.JPanel)1 JScrollPane (javax.swing.JScrollPane)1 JSplitPane (javax.swing.JSplitPane)1 EmptyBorder (javax.swing.border.EmptyBorder)1 TitledBorder (javax.swing.border.TitledBorder)1