use of org.antlr.xjlib.appkit.swing.XJRollOverButtonToggle in project antlrworks by antlr.
the class GPanel method createShowCrossLinksButton.
private JToggleButton createShowCrossLinksButton() {
XJRollOverButtonToggle button = XJRollOverButtonToggle.createMediumButton(IconManager.shared().getIconShowLinks());
button.setSelected(true);
button.setFocusable(false);
button.setToolTipText("Show links between rules");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
for (Object o : view.getGraphs()) {
GGraphGroup gg = (GGraphGroup) o;
gg.getPathGroup().toggleShowRuleLinks();
}
view.cacheRerender();
view.repaint();
}
});
return button;
}
Aggregations