rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
private ArrayList scanDirectory (File path)
private ArrayList scanDirectory(File path)
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("scanning directory " + path.getAbsolutePath());
Debug.trace("scanning directory " + path.getAbsolutePath());
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
ArrayList result = new ArrayList ();
ArrayList result = new ArrayList();
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
if (! path.isDirectory ())
if (!path.isDirectory())
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
File[] entries = path.listFiles ();
File[] entries = path.listFiles();
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
if (f == null) continue; if (f.isDirectory ())
if (f == null) continue; if (f.isDirectory())
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java")))
result.addAll(scanDirectory(f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith(".java")))
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
result.add (f);
result.add(f);
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public void setCompiler (String compiler)
public void setCompiler(String compiler)
public void setCompiler (String compiler) { this.compilerToUse = compiler; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public void setCompilerArguments (String arguments)
public void setCompilerArguments(String arguments)
public void setCompilerArguments (String arguments) { this.compilerArgumentsToUse = arguments; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public void startThread ()
public void startThread()
public void startThread () { this.compilationThread = new Thread (this, "compilation thread"); //will call this.run() this.compilationThread.start(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
this.compilationThread = new Thread (this, "compilation thread");
this.compilationThread = new Thread(this, "compilation thread");
public void startThread () { this.compilationThread = new Thread (this, "compilation thread"); //will call this.run() this.compilationThread.start(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING);
infoLabel = new JLabel( parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING);
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
} catch (Exception err)
} catch (Exception err)
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
catch (Exception err) {}
public void hyperlinkUpdate(HyperlinkEvent e) { try { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) textArea.setPage(e.getURL()); } catch (Exception err) {} }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
} catch (Exception ex)
} catch (Exception ex)
private URL loadInfo() { String resNamePrifix = "HTMLInfoPanel.info"; try { return ResourceManager.getInstance().getURL(resNamePrifix); } catch (Exception ex) { ex.printStackTrace(); } return null; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
_logger.info( "Intend to take the shortest path between: " + (String)_nextVertex.getUserDatum( LABEL_KEY ) + " ==> " + (String)e.getDest().getUserDatum( LABEL_KEY ) + " (from: " + (String)e.getSource().getUserDatum( LABEL_KEY ) + "), using " + _shortestPathToVertex.size() + " hops." );
_logger.info( "Intend to take the shortest path between: " + (String)_nextVertex.getUserDatum( LABEL_KEY ) + " and " + (String)e.getDest().getUserDatum( LABEL_KEY ) + " (from: " + (String)e.getSource().getUserDatum( LABEL_KEY ) + "), using " + _shortestPathToVertex.size() + " hops." );
private void executeMethod( boolean optimize ) throws FoundNoEdgeException { DirectedSparseEdge edge = null; Object[] outEdges = null; if ( _nextVertex.containsUserDatumKey( BACK_KEY ) && _history. size() >= 3 ) { Float probability = (Float)_nextVertex.getUserDatum( BACK_KEY ); int index = _radomGenerato...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
String paths = "";
String paths = "The route is: ";
private void executeMethod( boolean optimize ) throws FoundNoEdgeException { DirectedSparseEdge edge = null; Object[] outEdges = null; if ( _nextVertex.containsUserDatumKey( BACK_KEY ) && _history. size() >= 3 ) { Float probability = (Float)_nextVertex.getUserDatum( BACK_KEY ); int index = _radomGenerato...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
paths += " ==> " + getCompleteEdgeName( item );
paths += getCompleteEdgeName( item ) + " ==> ";
private void executeMethod( boolean optimize ) throws FoundNoEdgeException { DirectedSparseEdge edge = null; Object[] outEdges = null; if ( _nextVertex.containsUserDatumKey( BACK_KEY ) && _history. size() >= 3 ) { Float probability = (Float)_nextVertex.getUserDatum( BACK_KEY ); int index = _radomGenerato...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
paths += " Done!";
private void executeMethod( boolean optimize ) throws FoundNoEdgeException { DirectedSparseEdge edge = null; Object[] outEdges = null; if ( _nextVertex.containsUserDatumKey( BACK_KEY ) && _history. size() >= 3 ) { Float probability = (Float)_nextVertex.getUserDatum( BACK_KEY ); int index = _radomGenerato...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
private void parseFile( String fileName )
private SparseGraph parseFile( String fileName )
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
DirectedSparseVertex v = (DirectedSparseVertex) _graph.addVertex( new DirectedSparseVertex() );
DirectedSparseVertex v = (DirectedSparseVertex) graph.addVertex( new DirectedSparseVertex() );
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
p = Pattern.compile( "(no merge)", Pattern.MULTILINE );
p = Pattern.compile( "(NO_MERGE)", Pattern.MULTILINE );
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
_logger.debug( "Found no merge for edge: " + label );
_logger.debug( "Found NO_MERGE for edge: " + label );
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
Object[] vertices = _graph.getVertices().toArray();
Object[] vertices = graph.getVertices().toArray();
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
_graph.addEdge( e );
graph.addEdge( e );
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
return graph;
private void parseFile( String fileName ) { try { _logger.info( "Parsing file: " + fileName ); _doc = _parser.build( fileName ); // Parse all vertices (nodes) Iterator iter = _doc.getDescendants( new ElementFilter( "node" ) ); while ( iter.hasNext() ) { Object o = iter.next(); if ( o instanceof Ele...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
parseFile( _graphmlFileName );
_graph = parseFile( _graphmlFileName );
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( File dir, St...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
parseFile( allChildren[ i ].getAbsolutePath() );
_graphList.add( parseFile( allChildren[ i ].getAbsolutePath() ) );
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( File dir, St...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
mergeVertices();
analyseSubGraphs();
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( File dir, St...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
Indexer id = Indexer.getIndexer( _graph );
Indexer id = Indexer.getAndUpdateIndexer( _graph );
public void writeGraph( String mergedGraphml_ ) { StringBuffer sourceFile = new StringBuffer(); try { FileWriter file = new FileWriter( mergedGraphml_ ); sourceFile.append( "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" ); sourceFile.append( "<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns/graph...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1f49f2f41d383b2f4104d9eed9d837951c0ea87b/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
JLabel infoLabel = createLabel(getI18nStringForClass("info", "TargetPanel"), "open",
JLabel infoLabel = createLabel("info", "TargetPanel", "open",
public PathInputPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // Set default values emptyTargetMsg = getI18nStringForClass("empty_target", "TargetPanel"); warnMsg = getI18nStringForClass("warn", "TargetPanel"); // if( this.class.) // Customize t...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8304bd275b449f44187bc3547148189a494456e/PathInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/PathInputPanel.java
protected KeyedObjectPool makeEmptyPool(int mincapacity) {
protected KeyedObjectPool makeEmptyPool(KeyedPoolableObjectFactory factory) {
protected KeyedObjectPool makeEmptyPool(int mincapacity) { if (this.getClass() != TestBaseKeyedObjectPool.class) { throw new AssertionError("Subclasses of TestBaseKeyedObjectPool must reimplement this method."); } throw new UnsupportedOperationException("BaseKeyedObjectPool isn't a c...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1313111fc820c43662b3b98672f70316d84ee80c/TestBaseKeyedObjectPool.java/buggy/src/test/org/apache/commons/pool/TestBaseKeyedObjectPool.java
if( entries != null )
private void addSelectionList(File groups, int aGridx, int aGridy, int aGridwidth, int aGridheight, int aFill) { Vector dirEntries = new Vector(); File[] entries = groups.listFiles(); for (int idx = 0; idx < entries.length; idx++) { if (entries[idx].isDirectory()) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7b685b77fb1c70bb5e8b01ada07311b47f884523/ShortcutPanel.java/buggy/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception
public StdKunststoffPackager( String outputFilename, PackagerListener plistener) throws Exception
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInput...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
else { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); }
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInput...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInput...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
if (zentry.isDirectory()) continue;
if (zentry.isDirectory()) continue;
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInput...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInput...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
if (method.equals("getFreeSpace"))
if ("getFreeSpace".equals(method))
public static boolean supported(String method) { if (method.equals("getFreeSpace")) { if (OsVersion.IS_UNIX) return true; if (OsVersion.IS_WINDOWS) { // getFreeSpace do not work on Windows 98. if (System.getProperty("os.name").toLowerCase().indexOf("w...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IoHelper.java/buggy/src/lib/com/izforge/izpack/util/IoHelper.java
else if (method.equals("chmod"))
else if ("chmod".equals(method))
public static boolean supported(String method) { if (method.equals("getFreeSpace")) { if (OsVersion.IS_UNIX) return true; if (OsVersion.IS_WINDOWS) { // getFreeSpace do not work on Windows 98. if (System.getProperty("os.name").toLowerCase().indexOf("w...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IoHelper.java/buggy/src/lib/com/izforge/izpack/util/IoHelper.java
else if (method.equals("copyFile"))
else if ("copyFile".equals(method))
public static boolean supported(String method) { if (method.equals("getFreeSpace")) { if (OsVersion.IS_UNIX) return true; if (OsVersion.IS_WINDOWS) { // getFreeSpace do not work on Windows 98. if (System.getProperty("os.name").toLowerCase().indexOf("w...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IoHelper.java/buggy/src/lib/com/izforge/izpack/util/IoHelper.java
else if (method.equals("getPrimaryGroup"))
else if ("getPrimaryGroup".equals(method))
public static boolean supported(String method) { if (method.equals("getFreeSpace")) { if (OsVersion.IS_UNIX) return true; if (OsVersion.IS_WINDOWS) { // getFreeSpace do not work on Windows 98. if (System.getProperty("os.name").toLowerCase().indexOf("w...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IoHelper.java/buggy/src/lib/com/izforge/izpack/util/IoHelper.java
else if (method.equals("getenv"))
else if ("getenv".equals(method))
public static boolean supported(String method) { if (method.equals("getFreeSpace")) { if (OsVersion.IS_UNIX) return true; if (OsVersion.IS_WINDOWS) { // getFreeSpace do not work on Windows 98. if (System.getProperty("os.name").toLowerCase().indexOf("w...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IoHelper.java/buggy/src/lib/com/izforge/izpack/util/IoHelper.java
public LinkedList generatePDepODEReactionList(ReactionModel p_reactionModel, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation generatePDepODEReactionList(ReactionModel,SystemSnapshot,Temperature,Pressure) LinkedList nonPDepList = new LinkedList(); L...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public LinkedList generatePDepODEReactionList(ReactionModel p_reactionModel, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation generatePDepODEReactionList(ReactionModel,SystemSnapshot,Temperature,Pressure) LinkedList nonPDepList = new LinkedList(); L...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public LinkedList generatePDepODEReactionList(ReactionModel p_reactionModel, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation generatePDepODEReactionList(ReactionModel,SystemSnapshot,Temperature,Pressure) LinkedList nonPDepList = new LinkedList(); L...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
private void generateTROEReactionList(ReactionModel p_reactionModel, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { int size = p_reactionModel.getReactionSet().size(); TROEODEReaction [] result = new TROEODEReaction[size]; int thirdID = 0; Iterator iter = p_r...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
thirdBody.add((ThirdBodyReaction)r);
public void generateThirdBodyReactionList(ReactionModel p_reactionModel, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation generateThirdBodyReactionList(ReactionModel,SystemSnapshot,Temperature,Pressure) int size = p_reactionModel.getReactionSet().size(); ...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
nParameter = rList.size()+thirdBodyReactionList.length;
nParameter = rList.size()+thirdBodyReactionList.length+troeReactionList.length;
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
for (int i = 1; i <= rList.size()+thirdBodyReactionList.length; i++){
for (int i = 1; i <= rList.size()+thirdBodyReactionList.length+troeReactionList.length; i++){
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
for (int i=rList.size()+1+thirdBodyReactionList.length; i<=nParameter;i++){
for (int i=rList.size()+1+thirdBodyReactionList.length+troeReactionList.length; i<=nParameter;i++){
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
int reactionNumber = rList.size()+thirdBodyReactionList.length;
int reactionNumber = rList.size()+thirdBodyReactionList.length+troeReactionList.length;
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
int speciesNum = p-rList.size()-thirdBodyReactionList.length;
int speciesNum = p-rList.size()-thirdBodyReactionList.length-troeReactionList.length;
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
Reaction rxn = (Reaction)rList.get(p);
rxn = (Reaction) rList.get(p); } else if (p < rList.size()+thirdBodyReactionList.length){ rxn = (Reaction)thirdBody.get(p-rList.size()); } else{ rxn = (Reaction)troe.get(p-rList.size()-thirdBodyReactionList.length); }
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
} else { sflux = 0; SensitivityStatus senStatus = new SensitivityStatus(0, sflux, m, p+1); sensitivityStatus.add(k-p_reactionModel.getSpeciesNumber(),senStatus); p_beginStatus.putSensitivityStatus(k-speciesNumber,senStatus); y[k] = 0; yprime[k] = sflux; }
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
int reactionNumber = rList.size();
int reactionNumber = rList.size()+thirdBodyReactionList.length+troeReactionList.length;
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
idid = solveSEN(p_initialization, reactionList, p_reactionChanged, thirdBodyReactionList, nState, nParameter, this.parameterInforArray, y, yprime, tBegin, tEnd, this.rtol, this.atol, T, P);
idid = solveSEN(p_initialization, reactionList, p_reactionChanged, thirdBodyReactionList, troeReactionList, nState, nParameter, this.parameterInforArray, y, yprime, tBegin, tEnd, this.rtol, this.atol, T, P);
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
sss.setReactionList(rList);
LinkedList reactionList = new LinkedList(); reactionList.addAll(rList); reactionList.addAll(thirdBody); reactionList.addAll(troe); sss.setReactionList(reactionList);
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public ODEReaction transferReaction(Reaction p_reaction, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation transferReaction(Reaction,SystemSnapshot,Temperature,Pressure) double dT = 1; Temperature Tup = new Temperature(p_temperature.getStandard()+dT,...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public ODEReaction transferReaction(Reaction p_reaction, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation transferReaction(Reaction,SystemSnapshot,Temperature,Pressure) double dT = 1; Temperature Tup = new Temperature(p_temperature.getStandard()+dT,...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public ODEReaction transferReaction(Reaction p_reaction, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation transferReaction(Reaction,SystemSnapshot,Temperature,Pressure) double dT = 1; Temperature Tup = new Temperature(p_temperature.getStandard()+dT,...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public ODEReaction transferReaction(Reaction p_reaction, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation transferReaction(Reaction,SystemSnapshot,Temperature,Pressure) double dT = 1; Temperature Tup = new Temperature(p_temperature.getStandard()+dT,...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public ODEReaction transferReaction(Reaction p_reaction, SystemSnapshot p_beginStatus, Temperature p_temperature, Pressure p_pressure) { //#[ operation transferReaction(Reaction,SystemSnapshot,Temperature,Pressure) double dT = 1; Temperature Tup = new Temperature(p_temperature.getStandard()+dT,...
58381 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58381/f535dfbbe9b4499d90bf09b749aff992198aac05/JDASPK.java/clean/jing/rxnSys/JDASPK.java
public synchronized void addObject() throws Exception {
public void addObject() throws Exception {
public synchronized void addObject() throws Exception { Object obj = _factory.makeObject(); _numActive++; // A little slimy - must do this because returnObject decrements it. this.returnObject(obj); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1cf205e1f6c8aeaba48a8beaa3a7c345ab7eeefe/GenericObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
_numActive++; this.returnObject(obj);
synchronized(this) { _numActive++; this.returnObject(obj); }
public synchronized void addObject() throws Exception { Object obj = _factory.makeObject(); _numActive++; // A little slimy - must do this because returnObject decrements it. this.returnObject(obj); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1cf205e1f6c8aeaba48a8beaa3a7c345ab7eeefe/GenericObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
layout = new GridBagLayout(); gbConstraints = new GridBagConstraints();
GridBagLayout layout = new GridBagLayout(); GridBagConstraints gbConstraints = new GridBagConstraints();
protected void createNormalLayout() { preLoadImages(); layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // Create constraint for first component as standard constraint. parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ImgPacksPanel.java/clean/src/lib/com/izforge/izpack/panels/ImgPacksPanel.java
descriptionScroller = new JScrollPane();
JScrollPane descriptionScroller = new JScrollPane();
protected void createNormalLayout() { preLoadImages(); layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // Create constraint for first component as standard constraint. parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ImgPacksPanel.java/clean/src/lib/com/izforge/izpack/panels/ImgPacksPanel.java
int maxWidth = 80, maxHeight = 60;
int maxWidth = 80; int maxHeight = 60;
private Dimension getPreferredSizeFromImages() { int maxWidth = 80, maxHeight = 60; ImageIcon icon; for (Iterator it = images.iterator(); it.hasNext();) { icon = (ImageIcon) it.next(); maxWidth = Math.max(maxWidth, icon.getIconWidth()); maxHeight = Mat...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ImgPacksPanel.java/clean/src/lib/com/izforge/izpack/panels/ImgPacksPanel.java
layout = new GridBagLayout();
GridBagLayout layout = new GridBagLayout();
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepar...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/UninstallerFrame.java/clean/src/lib/com/izforge/izpack/uninstaller/UninstallerFrame.java
gbConstraints = new GridBagConstraints();
GridBagConstraints gbConstraints = new GridBagConstraints();
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepar...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/UninstallerFrame.java/clean/src/lib/com/izforge/izpack/uninstaller/UninstallerFrame.java
warningLabel = new JLabel(langpack.getString("uninstaller.warning"), icons
JLabel warningLabel = new JLabel(langpack.getString("uninstaller.warning"), icons
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepar...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/UninstallerFrame.java/clean/src/lib/com/izforge/izpack/uninstaller/UninstallerFrame.java
return shortcut.getLinkPath(shortcut.getUserType());
String result = shortcut.getLinkPath(shortcut.getUserType()); Debug.log( CLASS + myClass + ".getBasePath() '" + result + "'" ); return result;
public String getBasePath() throws Exception { return shortcut.getLinkPath(shortcut.getUserType()); }
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 (shortcut.getDirectoryCreated());
String directoryCreated = shortcut.getDirectoryCreated(); Debug.log( CLASS + myClass + ".getDirectoryCreated() '" + directoryCreated + "'" ); return( directoryCreated );
public String getDirectoryCreated() { return (shortcut.getDirectoryCreated()); }
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 (shortcut.getFileName());
String aFilename = shortcut.getFileName(); Debug.log( CLASS + myClass + ".getFileName() '" + aFilename + "'" ); return( aFilename );
public String getFileName() { return (shortcut.getFileName()); }
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 shortcut.getHotkey();
int result = shortcut.getHotkey(); Debug.log( CLASS + myClass + ".getHotkey() '" + result + "'" ); return result;
public int getHotkey() { return shortcut.getHotkey(); }
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 shortcut.getIconLocation();
String result = shortcut.getIconLocation(); Debug.log( CLASS + myClass + ".getIconLocation() '" + result + "'" ); return result;
public String getIconLocation() { return shortcut.getIconLocation(); }
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 + ".getLinkType() '" + typ + "'" );
public int getLinkType() { int typ = shortcut.getLinkType(); switch (typ) { case ShellLink.DESKTOP: typ = DESKTOP; break; case ShellLink.PROGRAM_MENU: typ = APPLICATIONS; break; case ShellLink.START_MENU: typ = START...
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
if (file[i].isDirectory())
File aFile = file[i]; String aFilename = aFile.getName(); if (aFile.isDirectory())
public Vector getProgramGroups(int userType) { // ---------------------------------------------------- // translate the user type // ---------------------------------------------------- int type = ShellLink.CURRENT_USER; if (userType == ALL_USERS) { type = She...
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
groups.add(file[i].getName());
Debug.log( CLASS + myClass + ".getProgramGroups()-" + logentry++ + " '" + aFilename + "'" ); groups.add( aFilename );
public Vector getProgramGroups(int userType) { // ---------------------------------------------------- // translate the user type // ---------------------------------------------------- int type = ShellLink.CURRENT_USER; if (userType == ALL_USERS) { type = She...
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
else Debug.log( CLASS + myClass + ".getProgramGroups()-" + logentry++ + " Skip (NoDirectory): '" + aFilename + "'" );
public Vector getProgramGroups(int userType) { // ---------------------------------------------------- // translate the user type // ---------------------------------------------------- int type = ShellLink.CURRENT_USER; if (userType == ALL_USERS) { type = She...
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 String getProgramsFolder(int current_user)
public String getProgramsFolder(int current_user)
public String getProgramsFolder(int current_user) { return shortcut.getLinkPath(current_user); }
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 shortcut.getLinkPath(current_user);
String result = null; try { result = new String( shortcut.getLinkPath(current_user).getBytes( StringTool.getPlatformEncoding() ), StringTool.getPlatformEncoding() ); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } Debug.log( CLASS + myClass + ".getProgramsFolder() '" + current_user + "', '" + result ...
public String getProgramsFolder(int current_user) { return shortcut.getLinkPath(current_user); }
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 int getShowCommand() { int showCommand = shortcut.getShowCommand(); switch (showCommand) { case ShellLink.NORMAL: showCommand = NORMAL; break; // both MINNOACTIVE and MINIMIZED map to Shortcut.MINIMIZED case ShellLink.MINNOACTIVE: case...
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 + ".getShowCommand() '" + Integer.toString(showCommand) + "'" );
public int getShowCommand() { int showCommand = shortcut.getShowCommand(); switch (showCommand) { case ShellLink.NORMAL: showCommand = NORMAL; break; // both MINNOACTIVE and MINIMIZED map to Shortcut.MINIMIZED case ShellLink.MINNOACTIVE: case...
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 + ".getUserType() '" + utype + "'" );
public int getUserType() { int utype = shortcut.getUserType(); switch (utype) { case ShellLink.ALL_USERS: utype = ALL_USERS; break; case ShellLink.CURRENT_USER: utype = CURRENT_USER; break; } return utype; }
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 shortcut.getWorkingDirectory();
String result = shortcut.getWorkingDirectory(); Debug.log( CLASS + myClass + ".getWorkingDirectory() '" + result + "'" ); return result;
public String getWorkingDirectory() { return shortcut.getWorkingDirectory(); }
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 + ".initialize() '" + Integer.toString(type)+ "', '" + name + "'" );
public void initialize(int type, String name) throws Exception { switch (type) { case APPLICATIONS: { shortcut = new ShellLink(ShellLink.PROGRAM_MENU, name); break; } case START_MENU: { shortcut = new ShellLink(ShellLink.START_MENU, 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
String au = shortcut.getallUsersLinkPath(); String cu = shortcut.getcurrentUserLinkPath();
String allUsers = shortcut.getallUsersLinkPath(); Debug.log( CLASS + myClass + ".multipleUsers()-1 '" + allUsers + "'" ); String currentUsers = shortcut.getcurrentUserLinkPath(); Debug.log( CLASS + myClass + ".multipleUsers()-2 '" + currentUsers + "'" );
public boolean multipleUsers() { // Win NT4 won't have PROGRAMS for CURRENT_USER. // Win 98 may not have 'Start Menu\Programs' for ALL_USERS String au = shortcut.getallUsersLinkPath(); String cu = shortcut.getcurrentUserLinkPath(); if (au == null || cu == null) return false; ...
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
if (au == null || cu == null) return false;
if( allUsers == null || currentUsers == null ) result = false; else result = allUsers.length() > 0 && currentUsers.length() > 0;
public boolean multipleUsers() { // Win NT4 won't have PROGRAMS for CURRENT_USER. // Win 98 may not have 'Start Menu\Programs' for ALL_USERS String au = shortcut.getallUsersLinkPath(); String cu = shortcut.getcurrentUserLinkPath(); if (au == null || cu == null) return false; ...
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 (au.length() > 0 && cu.length() > 0);
Debug.log( CLASS + myClass + ".multipleUsers()-3 '" + result + "'" ); return (result);
public boolean multipleUsers() { // Win NT4 won't have PROGRAMS for CURRENT_USER. // Win 98 may not have 'Start Menu\Programs' for ALL_USERS String au = shortcut.getallUsersLinkPath(); String cu = shortcut.getcurrentUserLinkPath(); if (au == null || cu == null) return false; ...
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 save() throws Exception { shortcut.save(); }
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.setArguments(arguments);
Debug.log( CLASS + myClass + ".setArguments() '" + arguments + "'" ); shortcut.setArguments(arguments);
public void setArguments(String arguments) { shortcut.setArguments(arguments); }
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.setDescription(description);
Debug.log( CLASS + myClass + ".setDescription() '" + description + "'" ); shortcut.setDescription( description );
public void setDescription(String description) { shortcut.setDescription(description); }
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 + ".setHotkey() '" + hotkey + "'" );
public void setHotkey(int hotkey) { shortcut.setHotkey(hotkey); }
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.setIconLocation(path, index);
Debug.log( CLASS + myClass + ".setIconLocation() '" + path + "', '" + Integer.toString(index) + "'" ); shortcut.setIconLocation(path, index);
public void setIconLocation(String path, int index) { shortcut.setIconLocation(path, index); }
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