.. | .. |
---|
1043 | 1043 | // maxButton.addActionListener(this); |
---|
1044 | 1044 | } |
---|
1045 | 1045 | |
---|
1046 | | -// cButton gcButton; |
---|
1047 | | -// |
---|
| 1046 | + cButton gcButton; |
---|
| 1047 | + |
---|
1048 | 1048 | // oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1049 | 1049 | // gcButton.setToolTipText("Garbage collect"); |
---|
1050 | 1050 | // gcButton.addActionListener(new ActionListener() |
---|
.. | .. |
---|
5325 | 5325 | |
---|
5326 | 5326 | boolean allComposites = true; |
---|
5327 | 5327 | |
---|
| 5328 | + if (group.selection != null) |
---|
5328 | 5329 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
5329 | 5330 | { |
---|
5330 | 5331 | if (!(e.nextElement() instanceof Composite)) |
---|