Revision 39114
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/ui/mdiFrame/MDIFrame.java | ||
---|---|---|
554 | 554 |
javax.swing.JMenu parentItem = (javax.swing.JMenu) parent; |
555 | 555 |
|
556 | 556 |
for (int i = 0; i < parentItem.getMenuComponentCount(); i++) { |
557 |
if ((parentItem.getMenuComponent(i).getName() != null // not a |
|
558 |
// JToolBar.Separator
|
|
559 |
)
|
|
560 |
&& (parentItem.getMenuComponent(i).getName()
|
|
561 |
.compareTo((String) nombres.get(0)) == 0)) { |
|
557 |
|
|
558 |
String item_name = parentItem.getMenuComponent(i).getName();
|
|
559 |
if ((item_name != null) // not a JToolBar.Separator
|
|
560 |
&& (item_name.compareTo((String) nombres.get(0)) == 0)) {
|
|
561 |
|
|
562 | 562 |
nombres.remove(0); |
563 | 563 |
if (nombres.isEmpty()) { |
564 | 564 |
if (parentItem.getMenuComponent(i) instanceof javax.swing.JMenuItem) { |
Also available in: Unified diff