Search in sources :

Example 1 with XJRotableToggleButton

use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.

the class DebuggerTab method panelDoClose.

public void panelDoClose(DetachablePanel panel) {
    XJRotableToggleButton button = components2toggle.get(panel);
    button.setSelected(false);
}
Also used : XJRotableToggleButton(org.antlr.xjlib.appkit.swing.XJRotableToggleButton)

Example 2 with XJRotableToggleButton

use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.

the class DebuggerTab method createToggleButton.

public XJRotableToggleButton createToggleButton(String title, final int tag, Component c) {
    XJRotableToggleButton b = new XJRotableToggleButton(title);
    b.setFocusable(false);
    b.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent e) {
            performToggleButtonAction(tag);
        }
    });
    components2toggle.put(c, b);
    return b;
}
Also used : XJRotableToggleButton(org.antlr.xjlib.appkit.swing.XJRotableToggleButton) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent)

Example 3 with XJRotableToggleButton

use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.

the class DebuggerTab method close.

public void close() {
    closing = true;
    debuggerStop(true);
    splitPanel.close();
    controlPanel.close();
    inputPanel.close();
    outputPanel.close();
    parseTreePanel.close();
    astPanel.close();
    stackPanel.close();
    eventsPanel.close();
    local.close();
    recorder.close();
    player.close();
    parseTreeModel.close();
    astModel.close();
    for (XJRotableToggleButton b : components2toggle.values()) {
        b.removeAllActionListeners();
    }
    delegate = null;
}
Also used : XJRotableToggleButton(org.antlr.xjlib.appkit.swing.XJRotableToggleButton)

Example 4 with XJRotableToggleButton

use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.

the class DebuggerTab method setComponentVisible.

public void setComponentVisible(Component c, boolean flag) {
    c.setVisible(flag);
    XJRotableToggleButton b = components2toggle.get(c);
    b.setSelected(flag);
}
Also used : XJRotableToggleButton(org.antlr.xjlib.appkit.swing.XJRotableToggleButton)

Example 5 with XJRotableToggleButton

use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.

the class DebuggerTab method panelDoAttach.

public void panelDoAttach(DetachablePanel panel) {
    Component c = splitPanel.getComponentAtIndex(panel.getTag());
    if (c != null) {
        c.setVisible(false);
        splitPanel.setComponent(null, panel.getTag());
        XJRotableToggleButton button = components2toggle.get(c);
        button.setSelected(false);
    }
    splitPanel.setComponent(panel, panel.getTag());
}
Also used : XJRotableToggleButton(org.antlr.xjlib.appkit.swing.XJRotableToggleButton)

Aggregations

XJRotableToggleButton (org.antlr.xjlib.appkit.swing.XJRotableToggleButton)6 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 DBLocal (org.antlr.works.debugger.local.DBLocal)1 DBPlayer (org.antlr.works.debugger.tivo.DBPlayer)1 DBRecorder (org.antlr.works.debugger.tivo.DBRecorder)1 DBASTPanel (org.antlr.works.debugger.tree.DBASTPanel)1 DBParseTreePanel (org.antlr.works.debugger.tree.DBParseTreePanel)1