rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
flush(); clear();
public void test_experimenters_groups() throws Exception { Experimenter e = new Experimenter(); ExperimenterGroup g_1 = new ExperimenterGroup(); ExperimenterGroup g_2 = new ExperimenterGroup(); e.setOmeName("j.b."+System.currentTimeMillis()); e.setFirstName(" Joe "); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/UpdateTest.java/buggy/components/server/test/ome/server/itests/update/UpdateTest.java
temp = temp + password [i - 1];
temp += password[i - 1];
public String process (ProcessingClient client) { if (client.getNumFields () < 1) { return (""); } char [] password = client.getFieldContents (0).toCharArray (); char [] result = new char [password.length]; int temp; for (int i = 0; i < password.length; i++) { temp = pass...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PWDEncryptor.java/buggy/src/lib/com/izforge/izpack/sample/PWDEncryptor.java
temp = temp + 13;
temp += 13;
public String process (ProcessingClient client) { if (client.getNumFields () < 1) { return (""); } char [] password = client.getFieldContents (0).toCharArray (); char [] result = new char [password.length]; int temp; for (int i = 0; i < password.length; i++) { temp = pass...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PWDEncryptor.java/buggy/src/lib/com/izforge/izpack/sample/PWDEncryptor.java
temp = temp + 193;
temp += 193;
public String process (ProcessingClient client) { if (client.getNumFields () < 1) { return (""); } char [] password = client.getFieldContents (0).toCharArray (); char [] result = new char [password.length]; int temp; for (int i = 0; i < password.length; i++) { temp = pass...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PWDEncryptor.java/buggy/src/lib/com/izforge/izpack/sample/PWDEncryptor.java
result.createForAll = new Boolean(createForAll.booleanValue());
result.createForAll = Boolean.valueOf(createForAll.booleanValue());
public Object clone() throws OutOfMemoryError { ShortcutData result = new ShortcutData(); result.type = type; result.userType = userType; result.iconIndex = iconIndex; result.initialState = initialState; result.addToGroup = addToGroup; result.name = cloneString(na...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ShortcutData.java/clean/src/lib/com/izforge/izpack/panels/ShortcutData.java
return (new String(original));
return (original);
private String cloneString(String original) { if (original == null) { return (""); } else { return (new String(original)); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ShortcutData.java/clean/src/lib/com/izforge/izpack/panels/ShortcutData.java
}
}
public Compiler(String filename, String basedir, String kind, String output) { // Default initialisation this.filename = filename; this.basedir = basedir; this.kind = kind; this.output = output; // Creates a temporary temp file for keeping empty directories try { keepDirFile = File.creat...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String[] files = ds.getIncludedFiles();
String[] files = ds.getIncludedFiles();
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
File file = new File(absolutPath + File.separator + (String) files[i]);
File file = new File(absolutPath + File.separator + files[i]);
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
int size;
public void executeCompiler() throws Exception { // Usefull variables int size; 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.s...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
}
public void executeCompiler() throws Exception { // Usefull variables int size; 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.s...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
Vector v;
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
ArrayList argList = null;
ArrayList argList = new ArrayList();
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
includes[j] = (String) xclude.getAttribute("name");
includes[j] = xclude.getAttribute("name");
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
excludes[j] = (String) xclude.getAttribute("name");
excludes[j] = xclude.getAttribute("name");
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
setExistFiles(JDKPathPanel.testFiles);
setExistFiles(JDKPathPanel.testFiles);
public JDKPathPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); setMustExist(true); if(!OsVersion.IS_OSX) setExistFiles(JDKPathPanel.testFiles); setMinVersion(idata.getVariable("JDKPathPanel.minVersion")); setMaxVersion(idata.getVariable("JDKPathP...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e9ecfce2fdf6943ab20fd038a190d1d3bfe2c415/JDKPathPanel.java/buggy/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
int curVal; int neededVal;
int curVal = 0; int neededVal = 0;
private final boolean compareVersions(String in, String template, boolean isMin, int assumedPlace, int halfRange, String useNotIdentifier) { StringTokenizer st = new StringTokenizer(in, " \t\n\r\f\""); int i; int currentRange = 0; String[] interestedEntries = new String[hal...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e9ecfce2fdf6943ab20fd038a190d1d3bfe2c415/JDKPathPanel.java/buggy/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
public void test_using_ServiceFactory() throws Exception { ServiceFactory basicSF = new ServiceFactory(); ServiceFactory loginSF = new ServiceFactory( new Login( "bar", "ome" )); Properties p = new Properties(); p.setProperty( Login.OMERO_USER, "bax" ); ServiceFactory propsSF = new ServiceFa...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b0dd5bda152f884a9502f0d8c5cb8cb95ace53d/Preferences3Test.java/clean/components/client/test/ome/client/utests/Preferences3Test.java
this.releaseGUI(true);
this.releaseGUI(result.isReconfigure());
public void stopAction () { CompileResult result = this.worker.getResult (); this.releaseGUI(true); if (result.isContinue()) { parent.lockPrevButton(); packProgressBar.setString(parent.langpack.getString("CompilePanel.progress.finished")); packProgressBar.setEnabled(false); packProgre...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/dbf34fdee25210594c4ed38bcf7160d68489622c/CompilePanel.java/clean/src/lib/com/izforge/izpack/panels/CompilePanel.java
console2 = new ConsoleWriter(this);
ConsoleWriter console2 = new ConsoleWriter(this);
public ConsoleTextArea() { super(); history = new java.util.Vector(); console1 = new ConsoleWriter(this); console2 = new ConsoleWriter(this); out = new PrintStream(console1); err = new PrintStream(console2); PipedOutputStream outPipe = new PipedOutputStream(); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Console.java/buggy/src/lib/com/izforge/izpack/util/Console.java
; } try { ensureMinIdle(); } catch (Exception e) {
public void run() { while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { Thread.sleep(sleeptime); } cat...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/cac3e9bf504f5c9299e1d37535c1b3cb67dc7166/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
if( ((CursorableLinkedList)(_poolMap.get(key))).isEmpty() ) {
if ((_minIdle == 0) && (((CursorableLinkedList)(_poolMap.get(key))).isEmpty())) {
public synchronized void evict() throws Exception { Object key = null; for(int i=0,m=getNumTests();i<m;i++) { if(_poolMap.size() > 0) { // if we don't have a key cursor, then create one, and close any object cursor if(null == _evictionKeyCursor) { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/cac3e9bf504f5c9299e1d37535c1b3cb67dc7166/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
setMinIdle(conf.minIdle);
public synchronized void setConfig(GenericKeyedObjectPool.Config conf) { setMaxIdle(conf.maxIdle); setMaxActive(conf.maxActive); setMaxTotal(conf.maxTotal); setMaxWait(conf.maxWait); setWhenExhaustedAction(conf.whenExhaustedAction); setTestOnBorrow(conf.testOnBorrow); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/cac3e9bf504f5c9299e1d37535c1b3cb67dc7166/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
done = false;
boolean done = false;
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { Unpacker unpacker = new Unpacker(idata, this); unpacker.start(); done = false; while (!done && unpacker.isAlive()) { try { Thread.sleep(100); } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/InstallPanelAutomationHelper.java
done = true;
boolean done = true;
public void stopAction() { System.out.println("[ Unpacking finished. ]"); done = true; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/InstallPanelAutomationHelper.java
input = getClass ().getResourceAsStream (key);
input = TargetFactory.class.getResourceAsStream (key);
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
input = getClass ().getResourceAsStream (keyFragment);
input = TargetFactory.class.getResourceAsStream (keyFragment);
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
this.outputScrollPane = new JScrollPane(this.outputPane); subpanel.add(this.outputScrollPane);
JScrollPane outputScrollPane = new JScrollPane(this.outputPane); subpanel.add(outputScrollPane);
public ProcessPanel(InstallerFrame parent, InstallData idata) throws IOException { super(parent, idata); this.worker = new ProcessPanelWorker(idata, this); JLabel heading = new JLabel(); Font font = heading.getFont(); font = font.deriveFont(Font.BOLD, font.getSize() * 2.0f); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanel.java/buggy/src/lib/com/izforge/izpack/panels/ProcessPanel.java
dim.width = dim.width - (dim.width / 4);
dim.width -= (dim.width / 4);
public void panelActivate() { // We clip the panel Dimension dim = parent.getPanelsContainerSize(); dim.width = dim.width - (dim.width / 4); dim.height = 150; setMinimumSize(dim); setMaximumSize(dim); setPreferredSize(dim); parent.lockNextButton(); t...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/ProcessPanel.java/buggy/src/lib/com/izforge/izpack/panels/ProcessPanel.java
public void computeLocationStats(PlaneDef pd)
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf)
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
if (pd == null)
if (planeDef == null)
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
ChannelBinding[] cb = getChannelBindings();
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); )
List<Channel> channels = pixels.getChannels(); for (Channel channel : channels)
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue();
ChannelBinding cb = cbs.get(w); double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax();
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
sf.computeLocationStats(metadata, buffer, pd, w);
sf.computeLocationStats(pixels, buf, planeDef, w);
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue();
cb.setNoiseReduction(Boolean.TRUE); float start = cb.getInputStart(); float end = cb.getInputEnd();
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd()));
cb.setInputStart(new Float(sf.getInputStart())); cb.setInputEnd(new Float(sf.getInputEnd())); w++;
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
PlaneDef pd = new PlaneDef(PlaneDef.XY, rndDef.getDefaultT().intValue()); pd.setZ(rndDef.getDefaultZ().intValue());
PlaneDef pd = new PlaneDef(PlaneDef.XY, rndDef.getDefaultT()); pd.setZ(rndDef.getDefaultZ());
public PlaneDef getDefaultPlaneDef() { PlaneDef pd = new PlaneDef(PlaneDef.XY, rndDef.getDefaultT().intValue()); pd.setZ(rndDef.getDefaultZ().intValue()); return pd; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
IPixels iPixels)
IPixels iPixels, PixelBuffer buffer)
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
StatsInfo stats = channel.getStatsInfo();
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
channelBinding.setInputStart(new Float(stats.getGlobalMin())); channelBinding.setInputEnd(new Float(stats.getGlobalMax()));
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
computeLocationStats(pixels, channelBindings, planeDef, buffer);
private static void resetChannelBindings(RenderingDef def, Pixels pixels, IPixels iPixels) { // The actual channel bindings we are returning List<ChannelBinding> channelBindings = def.getWaveRendering(); List<Channel> channels = pixels.getChannels(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
{}
{ Debug.trace(exception); }
public PacksPanelBase(InstallerFrame parent, InstallData idata) { super(parent, idata); // Load langpack. try { this.langpack = parent.langpack; } catch (Throwable exception) {} // init the map computePacks(idata.availablePacks); cr...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ac2ba20f61963cc3eb7a71824379a6d580aa2236/PacksPanelBase.java/clean/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
okButton = new JButton("OK");
JButton okButton = new JButton("OK");
public LanguageDialog(JFrame frame, Object[] items) { super(frame); try { loadLookAndFeel(); } catch (Exception err) { err.printStackTrace(); } // We build the GUI addWindowLis...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
&& ((String) installdata.guiPrefs.modifier.get("useButtonIcons")) .equalsIgnoreCase("no")) useButtonIcons = false;
&& "no".equalsIgnoreCase((String) installdata.guiPrefs.modifier.get("useButtonIcons"))) useButtonIcons = false;
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
&& ((String) installdata.guiPrefs.modifier.get("useLabelIcons")) .equalsIgnoreCase("no")) useLabelIcons = false;
&& "no".equalsIgnoreCase((String) installdata.guiPrefs.modifier.get("useLabelIcons"))) useLabelIcons = false;
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (!syskey.equals("mac"))
if (!"mac".equals(syskey))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (laf.equals("kunststoff"))
if ("kunststoff".equals(laf))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (laf.equals("liquid"))
if ("liquid".equals(laf))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (value.equals("yes"))
if ("yes".equals(value))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (value.equals("yes"))
if ("yes".equals(value))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (laf.equals("metouia"))
if ("metouia".equals(laf))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
if (laf.equals("looks"))
if ("looks".equals(laf))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
&& ((String) installdata.guiPrefs.modifier.get("useFlags")).equalsIgnoreCase("no"))
&& "no".equalsIgnoreCase((String) installdata.guiPrefs.modifier.get("useFlags")))
protected boolean useFlags() { if (installdata.guiPrefs.modifier.containsKey("useFlags") && ((String) installdata.guiPrefs.modifier.get("useFlags")).equalsIgnoreCase("no")) return (false); return (true); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
final String suiteName, final Map parameters, final String annotationType) { super(true);
final String suiteName, final Map parameters, final String annotationType, final int logLevel) { super(true);
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/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE; } else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; }
m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE;
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/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; } m_logLevel= logLevel; }
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/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\"");
XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\"");
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite", attrs);
Properties attrs= new Properties(); attrs.setProperty("name", getSuiteName()); suiteBuffer.push("suite", attrs);
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
if(m_parameters != null) { for(Iterator it= m_parameters.entrySet().iterator(); it.hasNext(); ) { Map.Entry entry= (Map.Entry) it.next(); Properties paramAttrs= new Properties(); paramAttrs.setProperty("name", (String) entry.getKey()); paramAttrs.setProperty("value", (String) entry.getValue()); suiteBuffer.push("parame...
if(m_parameters != null) { for(Iterator it= m_parameters.entrySet().iterator(); it.hasNext();) { Map.Entry entry= (Map.Entry) it.next(); Properties paramAttrs= new Properties(); paramAttrs.setProperty("name", (String) entry.getKey()); paramAttrs.setProperty("value", (String) entry.getValue()); suiteBuffer.addEmptyEleme...
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
initContentBuffer(suiteBuffer);
initContentBuffer(suiteBuffer);
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
suiteBuffer.pop("suite");
suiteBuffer.pop("suite");
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
return suiteBuffer; }
return suiteBuffer; }
protected XMLStringBuffer createContentBuffer() { XMLStringBuffer suiteBuffer= new XMLStringBuffer(""); //$NON-NLS-1$ suiteBuffer.setDocType("suite SYSTEM \"" + Parser.TESTNG_DTD_URL + "\""); Properties attrs= new Properties(); attrs.setProperty("name", m_suiteName); suiteBuffer.push("suite...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
if(null == m_suiteBuffer) { m_suiteBuffer= createContentBuffer(); }
if(null == m_suiteBuffer) { m_suiteBuffer= createContentBuffer(); }
private XMLStringBuffer getSuiteBuffer() { if(null == m_suiteBuffer) { m_suiteBuffer= createContentBuffer(); } return m_suiteBuffer; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
return m_suiteBuffer; }
return m_suiteBuffer; }
private XMLStringBuffer getSuiteBuffer() { if(null == m_suiteBuffer) { m_suiteBuffer= createContentBuffer(); } return m_suiteBuffer; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
protected abstract void initContentBuffer(XMLStringBuffer suiteBuffer);
protected void initContentBuffer(XMLStringBuffer suiteBuffer) { Properties testAttrs= new Properties(); testAttrs.setProperty("name", getTestName()); if(m_annotationType != null) { testAttrs.setProperty("annotations", m_annotationType); } testAttrs.setProperty("verbose", String.valueOf(m_logLevel)); suiteBuffer.push("...
protected abstract void initContentBuffer(XMLStringBuffer suiteBuffer);
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
final File suiteFile= new File(directory, "temp-testng-customsuite.xml");
final File suiteFile= new File(directory, "temp-testng-customsuite.xml");
public File save(File directory) { final File suiteFile= new File(directory, "temp-testng-customsuite.xml"); saveSuiteContent(suiteFile, getSuiteBuffer()); return suiteFile; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
saveSuiteContent(suiteFile, getSuiteBuffer());
saveSuiteContent(suiteFile, getSuiteBuffer());
public File save(File directory) { final File suiteFile= new File(directory, "temp-testng-customsuite.xml"); saveSuiteContent(suiteFile, getSuiteBuffer()); return suiteFile; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
return suiteFile; }
return suiteFile; }
public File save(File directory) { final File suiteFile= new File(directory, "temp-testng-customsuite.xml"); saveSuiteContent(suiteFile, getSuiteBuffer()); return suiteFile; }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush();
FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOException ioe) { } finally { if(null != bw) { try { bw.close(); } catch(IOException ioe) { }
protected void saveSuiteContent(final File file, final XMLStringBuffer content) { FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOExcep...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
catch(IOException ioe) { } finally { if(null != bw) { try { bw.close(); } catch(IOException ioe) { }
if(null != fw) { try { fw.close();
protected void saveSuiteContent(final File file, final XMLStringBuffer content) { FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOExcep...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
if(null != fw) { try { fw.close(); } catch(IOException ioe) { }
catch(IOException ioe) {
protected void saveSuiteContent(final File file, final XMLStringBuffer content) { FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOExcep...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
}
protected void saveSuiteContent(final File file, final XMLStringBuffer content) { FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOExcep...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
m_classText.getText(),
Utils.stringToList(m_classText.getText().trim()),
public void performApply(ILaunchConfigurationWorkingCopy configuration) { ConfigurationHelper.updateLaunchConfiguration(configuration, new ConfigurationHelper.LaunchInfo(m_projectText.getText(), m_typeOfTestRun, m_classText.getText(), m_groupMap, m_suiteText.getTe...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/TestNGMainTab.java/clean/src/main/org/testng/eclipse/launch/TestNGMainTab.java
ButtonFactory.useButtonIcons(); ButtonFactory.useHighlightButtons();
private void buildGUI() throws Exception { // Window events handler addWindowListener(new WindowHandler()); // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Sets the menubar menuBar = new FrontendMenuBar(actions, icons, langpack); setJMenuBar(menuBar); // S...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2ff7483bcda125043303ef0aa208a83c0d2456d/FrontendFrame.java/buggy/src/lib/com/izforge/izpack/frontend/FrontendFrame.java
try { readShortcutSpec(); } catch (Throwable exception) { System.out.println("could not read shortcut spec!"); exception.printStackTrace(); }
public ShortcutPanel(InstallerFrame parent, InstallData installData) { super(parent, installData, "link16x16"); try { readShortcutSpec(); } catch (Throwable exception) { System.out.println("could not read shortcut spec!"); excepti...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
layout = new GridBagLayout(); constraints = new GridBagConstraints(); setLayout(layout); try { shortcut = (Shortcut) (TargetFactory.getInstance() .makeObject("com.izforge.izpack.util.os.Shortcut")); shortcut.initialize(Shortcut.APPLICATIONS, "-"); } catch (Throwable exception) { System.out.println("could not create s...
layout = (GridBagLayout) super.getLayout(); constraints = super.defaultGridBagConstraints; setLayout(super.getLayout());
public ShortcutPanel(InstallerFrame parent, InstallData installData) { super(parent, installData, "link16x16"); try { readShortcutSpec(); } catch (Throwable exception) { System.out.println("could not read shortcut spec!"); excepti...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
groupList.setEnabled(create);
if (groupList != null) { groupList.setEnabled(create); }
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
currentUser.setEnabled(create);
currentUser.setEnabled(create);
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
allowDesktopShortcut.setEnabled(create); if( isRootUser )
if (allowDesktopShortcut != null) { allowDesktopShortcut.setEnabled(create); } if (isRootUser) {
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
}
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); // ---------------------------------------------------- // create shortcut for the current user was selected // refresh the list of program groups accordingly and // reset the program group...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
int groupLocation;
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
VariableSubstitutor substitutor = new VariableSubstitutor(idata.getVariables()); String temp;
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
if (!OsConstraint.oneMatchesCurrentSystem(shortcutSpec)) continue;
if (!OsConstraint.oneMatchesCurrentSystem(shortcutSpec)) { continue; } if (!checkConditions(shortcutSpec)) { continue; }
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
data.subgroup = shortcutSpec.getAttribute(SPEC_ATTRIBUTE_SUBGROUP);
data.subgroup = shortcutSpec.getAttribute(SPEC_ATTRIBUTE_SUBGROUP, "");
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
data.deskTopEntryLinux_URL = substitutor.substitute(shortcutSpec.getAttribute( SPEC_ATTRIBUTE_URL, ""), null);
data.deskTopEntryLinux_URL = shortcutSpec.getAttribute(SPEC_ATTRIBUTE_URL, "");
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
data.createForAll = Boolean.valueOf(shortcutSpec.getAttribute(CREATE_FOR_ALL, "false")); temp = fixSeparatorChar(shortcutSpec.getAttribute(SPEC_ATTRIBUTE_TARGET, "")); data.target = substitutor.substitute(temp, null); temp = shortcutSpec.getAttribute(SPEC_ATTRIBUTE_COMMAND, ""); data.commandLine = substitutor.substit...
data.createForAll = new Boolean(shortcutSpec.getAttribute(CREATE_FOR_ALL, "false")); data.target = fixSeparatorChar(shortcutSpec.getAttribute(SPEC_ATTRIBUTE_TARGET, "")); data.commandLine = shortcutSpec.getAttribute(SPEC_ATTRIBUTE_COMMAND, ""); data.iconFile = fixSeparatorChar(shortcutSpec.getAttribute(SPEC_ATTR...
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
temp = fixSeparatorChar(shortcutSpec.getAttribute(SPEC_ATTRIBUTE_WORKING_DIR, "")); data.workingDirectory = substitutor.substitute(temp, null);
data.workingDirectory = fixSeparatorChar(shortcutSpec.getAttribute( SPEC_ATTRIBUTE_WORKING_DIR, ""));
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
continue; }
data.target = ""; }
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
Vector forPacks = shortcutSpec.getChildrenNamed(SPEC_KEY_PACKS); if (!shortcutRequiredFor(forPacks)) { continue; }
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
if (attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_DESKTOP))
if (XMLHelper.attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_DESKTOP))
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
if (attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_APPLICATIONS))
if (XMLHelper.attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_APPLICATIONS))
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
if (attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_START_MENU))
if (XMLHelper.attributeIsTrue(shortcutSpec, SPEC_ATTRIBUTE_START_MENU))
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java