Revision 38063 trunk/extensions/extWMS/src/com/iver/cit/gvsig/gui/toc/WMSPropsTocMenuEntry.java
WMSPropsTocMenuEntry.java | ||
---|---|---|
54 | 54 |
public class WMSPropsTocMenuEntry extends TocMenuEntry { |
55 | 55 |
private JMenuItem propsMenuItem; |
56 | 56 |
FLayer lyr = null; |
57 |
|
|
57 |
|
|
58 | 58 |
public void initialize(FPopupMenu m) { |
59 | 59 |
super.initialize(m); |
60 |
|
|
60 |
|
|
61 | 61 |
if (isTocItemBranch()) { |
62 | 62 |
lyr = getNodeLayer(); |
63 | 63 |
if ((lyr instanceof FLyrWMS)) { |
64 | 64 |
propsMenuItem = new JMenuItem(PluginServices.getText(this, "wms_properties")); |
65 | 65 |
getMenu().add( propsMenuItem ); |
66 |
propsMenuItem.setFont(FPopupMenu.theFont); |
|
67 | 66 |
getMenu().setEnabled(true); |
68 |
propsMenuItem.addActionListener(this);
|
|
67 |
propsMenuItem.addActionListener(this); |
|
69 | 68 |
} |
70 | 69 |
} |
71 | 70 |
} |
72 |
|
|
71 |
|
|
73 | 72 |
public void actionPerformed(ActionEvent e) { |
74 | 73 |
lyr = getNodeLayer(); |
75 | 74 |
if (lyr.isAvailable()) { |
Also available in: Unified diff