rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog( this, message, title, JOptionPane.ERROR_MESSAGE);
public void emitError (String title, String message) { JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
ref.clear();
public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; while(null == obj) { if(_pool.isEmpty()) { if(null == _factory) { throw new NoSuchElementException(); } else { obj...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/40b9df4e3964dca1a138bc158e4a7f7762810677/SoftReferenceObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
pruneClearedReferences();
public synchronized void clear() { assertOpen(); if(null != _factory) { Iterator iter = _pool.iterator(); while(iter.hasNext()) { try { Object obj = ((SoftReference)iter.next()).get(); if(null != obj) { _...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/40b9df4e3964dca1a138bc158e4a7f7762810677/SoftReferenceObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
pruneClearedReferences();
public synchronized int getNumIdle() { assertOpen(); return _pool.size(); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/40b9df4e3964dca1a138bc158e4a7f7762810677/SoftReferenceObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
_pool.add(new SoftReference(obj));
_pool.add(new SoftReference(obj, refQueue));
public synchronized void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(!(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/40b9df4e3964dca1a138bc158e4a7f7762810677/SoftReferenceObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
stg.setMapping(waves[w].getFamily(), waves[w].getCurveCoefficient());
void initStrategies(QuantumDef qd, PixelsStats stats, ChannelBindings[] waves) { QuantumStrategy stg; PixelsGlobalStatsEntry wGlobal; double gMin, gMax; for (int w = 0; w < sizeW; ++w) { stg = QuantumFactory.getStrategy(qd); wGlobal = stats.getGlobalEntry(w); gMin = wGlobal.getGlobalMin(); gMax = wGlo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/QuantumManager.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/QuantumManager.java
} else if (source == nextButton)
} else if (source == nextButton)
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == prevButton) { if ((installdata.curPanelNumber > 0)) { installdata.curPanelNumber--; switchPanel(installdata.curPanelNumber + 1); } } else if (source == ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
if ((installdata.curPanelNumber < installdata.panels.size() - 1) && ((IzPanel) installdata.panels.get(installdata.curPanelNumber)).isValidated())
if ((installdata.curPanelNumber < installdata.panels.size() - 1) && ((IzPanel) installdata.panels.get(installdata.curPanelNumber)) .isValidated())
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == prevButton) { if ((installdata.curPanelNumber > 0)) { installdata.curPanelNumber--; switchPanel(installdata.curPanelNumber + 1); } } else if (source == ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
} else if (source == quitButton)
} else if (source == quitButton)
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == prevButton) { if ((installdata.curPanelNumber > 0)) { installdata.curPanelNumber--; switchPanel(installdata.curPanelNumber + 1); } } else if (source == ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
JOptionPane.showMessageDialog(null, langpack.getString("installer.quit.message"),
JOptionPane.showMessageDialog( null, langpack.getString("installer.quit.message"),
public void windowClosing(WindowEvent e) { // We show an alert anyway if (!installdata.canClose) JOptionPane.showMessageDialog(null, langpack.getString("installer.quit.message"), langpack.getString("installer.warning"), JOptionPane.ERROR_MESSAGE); wipeAborted(); House...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
public InstallerFrame(String title, InstallData installdata) throws Exception
public InstallerFrame(String title, InstallData installdata) throws Exception
public InstallerFrame(String title, InstallData installdata) throws Exception { super(title); this.installdata = installdata; this.langpack = installdata.langpack; // Sets the window events handler addWindowListener(new WindowHandler()); // Builds the GUI loadIcons(); loadPanels(); bui...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)
public void buildConstraints( GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)
public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy) { gbc.gridx = gx; gbc.gridy = gy; gbc.gridwidth = gw; gbc.gridheight = gh; gbc.weightx = wx; gbc.weighty = wy; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
glassPane.addMouseListener( new MouseAdapter() { }); glassPane.addMouseMotionListener( new MouseMotionAdapter() { }); glassPane.addKeyListener( new KeyAdapter() { });
glassPane.addMouseListener(new MouseAdapter() { }); glassPane.addMouseMotionListener(new MouseMotionAdapter() { }); glassPane.addKeyListener(new KeyAdapter() { });
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
contentPane.setLayout(new BorderLayout());
contentPane.setLayout(new BorderLayout());
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
panelsContainer.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));
panelsContainer.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
contentPane.add(panelsContainer,BorderLayout.CENTER);
contentPane.add(panelsContainer, BorderLayout.CENTER);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
navPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(8,8,8,8), BorderFactory.createTitledBorder(new EtchedLineBorder(), langpack.getString("installer.madewith")+" ")));
navPanel.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createEmptyBorder(8, 8, 8, 8), BorderFactory.createTitledBorder( new EtchedLineBorder(), langpack.getString("installer.madewith") + " ")));
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
prevButton = ButtonFactory.createButton(langpack.getString("installer.prev"), icons.getImageIcon("stepback"), installdata.buttonsHColor);
prevButton = ButtonFactory.createButton( langpack.getString("installer.prev"), icons.getImageIcon("stepback"), installdata.buttonsHColor);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
nextButton = ButtonFactory.createButton(langpack.getString("installer.next"), icons.getImageIcon("stepforward"), installdata.buttonsHColor);
nextButton = ButtonFactory.createButton( langpack.getString("installer.next"), icons.getImageIcon("stepforward"), installdata.buttonsHColor);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
quitButton = ButtonFactory.createButton(langpack.getString("installer.quit"), icons.getImageIcon("stop"), installdata.buttonsHColor);
quitButton = ButtonFactory.createButton( langpack.getString("installer.quit"), icons.getImageIcon("stop"), installdata.buttonsHColor);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
contentPane.add(navPanel,BorderLayout.SOUTH);
contentPane.add(navPanel, BorderLayout.SOUTH);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
imgPanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,0));
imgPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 0));
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
imgPanel.add(label,BorderLayout.CENTER); contentPane.add(imgPanel,BorderLayout.WEST);
imgPanel.add(label, BorderLayout.CENTER); contentPane.add(imgPanel, BorderLayout.WEST);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
} catch (Exception e)
} catch (Exception e)
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
getRootPane().setDefaultButton(nextButton);
getRootPane().setDefaultButton(nextButton);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener( new MouseAdapter() { }); glassPane.a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
frame.setLocation((screenSize.width - frameSize.width) / 2,
frame.setLocation( (screenSize.width - frameSize.width) / 2,
public void centerFrame(Window frame) { Dimension frameSize = frame.getSize(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2 - 10); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
} else
} else
public void exit() { if (installdata.canClose) { // Everything went well if (installdata.info.getWriteUninstaller()) writeUninstallData(); Housekeeper.getInstance().shutDown(0); } else { // The installation is not over int res = JOptionPane.showConfirmDialog(this, ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
int res = JOptionPane.showConfirmDialog(this, langpack.getString("installer.quit.message"), langpack.getString("installer.quit.title"), JOptionPane.YES_NO_OPTION);
int res = JOptionPane.showConfirmDialog( this, langpack.getString("installer.quit.message"), langpack.getString("installer.quit.title"), JOptionPane.YES_NO_OPTION);
public void exit() { if (installdata.canClose) { // Everything went well if (installdata.info.getWriteUninstaller()) writeUninstallData(); Housekeeper.getInstance().shutDown(0); } else { // The installation is not over int res = JOptionPane.showConfirmDialog(this, ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
return ResourceManager.getInstance().getInputStream (res); } catch (ResourceNotFoundException e)
return ResourceManager.getInstance().getInputStream(res); } catch (ResourceNotFoundException e)
public InputStream getResource(String res) { try { //System.out.println ("retrieving resource " + res); return ResourceManager.getInstance().getInputStream (res); } catch (ResourceNotFoundException e) { return null; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml");
InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml");
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLParser(...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLParser(...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
}
}
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLParser(...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
paramsClasses[0] = Class.forName("com.izforge.izpack.installer.InstallerFrame"); paramsClasses[1] = Class.forName("com.izforge.izpack.installer.InstallData"); Object[] params = {this, installdata};
paramsClasses[0] = Class.forName("com.izforge.izpack.installer.InstallerFrame"); paramsClasses[1] = Class.forName("com.izforge.izpack.installer.InstallData"); Object[] params = { this, installdata };
private void loadPanels() throws Exception { // Initialisation java.util.List panelsOrder = installdata.panelsOrder; int i; int size = panelsOrder.size(); String className; Class objectClass; Constructor constructor; Object object; IzPanel panel; Class[] paramsClasses = new Class[2]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
Panel p = (Panel)panelsOrder.get(i);
Panel p = (Panel) panelsOrder.get(i);
private void loadPanels() throws Exception { // Initialisation java.util.List panelsOrder = installdata.panelsOrder; int i; int size = panelsOrder.size(); String className; Class objectClass; Constructor constructor; Object object; IzPanel panel; Class[] paramsClasses = new Class[2]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; className = (String)p.className;
if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; className = (String) p.className;
private void loadPanels() throws Exception { // Initialisation java.util.List panelsOrder = installdata.panelsOrder; int i; int size = panelsOrder.size(); String className; Class objectClass; Constructor constructor; Object object; IzPanel panel; Class[] paramsClasses = new Class[2]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber);
IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber);
protected void switchPanel(int last) { panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); l_panel.makeXMLData(installdata.xmlData.getChildAtIndex(last)); panelsContainer.remove(l_pan...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
unlockNextButton(); } else if (installdata.curPanelNumber == installdata.panels.size() - 1)
unlockNextButton(); } else if (installdata.curPanelNumber == installdata.panels.size() - 1)
protected void switchPanel(int last) { panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); l_panel.makeXMLData(installdata.xmlData.getChildAtIndex(last)); panelsContainer.remove(l_pan...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
} else
} else
protected void switchPanel(int last) { panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); l_panel.makeXMLData(installdata.xmlData.getChildAtIndex(last)); panelsContainer.remove(l_pan...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
catch (Exception e) {}
protected void wipeAborted() { Iterator it; // We check for running unpackers ArrayList unpackers = Unpacker.getRunningInstances(); it = unpackers.iterator(); while (it.hasNext()) { Thread t = (Thread) it.next(); t.interrupt(); // The unpacker process might keep writing stuffs so we ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
if (outJar == null) return;
if (outJar == null) return;
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNextE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
BufferedWriter logWriter = new BufferedWriter(new OutputStreamWriter(outJar));
BufferedWriter logWriter = new BufferedWriter(new OutputStreamWriter(outJar));
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNextE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
ExecutableFile file = (ExecutableFile)iter.next();
ExecutableFile file = (ExecutableFile) iter.next();
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNextE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
} catch (Exception err)
} catch (Exception err)
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNextE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
dim.width = dim.width - (dim.width / 4);
dim.width -= (dim.width / 4);
public void panelActivate() { // get compilers again (because they might contain variables from former // panels) Iterator it = this.worker.getAvailableCompilers().iterator(); compilerComboBox.removeAllItems(); while (it.hasNext()) compilerComboBox.addItem((String) i...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilePanel.java/buggy/src/lib/com/izforge/izpack/panels/CompilePanel.java
setDialogType(SAVE_DIALOG);
private void buildGUI() { setFileSelectionMode(FILES_ONLY); setMultiSelectionEnabled(true); DVFilter dvFilter = new DVFilter(); setFileFilter(dvFilter); addChoosableFileFilter(dvFilter); TIFFFilter tiffFilter = new TIFFFilter(); setFileFilter(tiffFilter); addChoosableFileFilter(tiffFilter); setAcceptAllFil...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d580e2fe9976d2e5e37d7d8e5111f9608b56cb6d/ImportImageChooser.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImportImageChooser.java
if(System.currentTimeMillis() - pair.tstamp > _minEvictableIdleTimeMillis) {
if(_minEvictableIdleTimeMillis > 0 && System.currentTimeMillis() - pair.tstamp > _minEvictableIdleTimeMillis) {
public void run() { CursorableLinkedList.Cursor objcursor = null; CursorableLinkedList.Cursor keycursor = null; Object key = null; while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sl...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/efc6cc449e39844e28ad04b1b4d5b8ed261445fa/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
HashMap vars = new HashMap();
Properties vars = new Properties();
private void doSudoCmd() { String pass = passwordField.getText(); File file = null; try { // write file in /tmp file = new File("/tmp/cmd_sudo.sh");// ""c:/temp/run.bat"" FileOutputStream fos = new FileOutputStream(file); fos.write("echo $pa...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/53934d54deb48548655ceabb6147ed31c66365cd/SudoPanel.java/clean/src/lib/com/izforge/izpack/panels/SudoPanel.java
String headlineSearchBaseKey = myClassname + d + "headline";
String headlineSearchBaseKey = myClassname + d + "headline";
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
if( instanceNumber > -1 )
if( instanceNumber > -1 )
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
String instanceSearchKey = headlineSearchBaseKey + d + Integer.toString( instanceNumber );
String instanceSearchKey = headlineSearchBaseKey + d + Integer.toString( instanceNumber );
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
if( Debug.isLOG() ) { System.out.println( "found headline: " + instanceHeadline + d + " for instance # " + instanceNumber ); }
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
headLineLabel = new JLabel( headline, getImageIcon( imageIconName ), JLabel.TRAILING );
headLineLabel = new JLabel( headline, getImageIcon( imageIconName ), JLabel.LEADING );
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
GridBagConstraints gbc = getNewGridBagConstraints( X_ORIGIN, Y_ORIGIN, COLS_1, ROWS_1 ); gbc.weightx = 0.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.NONE; gbc.anchor = GridBagConstraints.NORTHWEST; gbc.insets = new Insets( 0, 0, 5, 0 );
GridBagConstraints gbc = new GridBagConstraints( ); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 1; gbc.gridheight = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets( 0, 0, 0, 0 ); headLineLabel.setName( HEADLINE );
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
headLineLabel.setName( HEADLINE );
protected boolean buildHeadline( String imageIconName, int instanceNumber ) { boolean result = false; // TODO: proteced instancenumber // TODO: is to be validated // TODO: // TODO: first Test if a Resource for your protected Instance exists. String headline; String headlineSea...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/cd2dd47c43f582b185a037233184f1161861cf69/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
panel.className = xmlPanel.getAttribute("classname");
String className = xmlPanel.getAttribute("classname");
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data); XMLElement root = requireChildNamed(data, "panels"); // at least one panel is required Vector panels = root.getChildrenNamed("panel"); if (panels.isEmpty()) pars...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d28b4a0f8922435997696d344aa94afcad4e3475/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String jarPath = "bin/panels/" + panel.className + ".jar";
String jarPath = "bin/panels/" + className + ".jar";
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data); XMLElement root = requireChildNamed(data, "panels"); // at least one panel is required Vector panels = root.getChildrenNamed("panel"); if (panels.isEmpty()) pars...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d28b4a0f8922435997696d344aa94afcad4e3475/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String fullClassName = null; try { fullClassName = getFullClassName(url, className); } catch (Exception e) { ; } if( fullClassName != null) panel.className = fullClassName; else panel.className = className;
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data); XMLElement root = requireChildNamed(data, "panels"); // at least one panel is required Vector panels = root.getChildrenNamed("panel"); if (panels.isEmpty()) pars...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d28b4a0f8922435997696d344aa94afcad4e3475/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
if( pos > 0 )
if( name.length() == pos + className.length() + 6 ) { jis.close();
private String getFullClassName(URL url, String className) throws Exception { JarInputStream jis = new JarInputStream(url.openStream()); ZipEntry zentry = null; String fullName = null; while ( (zentry = jis.getNextEntry()) != null) { String name = zentry.getName(); int lastPos = name.las...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d28b4a0f8922435997696d344aa94afcad4e3475/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
}
private String getFullClassName(URL url, String className) throws Exception { JarInputStream jis = new JarInputStream(url.openStream()); ZipEntry zentry = null; String fullName = null; while ( (zentry = jis.getNextEntry()) != null) { String name = zentry.getName(); int lastPos = name.las...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d28b4a0f8922435997696d344aa94afcad4e3475/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
getContentPane().setLayout(new BorderLayout(0, 0));
private void buildGUI(IconManager im) { getContentPane().setLayout(new BorderLayout(0, 0)); TitlePanel tp = new TitlePanel("Import Image", "Import new images in an existing dataset.", NOTE, im.getIcon(IconManager.IMPORT_IMAGE_BIG)); getContentPane().add(tp, BorderLayout.NORTH); getContentPane()...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d580e2fe9976d2e5e37d7d8e5111f9608b56cb6d/ImportImageSelector.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImportImageSelector.java
str = parent.langpack.getString("HelloPanel.welcome1") + idata.info.getAppName() + " " + idata.info.getAppVersion() + parent.langpack.getString("HelloPanel.welcome2"); welcomeLabel = new JLabel(str, parent.icons.getImageIcon("host"), JLabel.TRAILING);
str = parent.langpack.getString("HelloPanel.welcome1") + idata.info.getAppName() + " " + idata.info.getAppVersion() + parent.langpack.getString("HelloPanel.welcome2"); welcomeLabel = new JLabel(str, parent.icons.getImageIcon("host"), JLabel.TRAILING);
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
str = parent.langpack.getString("HelloPanel.authors"); appAuthorsLabel = new JLabel(str, parent.icons.getImageIcon("information"), JLabel.TRAILING); centerPanel.add(appAuthorsLabel); JLabel label; for (int i = 0; i < size; i++) { Info.Author a = (Info.Author) authors.get(i); String email = (a.getEmail() != null) ? (" ...
str = parent.langpack.getString("HelloPanel.authors"); appAuthorsLabel = new JLabel( str, parent.icons.getImageIcon("information"), JLabel.TRAILING); centerPanel.add(appAuthorsLabel);
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
centerPanel.add(Box.createVerticalStrut(20));
JLabel label; for (int i = 0; i < size; i++) { Info.Author a = (Info.Author) authors.get(i); String email = (a.getEmail() != null) ? (" <" + a.getEmail() + ">") : ""; label = new JLabel( " - " + a.getName() + email, parent.icons.getImageIcon("empty"), JLabel.TRAILING); centerPanel.add(label); } centerPanel.add(Box.cre...
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
str = parent.langpack.getString("HelloPanel.url") + idata.info.getAppURL(); appURLLabel = new JLabel(str, parent.icons.getImageIcon("bookmark"), JLabel.TRAILING);
str = parent.langpack.getString("HelloPanel.url") + idata.info.getAppURL(); appURLLabel = new JLabel(str, parent.icons.getImageIcon("bookmark"), JLabel.TRAILING);
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
public Object getValue(String key, String value) throws NativeLibException
public Object getValue(String key, String value, Object defaultVal) throws NativeLibException
public Object getValue(String key, String value) throws NativeLibException { return (null); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/65829be7fc5a410510ee8132076f9911c480d666/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
public void emitNotification (String message)
public void emitNotification(String message)
public void emitNotification (String message) { // ignore it }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
parent.unlockNextButton();
public void stopUnpack() { parent.releaseGUI(); parent.lockPrevButton(); parent.unlockNextButton(); installButton.setIcon(parent.icons.getImageIcon("empty")); installButton.setEnabled(false); progressBar.setString(parent.langpack.getString("InstallPanel.finished")); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/f44bec7600d9f54821d970d3b0bf5bf57378c71d/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java
if (idata.panels.indexOf(this) != (idata.panels.size() - 1)) parent.unlockNextButton();
public void stopUnpack() { parent.releaseGUI(); parent.lockPrevButton(); parent.unlockNextButton(); installButton.setIcon(parent.icons.getImageIcon("empty")); installButton.setEnabled(false); progressBar.setString(parent.langpack.getString("InstallPanel.finished")); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/f44bec7600d9f54821d970d3b0bf5bf57378c71d/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java
boolean addFile = true;
boolean addFile = !pack.loose;
private void writePacks() throws IOException { sendMsg("Writing Packs ..."); // Map to remember pack number and bytes offsets of back references Map storedFiles = new HashMap(); // First write the serialized files and file metadata data for each pack // while counting bytes. int packNum...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
match = ((osName.indexOf("mac") > -1) && !(osName.endsWith("x")));
match = ((osName.indexOf("mac") > -1));
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if ((arch != null) && (arch.length() != 0)) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && (version != null) && (version.length() != 0)) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/eec0fbaab314c2d79ea8d693ab2becee41090d68/OsConstraint.java/buggy/src/lib/com/izforge/izpack/util/OsConstraint.java
ds.addDefaultExcludes();
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // at least one langpack is required Vector packElements = root...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/a33c48991a272bfa7088a2354246291e534596c0/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
public AutomatedInstallData() { availablePacks = new ArrayList(); selectedPacks = new ArrayList(); panels = new ArrayList(); panelsOrder = new ArrayList(); xmlData = new XMLElement("AutomatedInstallation"); variableValueMap = new VariableValueMapImpl(); attributes = new HashMap(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/AutomatedInstallData.java/buggy/src/lib/com/izforge/izpack/installer/AutomatedInstallData.java
public String getVariable(String var) { return variableValueMap.getVariable(var); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/AutomatedInstallData.java/buggy/src/lib/com/izforge/izpack/installer/AutomatedInstallData.java
public void setVariable(String var, String val) { variableValueMap.setVariable(var, val); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/AutomatedInstallData.java/buggy/src/lib/com/izforge/izpack/installer/AutomatedInstallData.java
element_re.append("[^" + File.separator + "]*");
element_re.append("[^").append(File.separator).append("]*");
private List preparePatterns(ArrayList list, RECompiler recompiler) { ArrayList result = new ArrayList(); for (Iterator iter = list.iterator(); iter.hasNext();) { String element = (String) iter.next(); if ((element != null) && (element.length() > 0)) { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
element_re.append("[^" + File.separator + "]*");
element_re.append("[^").append(File.separator).append("]*");
private List preparePatterns(ArrayList list, RECompiler recompiler) { ArrayList result = new ArrayList(); for (Iterator iter = list.iterator(); iter.hasNext();) { String element = (String) iter.next(); if ((element != null) && (element.length() > 0)) { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
if (langpack != null && !(pack.id == null || pack.id.equals("")))
if (langpack != null && !(pack.id == null || "".equals(pack.id)))
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
if (name != null && !name.equals(""))
if (name != null && !"".equals(name))
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
String resNamePrifix = "HTMLLicencePanel.licence";
String resNamePrifix = "/res/HTMLLicencePanel.licence";
private URL loadLicence() { URL retVal = null; String resNamePrifix = "HTMLLicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; retVal = getClass().getResource(resName); if (null == retVal ) { retVal = getClass().getResource(resNamePrifix)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/f5d284ac59e86db8dfd60282104f2d8ce8a6f3c1/HTMLLicencePanel.java/clean/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _factory.destroyObject(obj); return; }
public void returnObject(Object obj) throws Exception { boolean success = true; if(!(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { success = false;
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/SoftReferenceObjectPool.java/clean/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
_pool.add(new SoftReference(obj));
boolean shouldDestroy = !success; synchronized(this) { _numActive--; if(success) { _pool.add(new SoftReference(obj)); } notifyAll(); } if(shouldDestroy) { try { _factory.destroyObject(obj); } catch(Exception e) { } }
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/SoftReferenceObjectPool.java/clean/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
securitySystem = (SecuritySystem) applicationContext.getBean("securitySystem");
protected void onSetUp() throws Exception { factory = new ServiceFactory( (OmeroContext) applicationContext ); iQuery = (LocalQuery) factory.getQueryService(); iUpdate = (LocalUpdate) factory.getUpdateService(); iAdmin = (LocalAdmin) factory.getAdminService(); iAnalysis = factory.get...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/AbstractManagedContextTest.java/clean/components/server/test/ome/server/itests/AbstractManagedContextTest.java
public ServiceFactory( OmeroContext context ){ this.ctx = context;
public ServiceFactory(){ if ( getDefaultContext() != null ) { this.ctx = OmeroContext.getInstance(getDefaultContext()); }
public ServiceFactory( OmeroContext context ){ this.ctx = context; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/ServiceFactory.java/buggy/components/common/src/ome/system/ServiceFactory.java
servant.addCodomainMap(mapCtx);
servant.setChannelWindow(w, start, end);
public void doCall() { servant.addCodomainMap(mapCtx); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
public int getDefaultT() { return rndDefCopy.getDefaultT(); }
public int getDefaultT() { return rndDefCopy.getDefaultT(); }
public int getDefaultT() { return rndDefCopy.getDefaultT(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
public int getDefaultZ() { return rndDefCopy.getDefaultZ(); }
public int getDefaultZ() { return rndDefCopy.getDefaultZ(); }
public int getDefaultZ() { return rndDefCopy.getDefaultZ(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
public int getModel() { return rndDefCopy.getModel(); }
public int getModel() { return rndDefCopy.getModel(); }
public int getModel() { return rndDefCopy.getModel(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.removeCodomainMap(mapCtx);
servant.setActive(w, active);
public void doCall() { servant.removeCodomainMap(mapCtx); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
setQuantumStrategy(QuantumFactory.LINEAR, 1.0, QuantumFactory.DEPTH_8BIT); setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); ChannelBindings[] cb = rndDefCopy.getChannelBindings(); PixelsStats stats = servant.getPixelsStats(); for (int i = 0; i < cb.length; i++) resetDefaultsChannel(i, stats); rndDefCopy.remove(); se...
setQuantumStrategy(QuantumFactory.DEPTH_8BIT, QuantumFactory.NOISE_REDUCTION); setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); ChannelBindings[] cb = rndDefCopy.getChannelBindings(); PixelsStats stats = servant.getPixelsStats(); for (int i = 0; i < cb.length; i++) resetDefaultsChannel(i, stats); rndDefCopy.remove()...
public void resetDefaults() { setQuantumStrategy(QuantumFactory.LINEAR, 1.0, QuantumFactory.DEPTH_8BIT); setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); ChannelBindings[] cb = rndDefCopy.getChannelBindings(); PixelsStats stats = servant.getPixelsStats(); for (int i = 0; i < cb.length; i++) resetDef...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.resetDefaults();
servant.updateCodomainMap(mapCtx);
public void doCall() { servant.resetDefaults(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.saveCurrentSettings();
servant.addCodomainMap(mapCtx);
public void doCall() { servant.saveCurrentSettings(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.setActive(w, active); }
servant.setQuantizationMap(w, family, coefficient); }
public void doCall() { servant.setActive(w, active); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.setChannelWindow(w, start, end); }
servant.setQuantumStrategy(bitResolution, b); }
public void doCall() { servant.setChannelWindow(w, start, end); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(qd.family, qd.pixelType, qd.curveCoefficient, start, end, qd.bitResolution); rndDefCopy.setQuantumDef(newQd); CodomainMapContext mapCtx; Iterator i = rndDefCopy.getCodomainChainDef().iterator(); while (i.hasNext()) { mapCtx = (CodomainMapContext...
QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(qd.pixelType, start, end, qd.bitResolution, qd.noiseReduction); rndDefCopy.setQuantumDef(newQd); CodomainMapContext mapCtx; Iterator i = rndDefCopy.getCodomainChainDef().iterator(); while (i.hasNext()) { mapCtx = (CodomainMapContext) i.next(); ma...
public void setCodomainInterval(final int start, final int end) { //TODO: this might go well w/ our copy, but then throw an exception //in the servant. We need a future. QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(qd.family, qd.pixelType, qd.curveCoefficient, start, end,...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.setCodomainInterval(start, end); }
servant.setDefaultT(t); }
public void doCall() { servant.setCodomainInterval(start, end); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
public void setQuantumStrategy(final int family, final double coefficient, final int bitResolution)
public void setQuantumStrategy(final int bitResolution, final boolean b)
public void setQuantumStrategy(final int family, final double coefficient, final int bitResolution) { //TODO: this might go well w/ our copy, but then throw an exception //in the servant. We need a future. QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType, coefficient, qd.cdStart, qd.cdEnd, bitResolution); rndDefCopy.setQuantumDef(newQd); MethodCall mCall = new MethodCall() { public void doCall() { servant.setQuantumStrategy(family, coefficient, bitResolution); } }; Rendering...
QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(qd.pixelType, qd.cdStart, qd.cdEnd, bitResolution, b); rndDefCopy.setQuantumDef(newQd); MethodCall mCall = new MethodCall() { public void doCall() { servant.setQuantumStrategy(bitResolution, b); } }; RenderingPropChange rpc = new RenderingPropCha...
public void setQuantumStrategy(final int family, final double coefficient, final int bitResolution) { //TODO: this might go well w/ our copy, but then throw an exception //in the servant. We need a future. QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.setQuantumStrategy(family, coefficient, bitResolution); }
servant.setDefaultZ(z); }
public void doCall() { servant.setQuantumStrategy(family, coefficient, bitResolution); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
servant.setRGBA(w, red, green, blue, alpha); }
servant.setCodomainInterval(start, end); }
public void doCall() { servant.setRGBA(w, red, green, blue, alpha); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java