rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
GridBagConstraints constraints)
GridBagConstraints constraints)
protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTable table = new JTable(); table.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); table.setIntercellSpacing(new Dimension(0, 0)); table.setBac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
GridBagConstraints constraints)
GridBagConstraints constraints)
protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints) { JPanel panel = new JPanel(); JLabel label = new JLabel(); if (label == null) label = new JLabel(""); panel.setAlignmentX(LEFT_ALIGNMENT); panel.setLayout(new B...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
GridBagConstraints constraints)
GridBagConstraints constraints)
protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTextArea area = new JTextArea(); area.setMargin(new Insets(2, 2, 2, 2)); area.setAlignmentX(LEFT_ALIGNMENT); area.setCaretPosition(0); area...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() {
DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() {
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() {
DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() {
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0x000000007fffffff) msg = " > 2 GB"; else if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable");
new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable");
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
msg = Pack.toByteUnitsString((int) freeBytes);
msg = Pack.toByteUnitsString(freeBytes);
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/PacksPanelBase.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
String className,
Collection classNames,
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_lau...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
m_className= className.trim();
m_classNames= classNames;
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_lau...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
List testMethods = null;
Map classMethods= null;
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
testMethods = getMethods(configuration);
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
getClassMethods(configuration),
testClasses, classMethods,
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
getLogLevel(configuration));
getLogLevel(configuration) );
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
if(null != launchInfo.m_className) { classMethods.put(launchInfo.m_className, EMPTY);
Collection classNames= launchInfo.m_classNames; List classNamesList= new ArrayList(); if(null != classNames && !classNames.isEmpty()) { for(Iterator it= classNames.iterator(); it.hasNext(); ) { Object cls= it.next(); classMethods.put(cls, EMPTY); classNamesList.add(cls); }
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
Utils.stringToNullList(launchInfo.m_className));
classNamesList);
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/ConfigurationHelper.java/buggy/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
final Collection methodNames,
final Map methodNames,
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/SuiteGenerator.java/buggy/src/main/org/testng/eclipse/util/SuiteGenerator.java
packageNames, /* is emtpy */
packageNames,
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/SuiteGenerator.java/buggy/src/main/org/testng/eclipse/util/SuiteGenerator.java
parameters, /* is empty */
parameters,
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/SuiteGenerator.java/buggy/src/main/org/testng/eclipse/util/SuiteGenerator.java
else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames,
else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames,
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/SuiteGenerator.java/buggy/src/main/org/testng/eclipse/util/SuiteGenerator.java
else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ ...
else { return new ClassMethodsSuite(projectName, classNames, methodNames, parameters, annotationType, logLevel);
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/SuiteGenerator.java/buggy/src/main/org/testng/eclipse/util/SuiteGenerator.java
m_annotationTypeE= AnnotationTypeEnum.valueOf(annotationType);
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d40d1cb62b9fe19b5aa4eaab262d9c354adf8af8/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
this(testRunner, className, method, true); }
this(testRunner, className, method, true); }
public OpenTestAction(TestRunnerViewPart testRunner, String className, String method) { this(testRunner, className, method, true); }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type);
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type = project.findType(className); if (type == null) { return null; } if (fMethodName == null) { return type; } IMethod method = findMethodInTypeHierarchy(type);
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
method= fuzzyFindMethodInTypeHierarchy(type);
method = fuzzyFindMethodInTypeHierarchy(type);
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
if (method == null) { String title = ResourceUtil.getString("OpenTestAction.error.title"); String message = ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); MessageDialog.openInformation(getShell(), title, message); return type; } fRange = method.getNameRange(); return method; }
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) {
IMethod method = type.getMethod(fMethodName, new String[0]); if ((method != null) && method.exists()) {
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) {
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null); IType[] types = typeHierarchy.getAllSuperclasses(type); for (int i = 0; i < types.length; i++) { method = types[i].getMethod(fMethodName, new String[0]); if ((method != null) && method.exists()) {
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) {
IMethod[] methods = type.getMethods(); for (int i = 0; i < methods.length; i++) { if (fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) {
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return meth...
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null); IType[] types = typeHierarchy.getAllSuperclasses(type); for (int i = 0; i < types.length; i++) { methods = types[i].getMethods(); for (int j = 0; j < methods.length; j++) { if (fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { retu...
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; }
if(null == getClassName()) { return false; } try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; }
public boolean isEnabled() { try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); }
if (fRange != null) { textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); } }
protected void reveal(ITextEditor textEditor) { if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
return;
public void activateLogging() throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void addLoggingInfo(List info) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void createKey(String key) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void deleteKey( String key) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void deleteKeyIfEmpty(String key) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void deleteValue(String key, String value) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void resetLogging() throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void rewind() throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void setLoggingInfo(List info) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void setRoot(int i) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void setValue(String key, String value, String contents) throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
return;
public void suspendLogging() throws NativeLibException { return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryHandler.java/buggy/src/lib/com/izforge/izpack/util/os/RegistryHandler.java
else if (OsVersion.IS_TRU64) { String[] params = { "bdf", path }; String[] output = new String[2]; FileExecutor fe = new FileExecutor(); fe.executeCommand(params, output); retval = extractLong(output[0], -3, 3, "%") * 1024; }
public static long getFreeSpace(String path) { long retval = -1; if (OsVersion.IS_WINDOWS) { String command = "cmd.exe"; if (System.getProperty("os.name").toLowerCase().indexOf("windows 9") > -1) return (-1); String[] params = { command, "/C", "\"dir /D /-C \...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/db61e2c61b465638a7b78a3fd5ec2b9c98c8dd88/IoHelper.java/clean/src/lib/com/izforge/izpack/util/IoHelper.java
layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
BoxLayout layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
public SimpleFinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleFinishPanel.java/clean/src/lib/com/izforge/izpack/panels/SimpleFinishPanel.java
int emWave = channel.getLogicalChannel().getEmissionWave().intValue();
Integer emWave = channel.getLogicalChannel().getEmissionWave(); if (emWave == null) return null;
private static Color getColor(Channel channel) { int emWave = channel.getLogicalChannel().getEmissionWave().intValue(); if (rangeBlue(emWave)) return BLUE_COLOR; if (rangeGreen(emWave)) return GREEN_COLOR; if (rangeRed(emWave)) return RED_COLOR; return null; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/ColorsFactory.java/buggy/components/rendering/src/omeis/providers/re/ColorsFactory.java
ZipOutputStream zipOut = packager.addPack(i++, pack.name, pack.required,
ZipOutputStream zipOut = packager.addPack(i++, pack.name, pack.os, pack.required,
public void executeCompiler() throws Exception { // Usefull variables int i; String str; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(g...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
(new ParsableFile(p.getAttribute("targetfile"),
(new ParsableFile(targetFile,
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
pack.executables.add(new ExecutableFile(e.getAttribute("targetfile"),
String targetFile = e.getAttribute("targetfile"); pack.executables.add(new ExecutableFile(targetFile,
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
f.getAttribute("targetdir"),
targetDir,
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
this.sourcePath = src.getPath();
public PackFile(File src, String target, List osList, int override) throws FileNotFoundException { if (! src.exists()) // allows cleaner client co throw new FileNotFoundException("No such file: "+src); if ('/' != File.separatorChar) target = target.replace(File.separatorChar, '/'); if (targ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/PackFile.java/buggy/src/lib/com/izforge/izpack/PackFile.java
public Info() { }
public Info() { }
public Info() { }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Info.java/buggy/src/lib/com/izforge/izpack/Info.java
ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null)
InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInputStream skeleton_is; if (istream != null) { skeleton_is = new ZipInputStream(istream); } else
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/38ba7467fab050838ce0ecf38f3a49960ff5612f/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
public ParsableFile(String path, String type, String encoding) { this.path = path; this.type = type; this.encoding = encoding; }
public ParsableFile() {}
public ParsableFile(String path, String type, String encoding) { this.path = path; this.type = type; this.encoding = encoding; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ParsableFile.java/buggy/src/lib/com/izforge/izpack/ParsableFile.java
public ExecutableFile(String path, int type, String mainClass, int executionStage, int onFailure, java.util.ArrayList argList, java.util.ArrayList osList)
public ExecutableFile()
public ExecutableFile(String path, int type, String mainClass, int executionStage, int onFailure, java.util.ArrayList argList, java.util.ArrayList osList) { this.path = path; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/ExecutableFile.java/buggy/src/lib/com/izforge/izpack/ExecutableFile.java
this.path = path; this.mainClass = mainClass; this.type = type; this.executionStage = executionStage; this.onFailure = onFailure; this.argList = argList; this.osList = osList;
this.path = null; executionStage = NEVER; mainClass = null; type = BIN; onFailure = ASK; osList = new ArrayList(); argList = new ArrayList();
public ExecutableFile(String path, int type, String mainClass, int executionStage, int onFailure, java.util.ArrayList argList, java.util.ArrayList osList) { this.path = path; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/ExecutableFile.java/buggy/src/lib/com/izforge/izpack/ExecutableFile.java
if(newlyCreated) { throw new NoSuchElementException("Could not create a validated object"); }
public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { pair = (ObjectTimestampPa...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/feea8a0d3c7e4912fe7929bd4f393db752cfaacf/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
if ((_maxActive <= 0 || active < _maxActive) && (_maxTotal <= 0 || _totalActive + _totalIdle < _maxTotal)) {
if ((_maxActive < 0 || active < _maxActive) && (_maxTotal < 0 || _totalActive + _totalIdle < _maxTotal)) {
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new C...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0ad4050ad4013e4a3e6ba97cb3927331e1636c6e/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
public int getNumActive() throws UnsupportedOperationException {
public int getNumActive(Object key) throws UnsupportedOperationException {
public int getNumActive() throws UnsupportedOperationException { return -1; }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1313111fc820c43662b3b98672f70316d84ee80c/BaseKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java
public int getNumIdle() throws UnsupportedOperationException {
public int getNumIdle(Object key) throws UnsupportedOperationException {
public int getNumIdle() throws UnsupportedOperationException { return -1; }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1313111fc820c43662b3b98672f70316d84ee80c/BaseKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java
}
public boolean isValidated() { if( super.isValidated()) { if( verifyVersion() ) { idata.setVariable(getVariableName(),pathSelectionPanel.getPath()); return( true ); } // Bad version detected. String min = getMinVersion(); String max = getMaxVersion(); StringBuf...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/8fdcdff15c7db3919d399140ef70a041de92f8ab/JDKPathPanel.java/clean/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
public int askQuestion (String title, String question, int choices, int default_choice)
public int askQuestion(String title, String question, int choices)
public int askQuestion (String title, String question, int choices, int default_choice) { int jo_choices = 0; if (choices == AbstractUIHandler.CHOICES_YES_NO) jo_choices = JOptionPane.YES_NO_OPTION; else if (choices == AbstractUIHandler.CHOICES_YES_NO_CANCEL) jo_choices = JOptionPane.YES_NO_C...
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
int jo_choices = 0; if (choices == AbstractUIHandler.CHOICES_YES_NO) jo_choices = JOptionPane.YES_NO_OPTION; else if (choices == AbstractUIHandler.CHOICES_YES_NO_CANCEL) jo_choices = JOptionPane.YES_NO_CANCEL_OPTION; int user_choice = JOptionPane.showConfirmDialog ( this, (Object)question, title, jo_choices, JOptionP...
return askQuestion(title, question, choices, -1);
public int askQuestion (String title, String question, int choices, int default_choice) { int jo_choices = 0; if (choices == AbstractUIHandler.CHOICES_YES_NO) jo_choices = JOptionPane.YES_NO_OPTION; else if (choices == AbstractUIHandler.CHOICES_YES_NO_CANCEL) jo_choices = JOptionPane.YES_NO_C...
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
return value;
return copy;
public IObject[] saveAndReturnArray(IObject[] graph) { return doAction( graph, new UpdateAction<IObject[]>(){ @Override public IObject[] run(IObject[] value, UpdateFilter filter) { IObject[] copy = new IObject[value.length]; for (int i = 0; i < value.length; i++) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6455a63c8e973145b20617428fadd2edd63e3a4b/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
return value;
return copy;
public IObject[] run(IObject[] value, UpdateFilter filter) { IObject[] copy = new IObject[value.length]; for (int i = 0; i < value.length; i++) { copy[i] = internalSave( value[i], filter ); } return value; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6455a63c8e973145b20617428fadd2edd63e3a4b/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
return value;
return copy;
public void saveArray(IObject[] graph) { doAction( graph, new UpdateAction<IObject[]>(){ @Override public IObject[] run(IObject[] value, UpdateFilter filter) { IObject[] copy = new IObject[value.length]; for (int i = 0; i < value.length; i++) { copy[i] ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6455a63c8e973145b20617428fadd2edd63e3a4b/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
return value;
return copy;
public IObject[] run(IObject[] value, UpdateFilter filter) { IObject[] copy = new IObject[value.length]; for (int i = 0; i < value.length; i++) { copy[i] = internalSave( value[i], filter ); } return value; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6455a63c8e973145b20617428fadd2edd63e3a4b/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
public void activateObject(Object obj) {
public void activateObject(Object obj) throws Exception {
public void activateObject(Object obj) { }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0a89bcddbb9d1ce0d88185823be827ca474fd6ae/BasePoolableObjectFactory.java/buggy/src/java/org/apache/commons/pool/BasePoolableObjectFactory.java
public void destroyObject(Object obj) {
public void destroyObject(Object obj) throws Exception {
public void destroyObject(Object obj) { }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0a89bcddbb9d1ce0d88185823be827ca474fd6ae/BasePoolableObjectFactory.java/buggy/src/java/org/apache/commons/pool/BasePoolableObjectFactory.java
public void passivateObject(Object obj) {
public void passivateObject(Object obj) throws Exception {
public void passivateObject(Object obj) { }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0a89bcddbb9d1ce0d88185823be827ca474fd6ae/BasePoolableObjectFactory.java/buggy/src/java/org/apache/commons/pool/BasePoolableObjectFactory.java
if (t.isAlive() == false) return;
if (!t.isAlive()) return;
private void stopMonitor(OutputMonitor m, Thread t) { // taken from com.izforge.izpack.util.FileExecutor m.doStop(); long softTimeout = 500; try { t.join(softTimeout); } catch (InterruptedException e) {...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
this.spec = (XMLElement) parser.parse();
spec = (XMLElement) parser.parse();
private boolean readSpec() throws IOException { InputStream input; try { input = ResourceManager.getInstance().getInputStream(SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser par...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
if (!this.spec.hasChildren()) return false;
if (!spec.hasChildren()) return false;
private boolean readSpec() throws IOException { InputStream input; try { input = ResourceManager.getInstance().getInputStream(SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser par...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
for (Iterator job_it = this.spec.getChildrenNamed("job").iterator(); job_it.hasNext();)
for (Iterator job_it = spec.getChildrenNamed("job").iterator(); job_it.hasNext();)
private boolean readSpec() throws IOException { InputStream input; try { input = ResourceManager.getInstance().getInputStream(SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser par...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
this.processingThread = new Thread(this, "processing thread");
Thread processingThread = new Thread(this, "processing thread");
public void startThread() { this.processingThread = new Thread(this, "processing thread"); // will call this.run() this.processingThread.start(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
this.processingThread.start();
processingThread.start();
public void startThread() { this.processingThread = new Thread(this, "processing thread"); // will call this.run() this.processingThread.start(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
protected TestObjectPoolFactory(final String name) {
public TestObjectPoolFactory(final String name) {
protected TestObjectPoolFactory(final String name) { super(name); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/c4373c1dc85ccc9f5ff8a6633f2a8c59693dc20b/TestObjectPoolFactory.java/clean/src/test/org/apache/commons/pool/TestObjectPoolFactory.java
try { String resource = LANG_FILE_NAME + "_" + idata.localeISO3; this.langpack = new LocaleDatabase(ResourceManager.getInstance().getInputStream(resource)); } catch (Throwable exception) {}
public Unpacker( AutomatedInstallData idata, AbstractUIProgressHandler handler) { super("IzPack - Unpacker thread"); this.idata = idata; this.handler = handler; // Initialize the variable substitutor vs = new VariableSubstitutor(idata.getVariables()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
informListeners(customActions, InstallerListener.BEFORE_PACK,packs.get(i),
informListeners(customActions, InstallerListener.BEFORE_PACK,packs.get(i),
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
handler.nextStep(((Pack) packs.get(i)).name, i + 1, nfiles);
final Pack pack = ((Pack) packs.get(i)); String stepname = pack.name; if(langpack !=null && !(pack.id == null || pack.id.equals("")) ) { final String name = langpack.getString(pack.id); if(name !=null && !name.equals("")) { stepname = name; } } handler.nextStep(stepname, i + 1, nfiles);
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
informListeners(customActions, InstallerListener.BEFORE_FILE,pathFile,
informListeners(customActions, InstallerListener.BEFORE_FILE,pathFile,
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
informListeners(customActions, InstallerListener.AFTER_FILE,pathFile,
informListeners(customActions, InstallerListener.AFTER_FILE,pathFile,
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public WebAccessor(Component parent)
public WebAccessor()
public WebAccessor(Component parent) { this.parent = parent; Locale l = null; if (parent != null) parent.getLocale(); soloCancelOption = UIManager.get("OptionPane.cancelButtonText", l);// TODO: // i18n? Authenticator.setDefault(new MyDialogAuthenticator()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/WebAccessor.java/buggy/src/lib/com/izforge/izpack/installer/WebAccessor.java
this.parent = parent; Locale l = null; if (parent != null) parent.getLocale(); soloCancelOption = UIManager.get("OptionPane.cancelButtonText", l); Authenticator.setDefault(new MyDialogAuthenticator());
throw new UnsupportedOperationException();
public WebAccessor(Component parent) { this.parent = parent; Locale l = null; if (parent != null) parent.getLocale(); soloCancelOption = UIManager.get("OptionPane.cancelButtonText", l);// TODO: // i18n? Authenticator.setDefault(new MyDialogAuthenticator()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/WebAccessor.java/buggy/src/lib/com/izforge/izpack/installer/WebAccessor.java
this.worker = new ProcessPanelWorker(idata, this);
ProcessPanelWorker worker = new ProcessPanelWorker(idata, this);
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { try { this.worker = new ProcessPanelWorker(idata, this); this.worker.run(); } catch (IOException e) { e.printStackTrace(); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelAutomationHelper.java/buggy/src/lib/com/izforge/izpack/panels/ProcessPanelAutomationHelper.java
this.worker.run();
worker.run();
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { try { this.worker = new ProcessPanelWorker(idata, this); this.worker.run(); } catch (IOException e) { e.printStackTrace(); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanelAutomationHelper.java/buggy/src/lib/com/izforge/izpack/panels/ProcessPanelAutomationHelper.java
JLabel infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
JLabel infoLabel = new JLabel( parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = new JLabel(parent.langpack.getString("LicencePanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
textArea.setMargin(new Insets(2,2,2,2));
textArea.setMargin(new Insets(2, 2, 2, 2));
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = new JLabel(parent.langpack.getString("LicencePanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.agree"), false);
yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.agree"), false);
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = new JLabel(parent.langpack.getString("LicencePanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.notagree"), true);
noRadio = new JRadioButton( parent.langpack.getString("LicencePanel.notagree"), true);
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = new JLabel(parent.langpack.getString("LicencePanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
} else
} else
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
} catch (Exception err)
} catch (Exception err)
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; licence = ResourceManager.getInstance().getTextResource(resNamePrifix); } catch (Exception err) { licence = "Error : could not load the licence text !"; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/LicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/LicencePanel.java
if (targetfile_attr == null) { throw new Exception ("missing \"targetfile\" attribute for <parsable> in line "+e.getLineNr());
if ((targetfile_attr == null) && (executeClass == null)) { throw new Exception ("either \"targetfile\" or \"class\" attribute is required for <executable> in line "+e.getLineNr());
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); if (root == null) { throw new Exception ("no packs specified"); } // dummy variable used for values from XML Strin...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/53b1e54c98a1f7db891cd9985df036951ebe9cbe/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
vs = new VariableSubstitutor(idata.getVariableValueMap());
vs = new VariableSubstitutor(idata.getVariables());
public Unpacker( AutomatedInstallData idata, AbstractUIProgressHandler handler) { super("IzPack - Unpacker thread"); this.idata = idata; this.handler = handler; // Initialize the variable substitutor vs = new VariableSubstitutor(idata.getVariableValueMap()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Unpacker.java/clean/src/lib/com/izforge/izpack/installer/Unpacker.java