Revision 6464
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TOC.java | ||
---|---|---|
633 | 633 |
} |
634 | 634 |
|
635 | 635 |
// } |
636 |
if ((e.getButton() == MouseEvent.BUTTON3) |
|
637 |
&& (layers.getActives().length > 0)) { |
|
636 |
if (e.getButton() == MouseEvent.BUTTON3) { |
|
638 | 637 |
// Boton derecho sobre un nodo del arbol |
639 | 638 |
// if ((e.getModifiers() & InputEvent.META_MASK) != 0) { |
640 | 639 |
popmenu = new FPopupMenu(mapContext, node); |
... | ... | |
670 | 669 |
if (PluginServices.getMainFrame() != null) { |
671 | 670 |
PluginServices.getMainFrame().enableControls(); |
672 | 671 |
} |
672 |
} else { |
|
673 |
if (e.getButton() == MouseEvent.BUTTON3) { |
|
674 |
popmenu = new FPopupMenu(mapContext, null); |
|
675 |
tree.add(popmenu); |
|
676 |
popmenu.show(e.getComponent(), e.getX(), e.getY()); |
|
677 |
} |
|
678 |
|
|
673 | 679 |
} |
680 |
|
|
674 | 681 |
} |
675 | 682 |
|
676 | 683 |
private void selectInterval(LayerCollection layers, FLayer lyr) { |
Also available in: Unified diff