Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 29 |  | Methods: | 2
| NCLOC: | 18 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ASTNodePopupMenu.java | - | 0% | 0% | 0% |

1 |  | package net.sourceforge.pmd.util.viewer.gui.menu;
2 |  |
3 |  | import net.sourceforge.pmd.ast.SimpleNode;
4 |  | import net.sourceforge.pmd.util.viewer.model.ViewerModel;
5 |  |
6 |  | import javax.swing.*;
7 |  |
8 |  | /**
9 |  | * context sensetive menu for the AST Panel
10 |  | *
11 |  | * @author Boris Gruschko ( boris at gruschko.org )
12 |  | * @version $Id: ASTNodePopupMenu.java,v 1.9 2006/02/10 14:15:31 tomcopeland Exp $
13 |  | */
14 |  | public class ASTNodePopupMenu extends JPopupMenu {
15 |  | private ViewerModel model;
16 |  | private SimpleNode node;
17 |  |
18 | 0 | public ASTNodePopupMenu(ViewerModel model, SimpleNode node) {
19 | 0 | this.model = model;
20 | 0 | this.node = node;
21 | 0 | init();
22 |  | }
23 |  |
24 | 0 | private void init() {
25 | 0 | add(new SimpleNodeSubMenu(model, node));
26 | 0 | addSeparator();
27 | 0 | add(new AttributesSubMenu(model, node));
28 |  | }
29 |  | }