rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
Debug.log( CLASS + myClass + ".setLinkName() '" + name + "'" );
public void setLinkName(String name) { shortcut.setLinkName(name); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
public void setLinkType(int type) throws IllegalArgumentException
public void setLinkType(int type) throws IllegalArgumentException, UnsupportedEncodingException
public void setLinkType(int type) throws IllegalArgumentException { switch (type) { case DESKTOP: { shortcut.setLinkType(ShellLink.DESKTOP); break; } case APPLICATIONS: { shortcut.setLinkType(ShellLink.PROGRAM_MENU); break; } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
Debug.log( CLASS + myClass + ".setLinkType() '" + type + "'" );
public void setLinkType(int type) throws IllegalArgumentException { switch (type) { case DESKTOP: { shortcut.setLinkType(ShellLink.DESKTOP); break; } case APPLICATIONS: { shortcut.setLinkType(ShellLink.PROGRAM_MENU); break; } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
shortcut.setProgramGroup(groupName);
Debug.log( CLASS + myClass + ".setProgramGroup() '" + groupName + "'" ); shortcut.setProgramGroup(groupName);
public void setProgramGroup(String groupName) { shortcut.setProgramGroup(groupName); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
Debug.log( CLASS + myClass + ".setShowCommand() '" + Integer.toString(show) + "'" );
public void setShowCommand(int show) throws IllegalArgumentException { switch (show) { case HIDE: { shortcut.setShowCommand(ShellLink.MINNOACTIVE); break; } case NORMAL: { shortcut.setShowCommand(ShellLink.NORMAL); break; } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
Debug.log( CLASS + myClass + ".setTargetPath() '" + path + "'" );
public void setTargetPath(String path) { shortcut.setTargetPath(path); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
Debug.log( CLASS + myClass + ".setUserType() '" + type + "'" );
public void setUserType(int type) { if (type == CURRENT_USER) { if (shortcut.getcurrentUserLinkPath().length() > 0) { shortcut.setUserType(ShellLink.CURRENT_USER); } } else if (type == ALL_USERS) { if (shortcut.getallUs...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
Debug.log( CLASS + myClass + ".setWorkingDirectory() '" + dir + "'" );
public void setWorkingDirectory(String dir) { shortcut.setWorkingDirectory(dir); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
{ return (true);
{ Debug.log( CLASS + myClass + ".supported() '" + SUPPORTED + "'" ); return( SUPPORTED );
public boolean supported() { return (true); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7fd6ecbf32a2883982eeb962733f98fd00021076/Win_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Win_Shortcut.java
b[off+0] = (byte)value;
b[off] = (byte)value;
private static void set16(byte[] b, int off, int value) { b[off+0] = (byte)value; b[off+1] = (byte)(value >> 8); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/JarOutputStream.java/buggy/src/lib/com/izforge/izpack/util/JarOutputStream.java
public synchronized void clear(Object key) { LinkedList pool = (LinkedList)(_poolMap.remove(key)); if(null == pool) { return; } else { for(Iterator it = pool.iterator(); it.hasNext(); ) {
public synchronized void clear() { for(Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext(); ) { Object key = keyiter.next(); final LinkedList list = (LinkedList)(_poolMap.get(key)); for(Iterator it = list.iterator(); it.hasNext(); ) {
public synchronized void clear(Object key) { LinkedList pool = (LinkedList)(_poolMap.remove(key)); if(null == pool) { return; } else { for(Iterator it = pool.iterator(); it.hasNext(); ) { try { _factory.destroyObject(key,((ObjectTimestampP...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
_totalIdle--;
public synchronized void clear(Object key) { LinkedList pool = (LinkedList)(_poolMap.remove(key)); if(null == pool) { return; } else { for(Iterator it = pool.iterator(); it.hasNext(); ) { try { _factory.destroyObject(key,((ObjectTimestampP...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
_poolMap.clear(); if (_recentlyEvictedKeys != null) { _recentlyEvictedKeys.clear(); } _totalIdle = 0;
public synchronized void clear(Object key) { LinkedList pool = (LinkedList)(_poolMap.remove(key)); if(null == pool) { return; } else { for(Iterator it = pool.iterator(); it.hasNext(); ) { try { _factory.destroyObject(key,((ObjectTimestampP...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URLClassLoader ucl = new URLClassLoader( new URL[] {url} );
URLClassLoader ucl = new URLClassLoader( new URL[] {url}, CompilerListener.class.getClassLoader() );
private Object [] getCompilerListenerInstance( XMLElement var ) throws Exception { final String defaultRootPath = "com.izforge.izpack."; final String defaultCompilerPath = "compiler."; String className = var.getAttribute("compiler"); Class listener = null; Object instance = null; if( className == n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6ecf4c684709c205660b52029f360e1b20e07957/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
private Object [] getCompilerListenerInstance( XMLElement var ) throws Exception { final String defaultRootPath = "com.izforge.izpack."; final String defaultCompilerPath = "compiler."; String className = var.getAttribute("compiler"); Class listener = null; Object instance = null; if( className == n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6ecf4c684709c205660b52029f360e1b20e07957/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
float percentage = ((float)val)*100.0f/(float)this.job_max;
double percentage = ((double)val)*100.0d/(double)this.job_max;
public void progress(int val, String msg) { float percentage = ((float)val)*100.0f/(float)this.job_max; String percent = (new Integer ((int)percentage)).toString()+'%'; String line = this.job_name + ": " + percent; int line_len = line.length(); System.out.print ("\r"+line); for (int i = line_len; i...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/CompilePanelAutomationHelper.java/buggy/src/lib/com/izforge/izpack/panels/CompilePanelAutomationHelper.java
createButton.setEnabled(false);
public void actionPerformed (ActionEvent event) { Object eventSource = event.getSource (); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group to the default sett...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
parent.unlockNextButton ();
public void actionPerformed (ActionEvent event) { Object eventSource = event.getSource (); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group to the default sett...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
data.addToGroup = false;
private void analyzeShortcutSpec () { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } // ---------------------------------------------------- // find out if we should simulate a not supported // scenario // ---------------------------------------------------- XMLEl...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
data.addToGroup = false;
private void analyzeShortcutSpec () { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } // ---------------------------------------------------- // find out if we should simulate a not supported // scenario // ---------------------------------------------------- XMLEl...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
shortcutsCreationDone = true;
parent.unlockNextButton();
private void createShortcuts () { ShortcutData data; for (int i = 0; i < shortcuts.size (); i++) { data = (ShortcutData)shortcuts.elementAt (i); try { groupName = groupName + data.subgroup; shortcut.setLinkName (data.name); shortcut.setLinkType ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
!shortcutsCreationDone ||
public void makeXMLData (XMLElement panelRoot) { // ---------------------------------------------------- // if there are no shortcuts to create, shortcuts are // not supported, or we should simulate that they are // not supported, then we have nothing to add. Just // return // ---------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
parent.lockNextButton ();
public void panelActivate () { analyzeShortcutSpec (); if (shortcutsToCreate) { if (shortcut.supported () && !simulteNotSupported) { //parent.lockNextButton (); buildUI (shortcut.getProgramGroups (ShellLink.CURRENT_USER), true); // always start out with the current user } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
layout = new GridBagLayout(); gbConstraints = new GridBagConstraints();
GridBagLayout layout = new GridBagLayout(); GridBagConstraints gbConstraints = new GridBagConstraints();
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(pare...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java
infoLabel = LabelFactory.create(parent.langpack.getString("InfoPanel.info"), parent.icons
JLabel infoLabel = LabelFactory.create(parent.langpack.getString("InfoPanel.info"), parent.icons
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(pare...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
} else
} else
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
ImageIcon icon = new ImageIcon(this.getClass().getResource("/res/flag." + iso3));
ImageIcon icon = new ImageIcon(this.getClass().getResource("/res/flag." + iso3));
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
grayIcons.put(iso3, new ImageIcon(GrayFilter.createDisabledImage(icon.getImage())));
grayIcons.put( iso3, new ImageIcon(GrayFilter.createDisabledImage(icon.getImage())));
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
catch (Exception err) { }
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("Language selection"); GridBagLayout ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
JLabel label1 = new JLabel("Please select your language (ISO3 code)", SwingConstants.CENTER);
JLabel label1 = new JLabel( "Please select your language (ISO3 code)", SwingConstants.CENTER);
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("Language selection"); GridBagLayout ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
JLabel label2 = new JLabel("for install instructions:", SwingConstants.CENTER);
JLabel label2 = new JLabel("for install instructions:", SwingConstants.CENTER);
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("Language selection"); GridBagLayout ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
setLocation((screenSize.width - frameSize.width) / 2,
setLocation( (screenSize.width - frameSize.width) / 2,
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("Language selection"); GridBagLayout ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
img = new ImageIcon(this.getClass().getResource( "/res/installer.langsel.img")); } catch (NullPointerException err)
img = new ImageIcon( this.getClass().getResource("/res/installer.langsel.img")); } catch (NullPointerException err)
public ImageIcon getImage() { ImageIcon img; try { img = new ImageIcon(this.getClass().getResource( "/res/installer.langsel.img")); } catch (NullPointerException err) { img = null; } return img; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
this.installdata = new InstallData();
this.installdata = new InstallData();
public GUIInstaller() throws Exception { super(); this.installdata = new InstallData(); // Loads the installation data loadInstallData(installdata); // add the GUI install data loadGUIInstallData(); // Checks the Java version checkJavaVersion(); // Sets up the GUI L&F loadLookAndFeel(); //...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
loadGUIInstallData();
loadGUIInstallData();
public GUIInstaller() throws Exception { super(); this.installdata = new InstallData(); // Loads the installation data loadInstallData(installdata); // add the GUI install data loadGUIInstallData(); // Checks the Java version checkJavaVersion(); // Sets up the GUI L&F loadLookAndFeel(); //...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
ResourceManager.create (this.installdata);
ResourceManager.create(this.installdata);
public GUIInstaller() throws Exception { super(); this.installdata = new InstallData(); // Loads the installation data loadInstallData(installdata); // add the GUI install data loadGUIInstallData(); // Checks the Java version checkJavaVersion(); // Sets up the GUI L&F loadLookAndFeel(); //...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
System.out.println("> The minimum Java version required is " + required);
System.out.println("> The minimum Java version required is " + required);
private void checkJavaVersion() throws Exception { String version = System.getProperty("java.version"); String required = this.installdata.info.getJavaVersion(); if (version.compareTo(required) < 0) { System.out.println("Can't install !"); System.out.println("> The minimum Java version required...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
UIManager.put("OptionPane.yesButtonText", installdata.langpack.getString("installer.yes")); UIManager.put("OptionPane.noButtonText", installdata.langpack.getString("installer.no")); UIManager.put("OptionPane.cancelButtonText", installdata.langpack.getString("installer.cancel"));
UIManager.put( "OptionPane.yesButtonText", installdata.langpack.getString("installer.yes")); UIManager.put( "OptionPane.noButtonText", installdata.langpack.getString("installer.no")); UIManager.put( "OptionPane.cancelButtonText", installdata.langpack.getString("installer.cancel"));
private void loadGUI() throws Exception { UIManager.put("OptionPane.yesButtonText", installdata.langpack.getString("installer.yes")); UIManager.put("OptionPane.noButtonText", installdata.langpack.getString("installer.no")); UIManager.put("OptionPane.cancelButtonText", installdata.langpack.getString("install...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
String title = installdata.langpack.getString("installer.title") + this.installdata.info.getAppName();
String title = installdata.langpack.getString("installer.title") + this.installdata.info.getAppName();
private void loadGUI() throws Exception { UIManager.put("OptionPane.yesButtonText", installdata.langpack.getString("installer.yes")); UIManager.put("OptionPane.noButtonText", installdata.langpack.getString("installer.no")); UIManager.put("OptionPane.cancelButtonText", installdata.langpack.getString("install...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
public void loadGUIInstallData() throws Exception
public void loadGUIInstallData() throws Exception
public void loadGUIInstallData() throws Exception { InputStream in = getClass().getResourceAsStream("/GUIPrefs"); ObjectInputStream objIn = new ObjectInputStream(in); this.installdata.guiPrefs = (GUIPrefs) objIn.readObject(); objIn.close(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
InputStream in = getClass().getResourceAsStream("/GUIPrefs"); ObjectInputStream objIn = new ObjectInputStream(in); this.installdata.guiPrefs = (GUIPrefs) objIn.readObject(); objIn.close(); }
InputStream in = getClass().getResourceAsStream("/GUIPrefs"); ObjectInputStream objIn = new ObjectInputStream(in); this.installdata.guiPrefs = (GUIPrefs) objIn.readObject(); objIn.close(); }
public void loadGUIInstallData() throws Exception { InputStream in = getClass().getResourceAsStream("/GUIPrefs"); ObjectInputStream objIn = new ObjectInputStream(in); this.installdata.guiPrefs = (GUIPrefs) objIn.readObject(); objIn.close(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
} else
} else
private void loadLangPack() throws Exception { // Initialisations ArrayList availableLangPacks = getAvailableLangPacks(); int npacks = availableLangPacks.size(); if (npacks == 0) throw new Exception("no language pack available"); String selectedPack; // We get the langpack name if (npacks !...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
InputStream in = getClass().getResourceAsStream("/langpacks/" + selectedPack + ".xml");
InputStream in = getClass().getResourceAsStream("/langpacks/" + selectedPack + ".xml");
private void loadLangPack() throws Exception { // Initialisations ArrayList availableLangPacks = getAvailableLangPacks(); int npacks = availableLangPacks.size(); if (npacks == 0) throw new Exception("no language pack available"); String selectedPack; // We get the langpack name if (npacks !...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web"))
if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web"))
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); ButtonFactory.useHighlightButtons(); this.installdata.buttonsHColor = new Color(182, 182, 204);
if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); ButtonFactory.useHighlightButtons(); this.installdata.buttonsHColor = new Color(182, 182, 204);
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
} else if (this.installdata.kind.equalsIgnoreCase("standard-kunststoff") || this.installdata.kind.equalsIgnoreCase("web-kunststoff"))
} else if ( this.installdata.kind.equalsIgnoreCase("standard-kunststoff") || this.installdata.kind.equalsIgnoreCase("web-kunststoff"))
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
ButtonFactory.useHighlightButtons();
ButtonFactory.useHighlightButtons();
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
Class laf = Class.forName("com.incors.plaf.kunststoff.KunststoffLookAndFeel");
Class laf = Class.forName("com.incors.plaf.kunststoff.KunststoffLookAndFeel");
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
Class[] params = {mtheme};
Class[] params = { mtheme };
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
Object[] kparams = {ktheme};
Object[] kparams = { ktheme };
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
private final boolean compareVersions(String in, String template, boolean isMin,
private boolean compareVersions(String in, String template, boolean isMin,
private final boolean compareVersions(String in, String template, boolean isMin, int assumedPlace, int halfRange, String useNotIdentifier) { StringTokenizer st = new StringTokenizer(in, " \t\n\r\f\""); int i; int currentRange = 0; String[] interestedEntries = new String[hal...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/JDKPathPanel.java/clean/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
if (chosenPath.length() > 0 && var != null && var.equalsIgnoreCase("yes"))
if (chosenPath.length() > 0 && var != null && "yes".equalsIgnoreCase(var))
public void panelActivate() { // Resolve the default for chosenPath super.panelActivate(); String chosenPath; // The variable will be exist if we enter this panel // second time. We would maintain the previos // selected path. if (idata.getVariable(getVariableName...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/JDKPathPanel.java/clean/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
private final boolean verifyVersion()
private boolean verifyVersion()
private final boolean verifyVersion() { String min = getMinVersion(); String max = getMaxVersion(); // No min and max, version always ok. if (min == null && max == null) return (true); if (!pathIsValid()) return (false); // No get the version ... // We cannot look...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/JDKPathPanel.java/clean/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
hlp.append("Exec='" + $Exec + "'" + S + $Arguments + N);
hlp.append("Exec="+ $E_QUOT + $Exec + $E_QUOT + S + $Arguments + N);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
hlp.append("Path='" + $Path + "'" + N);
hlp.append("Path="+ $P_QUOT + $Path + $P_QUOT + N);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
hlp.append(N); hlp.append(C + "created by" + S + getClass().getName() + S + rev + N ); hlp.append(C + version );
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
return this.createdDirectory;
return this.createdDirectory;
public String getDirectoryCreated() { return this.createdDirectory; // while not stored... }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
String FS = File.separator;
public Vector getProgramGroups(int userType) { // if( userType > CURRENT_USER ) // if( System.getProperty( "user.name" ).equals( "root" ) ) String FS = File.separator; // System.out.println( "userType" + userType ); Vector groups = new Vector(); File homedir = new File(S...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
File homedir = new File(System.getProperty("user.home")); File kdeHomeShareApplnk; try { File kdeHome = new File(homedir.toString() + FS + ".kde"); if (!kdeHome.exists()) return (groups); File kdeHomeShare = new File(kdeHome.toString() + FS + "share"); if (!kdeHomeShare.exists()) return (groups); kdeHomeShareApplnk = ...
File kdeShareApplnk = getKdeShareApplnkFolder(userType);
public Vector getProgramGroups(int userType) { // if( userType > CURRENT_USER ) // if( System.getProperty( "user.name" ).equals( "root" ) ) String FS = File.separator; // System.out.println( "userType" + userType ); Vector groups = new Vector(); File homedir = new File(S...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
File[] listing = kdeHomeShareApplnk.listFiles();
File[] listing = kdeShareApplnk.listFiles();
public Vector getProgramGroups(int userType) { // if( userType > CURRENT_USER ) // if( System.getProperty( "user.name" ).equals( "root" ) ) String FS = File.separator; // System.out.println( "userType" + userType ); Vector groups = new Vector(); File homedir = new File(S...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
public Vector getProgramGroups(int userType) { // if( userType > CURRENT_USER ) // if( System.getProperty( "user.name" ).equals( "root" ) ) String FS = File.separator; // System.out.println( "userType" + userType ); Vector groups = new Vector(); File homedir = new File(S...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
$Type, $X_KDE_SubstituteUID, $X_KDE_Username, $Icon, $URL};
$Type, $X_KDE_SubstituteUID, $X_KDE_Username, $Icon, $URL, $E_QUOT, $P_QUOT };
private void initProps() { String[] propsArray = { $Comment, $$LANG_Comment, $Encoding, $Exec, $Arguments, $GenericName, $$LANG_GenericName, $MimeType, $Name, $$LANG_Name, $Path, $ServiceTypes, $SwallowExec, $SwallowTitle, $Terminal, $Options_For_Terminal, $Typ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
public String replace() { String result = new String(template); Enumeration enum = props.keys(); while (enum.hasMoreElements()) { String key = (String) enum.nextElement(); // **DEBUG: System.out.println(key+"="+props.getProperty( key )); result = Strin...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
if ((this.itsGroupName == null) || ("".equals(this.itsGroupName)))
boolean rootUser4All = this.getUserType() == Shortcut.ALL_USERS; boolean create4All = this.getCreateForAll().booleanValue(); if ("".equals(this.itsGroupName) && this.getLinkType() == Shortcut.DESKTOP)
public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); if ((this.itsGroupName == null) || ("".equals(this.itsGroupName))) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.its...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
File homedir = new File(System.getProperty("user.home")); File kdeHome = new File(homedir.toString() + FS + ".kde"); File kdeHomeShare = new File(kdeHome.toString() + FS + "share"); File kdeHomeShareApplnk = new File(kdeHomeShare.toString() + FS + itsApplnkFolder);
File kdeHomeShareApplnk = getKdeShareApplnkFolder(this.getUserType());
public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); if ((this.itsGroupName == null) || ("".equals(this.itsGroupName))) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.its...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
} File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar))); if (!targetPath.exists()) { targetPath.mkdirs(); this.createdDirectory = targetPath.toString(); }
this.itsFileName = new String(target);
public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); if ((this.itsGroupName == null) || ("".equals(this.itsGroupName))) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.its...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsFileName = new String(target); File targetFileName = new File(target); FileWriter fileWriter = null; try { fileWriter = new FileWriter(targetFileName); } catch (IOException e1) { e1.printStackTrace(); } try { fileWriter.write(shortCutDef); } catch (IOException e) { e.printStackTrace(); } try { fileWriter.close...
if (rootUser4All && !create4All) { return; } writeShortCut(target, shortCutDef);
public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); if ((this.itsGroupName == null) || ("".equals(this.itsGroupName))) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.its...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
public void setIconLocation(String path, int index) { this.itsIconPath = path; this.itsIconIndex = index; props.put($Icon, path); // }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
StringTokenizer whiteSpaceTester = new StringTokenizer( aPath ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $E_QUOT,QM );
public void setTargetPath(String aPath) { this.itsTargetPath = aPath; props.put($Exec, aPath); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
StringTokenizer whiteSpaceTester = new StringTokenizer( aDirectory ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $P_QUOT,QM );
public void setWorkingDirectory(String aDirectory) { this.itsWorkingDirectory = aDirectory; props.put($Path, aDirectory); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
el.getAttribute("os"),
public void updateComponents() { // We get our base root XMLElement root = installation.getFirstChildNamed("packs"); // We fill our vector packs = new Vector(); files = new Vector(); Vector v = root.getChildrenNamed("pack"); int size = v.size(); for (int i = 0; i < size; i++) { XMLEle...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/FrontendPacksTab.java/clean/src/lib/com/izforge/izpack/frontend/FrontendPacksTab.java
if("1.5".equals(annotationType) || TestNG.JDK5_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JDK5_ANNOTATION_TYPE;
AnnotationTypeEnum annoType= AnnotationTypeEnum.JDK; try { annoType= AnnotationTypeEnum.valueOf(annotationType);
private static String convert(String annotationType) { if("1.5".equals(annotationType) || TestNG.JDK5_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JDK5_ANNOTATION_TYPE; } if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JAVADOC_ANN...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JAVADOC_ANNOTATION_TYPE;
catch(RuntimeException re) { TestNGPlugin.log(new Status(IStatus.INFO, TestNGPlugin.PLUGIN_ID, 1, "Unknown annotation type '" + annotationType + "' Using default: " + TestNG.JDK_ANNOTATION_TYPE, null));
private static String convert(String annotationType) { if("1.5".equals(annotationType) || TestNG.JDK5_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JDK5_ANNOTATION_TYPE; } if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JAVADOC_ANN...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
TestNGPlugin.log(new Status(IStatus.INFO, TestNGPlugin.PLUGIN_ID, 1, "Unknown annotation type '" + annotationType + "' Using default: " + TestNG.JDK5_ANNOTATION_TYPE , null) );
private static String convert(String annotationType) { if("1.5".equals(annotationType) || TestNG.JDK5_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JDK5_ANNOTATION_TYPE; } if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JAVADOC_ANN...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
return TestNG.JDK5_ANNOTATION_TYPE;
return annoType.toString();
private static String convert(String annotationType) { if("1.5".equals(annotationType) || TestNG.JDK5_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JDK5_ANNOTATION_TYPE; } if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { return TestNG.JAVADOC_ANN...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
} else if(IJavaElement.TYPE == ije.getElementType()) {
} else if(IJavaElement.TYPE == ije.getElementType()) {
public static File createSuite(IJavaProject ijp, IType[] types, IJavaElement ije) { XMLStringBuffer xmlSuite = getSuiteBuffer(ije.getElementName()); if(IJavaElement.COMPILATION_UNIT == ije.getElementType()) { createClassTest(types, ije, xmlSuite); } else if(IJavaElement.TYPE == ije.getElementTyp...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
} else if(IJavaElement.METHOD == ije.getElementType()) {
} else if(IJavaElement.METHOD == ije.getElementType()) {
public static File createSuite(IJavaProject ijp, IType[] types, IJavaElement ije) { XMLStringBuffer xmlSuite = getSuiteBuffer(ije.getElementName()); if(IJavaElement.COMPILATION_UNIT == ije.getElementType()) { createClassTest(types, ije, xmlSuite); } else if(IJavaElement.TYPE == ije.getElementTyp...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/SuiteBuilder.java/clean/src/main/org/testng/eclipse/util/SuiteBuilder.java
int red, int green, int blue, int alpha, boolean active)
int red, int green, int blue, int alpha, boolean active, int family, double curveCoefficient)
public ChannelBindings(int index, double inputStart, double inputEnd, int red, int green, int blue, int alpha, boolean active) { this.index = index; setInputWindow(inputStart, inputEnd); rgba = new int[4]; setRGBA(red, green, blue, alpha); this.active = active; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java
this.family = family; this.curveCoefficient = curveCoefficient;
public ChannelBindings(int index, double inputStart, double inputEnd, int red, int green, int blue, int alpha, boolean active) { this.index = index; setInputWindow(inputStart, inputEnd); rgba = new int[4]; setRGBA(red, green, blue, alpha); this.active = active; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java
{ ChannelBindings cb = new ChannelBindings(); cb.index = this.index; cb.active = this.active; cb.inputStart = this.inputStart; cb.inputEnd = this.inputEnd; cb.rgba = getRGBA(); return cb; }
{ ChannelBindings cb = new ChannelBindings(); cb.index = this.index; cb.active = this.active; cb.family = this.family; cb.curveCoefficient = this.curveCoefficient; cb.inputStart = this.inputStart; cb.inputEnd = this.inputEnd; cb.rgba = getRGBA(); cb.stats = getStats(); return cb; }
ChannelBindings copy() { ChannelBindings cb = new ChannelBindings(); cb.index = this.index; cb.active = this.active; //Will work b/c the objects are read-only: Integer, Float, etc. cb.inputStart = this.inputStart; cb.inputEnd = this.inputEnd; cb.rgba = getRGBA(); return cb; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java
{ if (c < COLOR_MIN || COLOR_MAX < c) throw new IllegalArgumentException("Value must be in [0,255]."); }
{ if (c < COLOR_MIN || COLOR_MAX < c) throw new IllegalArgumentException("Value must be in [0,255]."); }
private void verifyColorComponent(int c) { if (c < COLOR_MIN || COLOR_MAX < c) throw new IllegalArgumentException("Value must be in [0,255]."); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java
retval.append("\tparams: " + params[i]);
retval.append("\tparams: ").append(params[i]);
public int executeCommand(String[] params, String[] output) { StringBuffer retval = new StringBuffer(); retval.append("executeCommand\n"); if (params != null) { for (int i = 0; i < params.length; i++) { retval.append("\tparams: " + params[i]); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/FileExecutor.java/clean/src/lib/com/izforge/izpack/util/FileExecutor.java
} catch (ZipException zerr)
} catch (ZipException zerr)
public void addJarContent(String file) throws Exception { sendMsg("Adding a jar file content ..."); JarFile jar = new JarFile(file); Enumeration entries = jar.entries(); while (entries.hasMoreElements()) { // Puts a new entry ZipEntry zentry = (ZipEntry) entries.nextElement(); try ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception
public ZipOutputStream addPack( int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception
public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
Pack pack = new Pack(name, description, osConstraints, required, preselected);
Pack pack = new Pack(name, description, osConstraints, required, preselected);
public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
public void addPanelClass(String classFilename, InputStream input) throws Exception
public void addPanelClass(String classFilename, InputStream input) throws Exception
public void addPanelClass(String classFilename, InputStream input) throws Exception { sendMsg("Adding the (sub)classes for " + classFilename + " ..."); outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); copyStream(input, outJar); outJar.closeEntry(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename));
outJar.putNextEntry( new ZipEntry("com/izforge/izpack/panels/" + classFilename));
public void addPanelClass(String classFilename, InputStream input) throws Exception { sendMsg("Adding the (sub)classes for " + classFilename + " ..."); outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); copyStream(input, outJar); outJar.closeEntry(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
return false;
return false;
public boolean allowPackFileBackReferences() { return false; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
sendMsg("Setting the panels order ...");
sendMsg("Setting the panels order ...");
public void setPanelsOrder(ArrayList order) throws Exception { sendMsg("Setting the panels order ..."); outJar.putNextEntry(new ZipEntry("panelsOrder")); ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); outJar.closeEntry(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
outJar.putNextEntry(new ZipEntry("panelsOrder")); ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); outJar.closeEntry();
outJar.putNextEntry(new ZipEntry("panelsOrder")); ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); outJar.closeEntry();
public void setPanelsOrder(ArrayList order) throws Exception { sendMsg("Setting the panels order ..."); outJar.putNextEntry(new ZipEntry("panelsOrder")); ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); outJar.closeEntry(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/WebPackager.java/clean/src/lib/com/izforge/izpack/compiler/WebPackager.java
if (!"".equals(processorClass))
if (processorClass != null && !"".equals(processorClass))
private void addComboBox (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); TextValuePair listItem = null; JComb...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/51b4130f814c399ea973648823bddd3f297207d7/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
public NativeInstallerListener(boolean useSpecHelper)
public NativeInstallerListener()
public NativeInstallerListener(boolean useSpecHelper) { super(useSpecHelper); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/65829be7fc5a410510ee8132076f9911c480d666/NativeInstallerListener.java/clean/src/lib/com/izforge/izpack/event/NativeInstallerListener.java
super(useSpecHelper);
super();
public NativeInstallerListener(boolean useSpecHelper) { super(useSpecHelper); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/65829be7fc5a410510ee8132076f9911c480d666/NativeInstallerListener.java/clean/src/lib/com/izforge/izpack/event/NativeInstallerListener.java
suite.addTest(org.apache.commons.pool.composite.TestAll.suite());
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(org.apache.commons.pool.TestBaseObjectPool.suite()); suite.addTest(org.apache.commons.pool.TestBaseKeyedObjectPool.suite()); suite.addTest(org.apache.commons.pool.TestBasePoolableObjectFactory.suite()); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/c533b17f67a27066967191311fa5512bef24cbc8/TestAll.java/clean/src/test/org/apache/commons/pool/TestAll.java
if (token.equals("N"))
if ("N".equals(token))
public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java
else if (token.equals("H"))
else if ("H".equals(token))
public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java
else if (token.equals("A"))
else if ("A".equals(token))
public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java
else if (token.equals("O"))
else if ("O".equals(token))
public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java
else if (token.equals("AN"))
else if ("AN".equals(token))
public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java