rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void panelActivate() { if (!yesRadio.isSelected()) parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void panelActivate() { if (!yesRadio.isSelected()) parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void panelActivate() { if (!yesRadio.isSelected()) parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
public void panelActivate() { if (!yesRadio.isSelected()) parent.lockNextButton(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
||
return ((Reference)super.borrow()).get(); | return ((LenderReference)super.borrow()).get(); | public Object borrow() { return ((Reference)super.borrow()).get(); } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/f0437b554c95b5412ea926f3af8364aa1be3a6cf/SoftLender.java/clean/src/java/org/apache/commons/pool/composite/SoftLender.java |
super.repay(new SoftReference(obj)); | super.repay(new SoftLenderReference(obj)); | public void repay(final Object obj) { super.repay(new SoftReference(obj)); } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/f0437b554c95b5412ea926f3af8364aa1be3a6cf/SoftLender.java/clean/src/java/org/apache/commons/pool/composite/SoftLender.java |
public FrontendFrame(String title, LocaleDatabase langpack) throws Exception { super(title); this.langpack = langpack; contentPane = (JPanel) getContentPane(); // Loaders installation = Frontend.createBlankInstallation(); Frontend.splashWindow.update(3, "Loading the actions ..."); loadActions(); Frontend.splashWindow.update(4, "Loading the icons ..."); loadIcons(); // Builds the GUI Frontend.splashWindow.update(5, "Building the GUI ..."); buildGUI(); pack(); setSize(640, 480); setResizable(false); centerFrame(this); Frontend.splashWindow.stop(); setVisible(true); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/91994653572a3171781f1edfa5a2651f3a9a49fb/FrontendFrame.java/clean/src/lib/com/izforge/izpack/frontend/FrontendFrame.java |
||
public FrontendFrame(String title, LocaleDatabase langpack) throws Exception { super(title); this.langpack = langpack; contentPane = (JPanel) getContentPane(); // Loaders installation = Frontend.createBlankInstallation(); Frontend.splashWindow.update(3, "Loading the actions ..."); loadActions(); Frontend.splashWindow.update(4, "Loading the icons ..."); loadIcons(); // Builds the GUI Frontend.splashWindow.update(5, "Building the GUI ..."); buildGUI(); pack(); setSize(640, 480); setResizable(false); centerFrame(this); Frontend.splashWindow.stop(); setVisible(true); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/91994653572a3171781f1edfa5a2651f3a9a49fb/FrontendFrame.java/clean/src/lib/com/izforge/izpack/frontend/FrontendFrame.java |
||
table = "CategoryGroupLink"; | table = "CategoryGroupCategoryLink"; | IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = null; Class klass = parent.getClass(); if (klass.equals(Category.class)) table = "CategoryImageLink"; else if (klass.equals(Dataset.class)) table = "DatasetImageLink"; else if (klass.equals(Project.class)) table = "ProjectDatasetLink"; else if (klass.equals(CategoryGroup.class)) table = "CategoryGroupLink"; if (table == null) return null; String sql = "select link from "+table+" as link where " + "link.parent.id = :parentID and link.child.id = :childID"; IQuery service = getIQueryService(); Parameters param = new Parameters(); param.addLong("parentID", parent.getId()); param.addLong("childID", child.getId()); return service.findByQuery(sql, param); } catch (Exception e) { handleException(e, "Cannot retrieve the requested link for "+ "parent ID: "+parent.getId()+" and child ID: "+child.getId()); } return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/48ae4118d2840490688dd5cc2a20e081fbd679c5/OMEROGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java |
protected void finalize() | protected void finalize() throws Throwable | protected void finalize() { releaseInterface(); if (initializeSucceeded) { releaseCOM(); initializeSucceeded = false; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
super.finalize(); | protected void finalize() { releaseInterface(); if (initializeSucceeded) { releaseCOM(); initializeSucceeded = false; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
|
this(factory,GenericObjectPool.DEFAULT_MAX_ACTIVE,GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION,GenericObjectPool.DEFAULT_MAX_WAIT,GenericObjectPool.DEFAULT_MAX_IDLE,GenericObjectPool.DEFAULT_TEST_ON_BORROW,GenericObjectPool.DEFAULT_TEST_ON_RETURN,GenericObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericObjectPool.DEFAULT_TEST_WHILE_IDLE); | this(factory,GenericObjectPool.DEFAULT_MAX_ACTIVE,GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION,GenericObjectPool.DEFAULT_MAX_WAIT,GenericObjectPool.DEFAULT_MAX_IDLE,GenericObjectPool.DEFAULT_MIN_IDLE,GenericObjectPool.DEFAULT_TEST_ON_BORROW,GenericObjectPool.DEFAULT_TEST_ON_RETURN,GenericObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericObjectPool.DEFAULT_TEST_WHILE_IDLE); | public GenericObjectPoolFactory(PoolableObjectFactory factory) { this(factory,GenericObjectPool.DEFAULT_MAX_ACTIVE,GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION,GenericObjectPool.DEFAULT_MAX_WAIT,GenericObjectPool.DEFAULT_MAX_IDLE,GenericObjectPool.DEFAULT_TEST_ON_BORROW,GenericObjectPool.DEFAULT_TEST_ON_RETURN,GenericObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericObjectPool.DEFAULT_TEST_WHILE_IDLE); } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/684114d9473e6098081a2f519788cf4e0a78c7c3/GenericObjectPoolFactory.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPoolFactory.java |
return new GenericObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); | return new GenericObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_minIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); | public ObjectPool createPool() { return new GenericObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/684114d9473e6098081a2f519788cf4e0a78c7c3/GenericObjectPoolFactory.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPoolFactory.java |
protected IType[] getTypes(IFile file) { | protected IType[] getTypes(ICompilationUnit compilationUnit) { | protected IType[] getTypes(IFile file) { try { ICompilationUnit compilationUnit= JDTUtil.getJavaElement(file); return compilationUnit.getTypes(); } catch(JavaModelException jme) { TestNGPlugin.log(jme); } return null; } | 53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/AbstractTestNGLaunchDelegate.java/buggy/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java |
ICompilationUnit compilationUnit= JDTUtil.getJavaElement(file); | protected IType[] getTypes(IFile file) { try { ICompilationUnit compilationUnit= JDTUtil.getJavaElement(file); return compilationUnit.getTypes(); } catch(JavaModelException jme) { TestNGPlugin.log(jme); } return null; } | 53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/AbstractTestNGLaunchDelegate.java/buggy/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java |
|
m_action = action; update(); | public void selectionChanged(IAction action, ISelection selection) { m_action = action; update(); } | 53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/AbstractTestNGLaunchDelegate.java/buggy/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java |
|
IType[] types= getTypes(file); | IType[] types= getTypes(m_compilationUnit); | private void update() { if(null == m_action || null == m_editorPart) { return; } m_launchAttributes.clear(); IEditorInput editorInput= m_editorPart.getEditorInput(); if(editorInput instanceof IFileEditorInput) { IFile file= ((IFileEditorInput) editorInput).getFile(); m_project= file.getProject(); m_actionText= getCommandPrefix(); boolean isTestNGenabled= false; if("java".equals(file.getFileExtension())) { m_actionText+= " test"; m_compilationUnit= JDTUtil.getJavaElement(file); IType mainType= null; try { mainType= m_compilationUnit.findPrimaryType(); } catch(AssertionFailedException failure) { TestNGPlugin.log(failure); // TESTNG-70 return; } IType[] types= getTypes(file); IType checkType= null; if(null != mainType) { checkType= mainType; } else if(null != types && types.length > 0) { checkType= types[0]; } if(null != checkType && hasSource(checkType)) { ITestContent testContent = TypeParser.parseType(checkType); if(testContent.isTestNGClass()) { if(null != types) { List classNames= new ArrayList(); for(int i= 0; i < types.length; i++) { classNames.add(types[i].getFullyQualifiedName()); } m_launchAttributes.put(TestNGLaunchConfigurationConstants.TYPE, CLASS_TYPE); m_launchAttributes.put(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, classNames); m_launchAttributes.put(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, testContent.getAnnotationType()); isTestNGenabled= true; } } } } else if("xml".equals(file.getFileExtension())) { m_actionText+= " suite"; if(isSuiteDefinition(file)) { m_launchAttributes.put(TestNGLaunchConfigurationConstants.TYPE, SUITE_TYPE); m_launchAttributes.put(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToList(file.getProjectRelativePath().toOSString())); isTestNGenabled= true; } } m_action.setEnabled(isTestNGenabled); m_action.setText(m_actionText); } } | 53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/AbstractTestNGLaunchDelegate.java/buggy/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java |
long stopT= System.currentTimeMillis(); String msg= "Parsing time for main type '" + checkType.getFullyQualifiedName() + "' done in " + (stopT - startT) + " ms"; | private void update() { if(null == m_action || null == m_editorPart) { return; } m_launchAttributes.clear(); IEditorInput editorInput= m_editorPart.getEditorInput(); if(editorInput instanceof IFileEditorInput) { IFile file= ((IFileEditorInput) editorInput).getFile(); m_project= file.getProject(); m_actionText= getCommandPrefix(); boolean isTestNGenabled= false; if("java".equals(file.getFileExtension())) { m_actionText+= " test"; m_compilationUnit= JDTUtil.getJavaElement(file); IType mainType= null; try { mainType= m_compilationUnit.findPrimaryType(); } catch(AssertionFailedException failure) { TestNGPlugin.log(failure); // TESTNG-70 return; } IType[] types= getTypes(file); IType checkType= null; if(null != mainType) { checkType= mainType; } else if(null != types && types.length > 0) { checkType= types[0]; } if(null != checkType && hasSource(checkType)) { ITestContent testContent = TypeParser.parseType(checkType); if(testContent.isTestNGClass()) { if(null != types) { List classNames= new ArrayList(); for(int i= 0; i < types.length; i++) { classNames.add(types[i].getFullyQualifiedName()); } m_launchAttributes.put(TestNGLaunchConfigurationConstants.TYPE, CLASS_TYPE); m_launchAttributes.put(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, classNames); m_launchAttributes.put(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, testContent.getAnnotationType()); isTestNGenabled= true; } } } } else if("xml".equals(file.getFileExtension())) { m_actionText+= " suite"; if(isSuiteDefinition(file)) { m_launchAttributes.put(TestNGLaunchConfigurationConstants.TYPE, SUITE_TYPE); m_launchAttributes.put(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToList(file.getProjectRelativePath().toOSString())); isTestNGenabled= true; } } m_action.setEnabled(isTestNGenabled); m_action.setText(m_actionText); } } | 53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/AbstractTestNGLaunchDelegate.java/buggy/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java |
|
String path = basedir + File.separator + f.getAttribute("src"); | String path = f.getAttribute("src"); if (!new File(path).isAbsolute()) path = basedir + File.separator + path; | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = root.getChildAtIndex(i); // Trivial initialisations Pack pack = new Pack(); pack.number = i; pack.name = el.getAttribute("name"); pack.os = el.getAttribute("os"); pack.required = el.getAttribute("required").equalsIgnoreCase("yes"); pack.description = el.getFirstChildNamed("description").getContent(); // We get the parsables list Iterator iter = null; Vector children = el.getChildrenNamed("parsable"); if (null != children && !children.isEmpty()) { iter = children.iterator(); while (iter.hasNext()) { XMLElement p = (XMLElement) iter.next(); String targetFile = p.getAttribute("targetfile"); pack.parsables.add (new ParsableFile(targetFile, p.getAttribute("type", "plain"), p.getAttribute("encoding", null))); } } // We get the executables list children = el.getChildrenNamed("executable"); if (null != children && !children.isEmpty()) { iter = children.iterator(); while (iter.hasNext()) { XMLElement e = (XMLElement) iter.next(); // when to execute this executable int executeOn = ExecutableFile.NEVER; String val = e.getAttribute("stage", "never"); if ("postinstall".compareToIgnoreCase(val) == 0) executeOn = ExecutableFile.POSTINSTALL; else if ("uninstall".compareToIgnoreCase(val) == 0) executeOn = ExecutableFile.UNINSTALL; // main class of this executable String executeClass = e.getAttribute("class"); // type of this executable int executeType = ExecutableFile.BIN; val = e.getAttribute("type", "bin"); if ("jar".compareToIgnoreCase(val) == 0) executeType = ExecutableFile.JAR; // what to do if execution fails int onFailure = ExecutableFile.ASK; val = e.getAttribute("failure", "ask"); if ("abort".compareToIgnoreCase(val) == 0) onFailure = ExecutableFile.ABORT; else if ("warn".compareToIgnoreCase(val) == 0) onFailure = ExecutableFile.WARN; // get arguments for this executable ArrayList argList = new ArrayList(); XMLElement args = e.getFirstChildNamed("args"); if (null != args) { argList = new ArrayList(); Iterator argIterator = args.getChildrenNamed("arg").iterator(); while (argIterator.hasNext()) { XMLElement arg = (XMLElement) argIterator.next(); argList.add(arg.getAttribute("value")); } } // get os info on this executable ArrayList osList = new ArrayList(); Iterator osIterator = e.getChildrenNamed("os").iterator(); while (osIterator.hasNext()) { XMLElement os = (XMLElement) osIterator.next(); osList.add (new com.izforge.izpack.util.Os(os.getAttribute("family", null), os.getAttribute("name", null), os.getAttribute("version", null), os.getAttribute("arch", null))); } String targetFile = e.getAttribute("targetfile"); pack.executables.add(new ExecutableFile(targetFile, executeType, executeClass, executeOn, onFailure, argList, osList)); } } // We get the files list iter = el.getChildrenNamed("file").iterator(); while (iter.hasNext()) { XMLElement f = (XMLElement) iter.next(); String path = basedir + File.separator + f.getAttribute("src"); File file = new File(path); boolean override = true; if (f.getAttribute("override") != null) override = f.getAttribute("override").equalsIgnoreCase("true"); addFile(file, f.getAttribute("targetdir"), f.getAttribute("os"), override, pack.packFiles); } // We get the fileset list iter = el.getChildrenNamed("fileset").iterator(); while (iter.hasNext()) { XMLElement f = (XMLElement) iter.next(); String path = basedir + File.separator + f.getAttribute("dir"); String casesensitive = f.getAttribute("casesensitive"); // get includes and excludes Vector xcludesList = f.getChildrenNamed("include"); String[] includes = null; XMLElement xclude = null; if (xcludesList.size() > 0) { includes = new String[xcludesList.size()]; for (int j = 0; j < xcludesList.size(); j++) { xclude = (XMLElement) xcludesList.get(j); includes[j] = xclude.getAttribute("name"); } } xcludesList = f.getChildrenNamed("exclude"); String[] excludes = null; xclude = null; if (xcludesList.size() > 0) { excludes = new String[xcludesList.size()]; for (int j = 0; j < xcludesList.size(); j++) { xclude = (XMLElement) xcludesList.get(j); excludes[j] = xclude.getAttribute("name"); } } String targetDir = f.getAttribute("targetdir"); addFileSet(path, includes, excludes, targetDir, f.getAttribute("os"), pack.packFiles, casesensitive); } // We add the pack packs.add(pack); } // We return the ArrayList return packs; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/8d3a211b7d30a9893be69fc707318aedd0d153c4/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java |
String path = basedir + File.separator + f.getAttribute("dir"); | String path = f.getAttribute("dir"); if (!new File(path).isAbsolute()) path = basedir + File.separator + path; | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = root.getChildAtIndex(i); // Trivial initialisations Pack pack = new Pack(); pack.number = i; pack.name = el.getAttribute("name"); pack.os = el.getAttribute("os"); pack.required = el.getAttribute("required").equalsIgnoreCase("yes"); pack.description = el.getFirstChildNamed("description").getContent(); // We get the parsables list Iterator iter = null; Vector children = el.getChildrenNamed("parsable"); if (null != children && !children.isEmpty()) { iter = children.iterator(); while (iter.hasNext()) { XMLElement p = (XMLElement) iter.next(); String targetFile = p.getAttribute("targetfile"); pack.parsables.add (new ParsableFile(targetFile, p.getAttribute("type", "plain"), p.getAttribute("encoding", null))); } } // We get the executables list children = el.getChildrenNamed("executable"); if (null != children && !children.isEmpty()) { iter = children.iterator(); while (iter.hasNext()) { XMLElement e = (XMLElement) iter.next(); // when to execute this executable int executeOn = ExecutableFile.NEVER; String val = e.getAttribute("stage", "never"); if ("postinstall".compareToIgnoreCase(val) == 0) executeOn = ExecutableFile.POSTINSTALL; else if ("uninstall".compareToIgnoreCase(val) == 0) executeOn = ExecutableFile.UNINSTALL; // main class of this executable String executeClass = e.getAttribute("class"); // type of this executable int executeType = ExecutableFile.BIN; val = e.getAttribute("type", "bin"); if ("jar".compareToIgnoreCase(val) == 0) executeType = ExecutableFile.JAR; // what to do if execution fails int onFailure = ExecutableFile.ASK; val = e.getAttribute("failure", "ask"); if ("abort".compareToIgnoreCase(val) == 0) onFailure = ExecutableFile.ABORT; else if ("warn".compareToIgnoreCase(val) == 0) onFailure = ExecutableFile.WARN; // get arguments for this executable ArrayList argList = new ArrayList(); XMLElement args = e.getFirstChildNamed("args"); if (null != args) { argList = new ArrayList(); Iterator argIterator = args.getChildrenNamed("arg").iterator(); while (argIterator.hasNext()) { XMLElement arg = (XMLElement) argIterator.next(); argList.add(arg.getAttribute("value")); } } // get os info on this executable ArrayList osList = new ArrayList(); Iterator osIterator = e.getChildrenNamed("os").iterator(); while (osIterator.hasNext()) { XMLElement os = (XMLElement) osIterator.next(); osList.add (new com.izforge.izpack.util.Os(os.getAttribute("family", null), os.getAttribute("name", null), os.getAttribute("version", null), os.getAttribute("arch", null))); } String targetFile = e.getAttribute("targetfile"); pack.executables.add(new ExecutableFile(targetFile, executeType, executeClass, executeOn, onFailure, argList, osList)); } } // We get the files list iter = el.getChildrenNamed("file").iterator(); while (iter.hasNext()) { XMLElement f = (XMLElement) iter.next(); String path = basedir + File.separator + f.getAttribute("src"); File file = new File(path); boolean override = true; if (f.getAttribute("override") != null) override = f.getAttribute("override").equalsIgnoreCase("true"); addFile(file, f.getAttribute("targetdir"), f.getAttribute("os"), override, pack.packFiles); } // We get the fileset list iter = el.getChildrenNamed("fileset").iterator(); while (iter.hasNext()) { XMLElement f = (XMLElement) iter.next(); String path = basedir + File.separator + f.getAttribute("dir"); String casesensitive = f.getAttribute("casesensitive"); // get includes and excludes Vector xcludesList = f.getChildrenNamed("include"); String[] includes = null; XMLElement xclude = null; if (xcludesList.size() > 0) { includes = new String[xcludesList.size()]; for (int j = 0; j < xcludesList.size(); j++) { xclude = (XMLElement) xcludesList.get(j); includes[j] = xclude.getAttribute("name"); } } xcludesList = f.getChildrenNamed("exclude"); String[] excludes = null; xclude = null; if (xcludesList.size() > 0) { excludes = new String[xcludesList.size()]; for (int j = 0; j < xcludesList.size(); j++) { xclude = (XMLElement) xcludesList.get(j); excludes[j] = xclude.getAttribute("name"); } } String targetDir = f.getAttribute("targetdir"); addFileSet(path, includes, excludes, targetDir, f.getAttribute("os"), pack.packFiles, casesensitive); } // We add the pack packs.add(pack); } // We return the ArrayList return packs; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/8d3a211b7d30a9893be69fc707318aedd0d153c4/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java |
basedir + File.separator + res.getAttribute("src"), | path, | protected ArrayList getResources(XMLElement data) throws Exception { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); // We process each res markup Iterator iter = root.getChildren().iterator(); String parse = null; boolean blParse = false; while (iter.hasNext()) { XMLElement res = (XMLElement) iter.next(); blParse = false; parse = res.getAttribute("parse"); if (null != parse) blParse = parse.equalsIgnoreCase("yes"); resources.add(new Resource(res.getAttribute("id"), basedir + File.separator + res.getAttribute("src"), blParse, res.getAttribute("type"), res.getAttribute("encoding"))); } // We add the uninstaller as a resource resources.add(new Resource("IzPack.uninstaller", Compiler.IZPACK_HOME + "lib" + File.separator + "uninstaller.jar")); // We return the ArrayList return resources; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/8d3a211b7d30a9893be69fc707318aedd0d153c4/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java |
if(_maxActive > 0 && _numActive < _maxActive) { | if(_maxActive <= 0 || _numActive < _maxActive) { | public synchronized Object borrowObject() throws Exception { long starttime = System.currentTimeMillis(); for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { pair = (ObjectTimestampPair)(_pool.removeFirst()); } catch(NoSuchElementException e) { /* ignored */ } // otherwise if(null == pair) { // check if we can create one // (note we know that the num sleeping is 0, else we wouldn't be here) if(_maxActive > 0 && _numActive < _maxActive) { Object obj = _factory.makeObject(); pair = new ObjectTimestampPair(obj); } else { // the pool is exhausted switch(_whenExhaustedAction) { case WHEN_EXHAUSTED_GROW: Object obj = _factory.makeObject(); pair = new ObjectTimestampPair(obj); break; case WHEN_EXHAUSTED_FAIL: throw new NoSuchElementException(); case WHEN_EXHAUSTED_BLOCK: try { if(_maxWait <= 0) { wait(); } else { wait(_maxWait); } } catch(InterruptedException e) { // ignored } if(_maxWait > 0 && ((System.currentTimeMillis() - starttime) >= _maxWait)) { throw new NoSuchElementException("Timeout waiting for idle object"); } else { continue; // keep looping } default: throw new IllegalArgumentException("whenExhaustedAction " + _whenExhaustedAction + " not recognized."); } } } _factory.activateObject(pair.value); if(_testOnBorrow && !_factory.validateObject(pair.value)) { try { _factory.passivateObject(pair.value); } catch(Exception e) { ; // ignored, we're throwing it out anyway } _factory.destroyObject(pair.value); } else { _numActive++; return pair.value; } } } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/20544d4c4b596fe00d312ec251e36a6dfdc00186/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java |
private void createLayoutBottom() | public void createLayoutBottom() | private void createLayoutBottom() { } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/418dbd5d2dab8789a0553b0f403e0018f90c0a1f/PathInputPanel.java/clean/src/lib/com/izforge/izpack/panels/PathInputPanel.java |
{ this.os = os; } | { this.os = os; } | public ByteCountingOutputStream(OutputStream os) { this.os = os; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
{ os.close(); } | { os.close(); } | public void close() throws IOException { os.close(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
{ os.flush(); } | { os.flush(); } | public void flush() throws IOException { os.flush(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
{ return count; } | { return count; } | public long getByteCount() { return count; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
{ os.write(b, off, len); count += len; } | { os.write(b, off, len); count += len; } | public void write(byte[] b, int off, int len) throws IOException { os.write(b, off, len); count += len; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
public String getTargetDir () | public String getTargetDir() | public String getTargetDir () { return this.targetdir; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
public String getTargetFile () | public String getTargetFile() | public String getTargetFile () { return this.targetfile; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
public String getTargetFilename () | public String getTargetFilename() | public String getTargetFilename () { // targetfile overrides targetdir if (this.targetfile != null) return this.targetfile; File f = new File (this.src); return this.targetdir + f.getName (); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
File f = new File (this.src); | File f = new File(this.src); | public String getTargetFilename () { // targetfile overrides targetdir if (this.targetfile != null) return this.targetfile; File f = new File (this.src); return this.targetdir + f.getName (); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
return this.targetdir + f.getName (); | return this.targetdir + f.getName(); | public String getTargetFilename () { // targetfile overrides targetdir if (this.targetfile != null) return this.targetfile; File f = new File (this.src); return this.targetdir + f.getName (); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
public void setTargetDir (String targetDir) throws CompilerException | public void setTargetDir(String targetDir) throws CompilerException | public void setTargetDir (String targetDir) throws CompilerException { if (targetDir == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file missing!"); } this.targetfile = null; this.targetdir = targetDir; if (! this.targetdir.endsWith (File.separator)) { this.targetdir = this.targetdir + File.separatorChar; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
throw new CompilerException ("target for file " + src + " missing!"); | throw new CompilerException("target for file " + src + " missing!"); | public void setTargetDir (String targetDir) throws CompilerException { if (targetDir == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file missing!"); } this.targetfile = null; this.targetdir = targetDir; if (! this.targetdir.endsWith (File.separator)) { this.targetdir = this.targetdir + File.separatorChar; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
throw new CompilerException ("target for file missing!"); | throw new CompilerException("target for file missing!"); | public void setTargetDir (String targetDir) throws CompilerException { if (targetDir == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file missing!"); } this.targetfile = null; this.targetdir = targetDir; if (! this.targetdir.endsWith (File.separator)) { this.targetdir = this.targetdir + File.separatorChar; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
if (! this.targetdir.endsWith (File.separator)) | if (!this.targetdir.endsWith(File.separator)) | public void setTargetDir (String targetDir) throws CompilerException { if (targetDir == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file missing!"); } this.targetfile = null; this.targetdir = targetDir; if (! this.targetdir.endsWith (File.separator)) { this.targetdir = this.targetdir + File.separatorChar; } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
public void setTargetFile (String targetFile) throws CompilerException | public void setTargetFile(String targetFile) throws CompilerException | public void setTargetFile (String targetFile) throws CompilerException { this.targetdir = null; if (targetFile == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file missing!"); } this.targetfile = targetFile; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.