Now its possible to order LEDs

This commit is contained in:
hneemann 2016-06-10 18:05:12 +02:00
parent d5b4c4c6d9
commit 43dbcc4be7

View File

@ -363,7 +363,9 @@ public class Main extends JFrame implements ClosingWindowListener.ConfirmSave, E
ToolTipAction orderOutputs = new ToolTipAction(Lang.get("menu_orderOutputs")) {
@Override
public void actionPerformed(ActionEvent e) {
ElementOrder o = new ElementOrder(circuitComponent.getCircuit(), Out.DESCRIPTION);
ElementOrder o = new ElementOrder(circuitComponent.getCircuit(),
element -> element.equalsDescription(Out.DESCRIPTION)
|| element.equalsDescription(Out.LEDDESCRIPTION));
new ElementOrderer<>(Main.this, Lang.get("menu_orderOutputs"), o).showDialog();
}
}.setToolTip(Lang.get("menu_orderOutputs_tt"));