< prev index next >

src/com/sun/javatest/exec/TestTreePanel.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg


1566         }
1567         msPanel.setNodes(leaves);
1568 
1569         // get rid of the test panel and show the branch panel
1570         if (deck.getCurrentCard() != msPanel) {
1571             deck.show(msPanel);
1572             activeTest = null;
1573         }
1574 
1575         // configure the right side title
1576         titleField.setText(uif.getI18NString("treep.ms"));
1577 
1578         msPanel.setVisible(true);
1579         deckPanel.repaint();
1580     }
1581 
1582     /**
1583      * @param prefix i18n bundle prefix
1584      * @param args Arguments for the user message string, which is prefix.txt.
1585      */
1586     private int showConfirmListDialog(String prefix, Object[] args, ListModel model) {
1587         // resources needed:
1588         // prefix.title
1589         JPanel p = uif.createPanel("ttp.confirmPanel", false);
1590         JTextArea msg = uif.createMessageArea(prefix, args);
1591         p.setLayout(new BorderLayout());
1592         p.add(msg, BorderLayout.NORTH);
1593 
1594         JList list = uif.createList("treep.nodeList", model);
1595         p.add(uif.createScrollPane(list,
1596                 ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
1597                 ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), BorderLayout.CENTER);
1598 
1599         return uif.showCustomYesNoDialog(prefix, p);
1600     }
1601 
1602     /**
1603      * Does this panel currently have data to work from.
1604      */
1605     private boolean isPopulated() {
1606         if (params == null || params.getTestSuite() == null) {
1607             return false;
1608         } else {
1609             return true;
1610         }
1611     }
1612     private UIFactory uif;
1613     private Harness harness;
1614     private FilterSelectionHandler filterHandler;




1566         }
1567         msPanel.setNodes(leaves);
1568 
1569         // get rid of the test panel and show the branch panel
1570         if (deck.getCurrentCard() != msPanel) {
1571             deck.show(msPanel);
1572             activeTest = null;
1573         }
1574 
1575         // configure the right side title
1576         titleField.setText(uif.getI18NString("treep.ms"));
1577 
1578         msPanel.setVisible(true);
1579         deckPanel.repaint();
1580     }
1581 
1582     /**
1583      * @param prefix i18n bundle prefix
1584      * @param args Arguments for the user message string, which is prefix.txt.
1585      */
1586     private int showConfirmListDialog(String prefix, Object[] args, ListModel<?> model) {
1587         // resources needed:
1588         // prefix.title
1589         JPanel p = uif.createPanel("ttp.confirmPanel", false);
1590         JTextArea msg = uif.createMessageArea(prefix, args);
1591         p.setLayout(new BorderLayout());
1592         p.add(msg, BorderLayout.NORTH);
1593 
1594         JList<?> list = uif.createList("treep.nodeList", model);
1595         p.add(uif.createScrollPane(list,
1596                 ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
1597                 ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), BorderLayout.CENTER);
1598 
1599         return uif.showCustomYesNoDialog(prefix, p);
1600     }
1601 
1602     /**
1603      * Does this panel currently have data to work from.
1604      */
1605     private boolean isPopulated() {
1606         if (params == null || params.getTestSuite() == null) {
1607             return false;
1608         } else {
1609             return true;
1610         }
1611     }
1612     private UIFactory uif;
1613     private Harness harness;
1614     private FilterSelectionHandler filterHandler;


< prev index next >