bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
---|---|---|
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObject); if (node.isChildrenLoaded()) foundNodes.add(userObject); } }
|
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObject); if (node.isChildrenLoaded()) foundNodes.add(userObject); } }
| 3,239,645 |
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObject); if (node.isChildrenLoaded()) foundNodes.add(userObject); } }
|
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { if (node.isChildrenLoaded()) foundNodes.add(userObject); } }
| 3,239,646 |
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); }
|
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); }
| 3,239,647 |
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); }
|
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); }
| 3,239,648 |
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } PlayerManager manager = new PlayerManager(this, control, max, settings.getMovieIndex(), s, e); player = new PlayerUI(manager, control.getRegistry(), maxT, maxZ, settings); }
|
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } PlayerManager manager = new PlayerManager(this, control, max, settings.getMovieIndex(), s, e); player = new PlayerUI(manager, control.getRegistry(), maxT, maxZ, settings); }
| 3,239,649 |
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } PlayerManager manager = new PlayerManager(this, control, max, settings.getMovieIndex(), s, e); player = new PlayerUI(manager, control.getRegistry(), maxT, maxZ, settings); }
|
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } PlayerManager manager = new PlayerManager(this, control, max, settings.getMovieIndex(), s, e); player = new PlayerUI(manager, control.getRegistry(), maxT, maxZ, settings); }
| 3,239,650 |
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = serverName; this.serviceUrl = serviceUrl; this.useSession = useSession; }
|
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = serverName; this.serviceUrl = serviceUrl; this.useSession = useSession; }
| 3,239,651 |
public CompileResult perform(String compiler, ArrayList arguments) { Debug.trace("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext()) cmdline_len += ((String) arg_it.next()).length() + 1; } // add compiler in front of arguments args.add(0, compiler); cmdline_len += compiler.length() + 1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext()) { String cp = (String) cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append(File.pathSeparatorChar); classpath_sb.append(new File(cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString(); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add("-classpath"); cmdline_len = cmdline_len + 11; args.add(classpath_str); cmdline_len += classpath_str.length() + 1; } // remember how many arguments we have which don't change for the // job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor(); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File) file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace("processing " + fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add(fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while // still // compiling a lot) this.listener.progress(last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[]) args.toArray(output); int retval = executor.executeCommand(full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned // although // compilation failed. Iterator arg_it = args.listIterator(common_args_no); while (arg_it.hasNext()) { File java_file = new File((String) arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf('.'); basename = basename.substring(0, dotpos) + ".class"; File class_file = new File(java_file.getParentFile(), basename); if (!class_file.exists()) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error.noclassfile") + java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size() - 1; i >= common_args_no; i--) { args.removeLast(); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress(last_fileno, jobfiles); String[] full_cmdline = (String[]) args.toArray(output); int retval = executor.executeCommand(full_cmdline, output); this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; } } Debug.trace("job " + this.name + " done (" + fileno + " files compiled)"); return new CompileResult(); }
|
public CompileResult perform(String compiler, ArrayList arguments) { Debug.trace("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext()) cmdline_len += ((String) arg_it.next()).length() + 1; } // add compiler in front of arguments args.add(0, compiler); cmdline_len += compiler.length() + 1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext()) { String cp = (String) cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append(File.pathSeparatorChar); classpath_sb.append(new File(cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString(); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add("-classpath"); cmdline_len += 11; args.add(classpath_str); cmdline_len += classpath_str.length() + 1; } // remember how many arguments we have which don't change for the // job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor(); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File) file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace("processing " + fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add(fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while // still // compiling a lot) this.listener.progress(last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[]) args.toArray(output); int retval = executor.executeCommand(full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned // although // compilation failed. Iterator arg_it = args.listIterator(common_args_no); while (arg_it.hasNext()) { File java_file = new File((String) arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf('.'); basename = basename.substring(0, dotpos) + ".class"; File class_file = new File(java_file.getParentFile(), basename); if (!class_file.exists()) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error.noclassfile") + java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size() - 1; i >= common_args_no; i--) { args.removeLast(); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress(last_fileno, jobfiles); String[] full_cmdline = (String[]) args.toArray(output); int retval = executor.executeCommand(full_cmdline, output); this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult(this.langpack .getString("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue()) return result; } } Debug.trace("job " + this.name + " done (" + fileno + " files compiled)"); return new CompileResult(); }
| 3,239,652 |
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); this.compilationThread = null; if (!readSpec()) throw new IOException("Error reading compilation specification"); }
|
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); Thread compilationThread = null; if (!readSpec()) throw new IOException("Error reading compilation specification"); }
| 3,239,653 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if ("classpath".equals(child.getName())) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
| 3,239,654 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if ("job".equals(child.getName())) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
| 3,239,655 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if ("directory".equals(child.getName())) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
| 3,239,656 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if ("file".equals(child.getName())) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
| 3,239,657 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName().equals("classpath")) { changeClassPath(ourclasspath, child); } else if (child.getName().equals("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add(subjob); } else if (child.getName().equals("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add(new File(finalname)); } } else if ("packdepency".equals(child.getName())) { String name = child.getAttribute("name"); if (name == null) { System.out .println("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (!found) { Debug.trace("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob(this.handler, this.idata.langpack, (String) node .getAttribute("name"), files, ourclasspath); return null; }
| 3,239,658 |
public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); }
|
public void startThread() { Thread compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); }
| 3,239,659 |
public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); }
|
public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() compilationThread.start(); }
| 3,239,660 |
public VariableSubstitutor(Map variables) { this.variables = variables; }
|
public VariableSubstitutor(Properties variables) { this.variables = variables; }
| 3,239,661 |
public Pack( String name, String id, String description, List osConstraints, boolean required, boolean preselected) { this.name = name; this.id = id; this.description = description; this.osConstraints = osConstraints; this.required = required; this.preselected = preselected; nbytes = 0; }
|
public Pack( String name, String id, String description, List osConstraints, boolean required, boolean preselected, boolean loose) { this.name = name; this.id = id; this.description = description; this.osConstraints = osConstraints; this.required = required; this.preselected = preselected; nbytes = 0; }
| 3,239,662 |
public Destroyer(String installPath, boolean forceDestroy, AbstractUIProgressHandler handler) { super("IzPack - Destroyer"); this.installPath = installPath; this.forceDestroy = forceDestroy; this.handler = handler; }
|
public Destroyer( String installPath, boolean forceDestroy, AbstractUIProgressHandler handler) { super("IzPack - Destroyer"); this.installPath = installPath; this.forceDestroy = forceDestroy; this.handler = handler; }
| 3,239,664 |
private void cleanup(File file) throws Exception { if (file.isDirectory()) { File[] files = file.listFiles(); int size = files.length; for (int i = 0; i < size; i++) cleanup(files[i]); file.delete(); } else if (forceDestroy) file.delete(); }
|
private void cleanup(File file) throws Exception { if (file.isDirectory()) { File[] files = file.listFiles(); int size = files.length; for (int i = 0; i < size; i++) cleanup(files[i]); file.delete(); } else if (forceDestroy) file.delete(); }
| 3,239,665 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); executables.add(file); } return executables; }
|
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); executables.add(file); } return executables; }
| 3,239,666 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); executables.add(file); } return executables; }
|
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for (int i = 0; i < num; i++) { ExecutableFile file = (ExecutableFile)in.readObject(); executables.add(file); } return executables; }
| 3,239,667 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); executables.add(file); } return executables; }
|
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile) in.readObject(); executables.add(file); } return executables; }
| 3,239,668 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction ("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction (); } catch (Exception err) { handler.stopAction (); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
|
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction (); } catch (Exception err) { handler.stopAction (); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
| 3,239,669 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction ("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction (); } catch (Exception err) { handler.stopAction (); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
|
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction ("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction (); } catch (Exception err) { handler.stopAction (); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
| 3,239,670 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction ("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction (); } catch (Exception err) { handler.stopAction (); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
|
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = files.size(); handler.startAction ("destroy", size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); file.delete(); handler.progress(i, file.getAbsolutePath()); } // We make a complementary cleanup handler.progress(size, "[ cleanups ]"); cleanup(new File(installPath)); handler.stopAction(); } catch (Exception err) { handler.stopAction(); err.printStackTrace(); handler.emitError("exception caught", err.toString()); } }
| 3,239,671 |
public void doStop() { synchronized (this.stop) { this.stop = new Boolean(true); } }
|
public void doStop() { synchronized (this.stop) { this.stop = Boolean.valueOf(true); } }
| 3,239,672 |
public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); if (!readSpec()) throw new IOException("Error reading processing specification"); }
|
public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); if (!readSpec()) throw new IOException("Error reading processing specification"); }
| 3,239,673 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,674 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream(getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,675 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,676 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,677 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,678 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
|
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/kunststoff.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
| 3,239,679 |
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar = new JarOutputStream(outFile); outJar.setLevel(9); // Sets up the web output jar stream outputFilename = outputFilename.substring(0, outputFilename.length() - 4) + "_web.jar"; outFile = new FileOutputStream(outputFilename); webJar = new JarOutputStream(outFile); webJar.setLevel(9); // Copies the skeleton installer sendMsg("Copying the skeleton installer ..."); writeSkeletonInstaller(webJar); }
|
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar = new JarOutputStream(outFile); outJar.setLevel(9); // Sets up the web output jar stream outputFilename = outputFilename.substring(0, outputFilename.length() - 4) + "_web.jar"; outFile = new FileOutputStream(outputFilename); webJar = new JarOutputStream(outFile); webJar.setLevel(9); // Copies the skeleton installer sendMsg("Copying the skeleton installer ..."); writeSkeletonInstaller(webJar); }
| 3,239,680 |
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar = new JarOutputStream(outFile); outJar.setLevel(9); // Sets up the web output jar stream outputFilename = outputFilename.substring(0, outputFilename.length() - 4) + "_web.jar"; outFile = new FileOutputStream(outputFilename); webJar = new JarOutputStream(outFile); webJar.setLevel(9); // Copies the skeleton installer sendMsg("Copying the skeleton installer ..."); writeSkeletonInstaller(webJar); }
|
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar = new JarOutputStream(outFile); outJar.setLevel(9); // Sets up the web output jar stream outputFilename = outputFilename.substring(0, outputFilename.length() - 4) + "_web.jar"; outFile = new FileOutputStream(outputFilename); webJar = new JarOutputStream(outFile); webJar.setLevel(9); // Copies the skeleton installer sendMsg("Copying the skeleton installer ..."); writeSkeletonInstaller(webJar); }
| 3,239,681 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } notifyAll(); // _numActive has changed }
|
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } notifyAll(); // _numActive has changed }
| 3,239,682 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } notifyAll(); // _numActive has changed }
|
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } notifyAll(); // _numActive has changed }
| 3,239,683 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } notifyAll(); // _numActive has changed }
|
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // ignored, we're throwing it out anway } _factory.destroyObject(obj); } else { try { _factory.passivateObject(obj); _pool.addFirst(new ObjectTimestampPair(obj)); } catch(Exception e) { _factory.destroyObject(obj); } } boolean shouldDestroy = !success; synchronized(this) { _numActive--; if((_maxIdle > 0) && (_pool.size() >= _maxIdle)) { shouldDestroy = true; } else if(success) { _pool.addFirst(new ObjectTimestampPair(obj)); } notifyAll(); } if(shouldDestroy) { try { _factory.destroyObject(obj); } catch(Exception e) { } } // _numActive has changed }
| 3,239,684 |
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue; }
|
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue; }
| 3,239,685 |
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue; }
|
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue; }
| 3,239,686 |
public boolean good() { return (worker != null ? true : false); }
|
public boolean good() { return (worker != null); }
| 3,239,687 |
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); } public void destroyObject(Object key, Object obj) { } public boolean validateObject(Object key, Object obj) { return true; } public void activateObject(Object key, Object obj) { } public void passivateObject(Object key, Object obj) { } } ); pool.setMaxActive(mincapacity); pool.setMaxIdle(mincapacity); return pool; }
|
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); } public void destroyObject(Object key, Object obj) { } public boolean validateObject(Object key, Object obj) { return true; } public void activateObject(Object key, Object obj) { } public void passivateObject(Object key, Object obj) { } } ); pool.setMaxActive(mincapacity); pool.setMaxIdle(mincapacity); return pool; }
| 3,239,688 |
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); } public void destroyObject(Object key, Object obj) { } public boolean validateObject(Object key, Object obj) { return true; } public void activateObject(Object key, Object obj) { } public void passivateObject(Object key, Object obj) { } } ); pool.setMaxActive(mincapacity); pool.setMaxIdle(mincapacity); return pool; }
|
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); } public void destroyObject(Object key, Object obj) { } public boolean validateObject(Object key, Object obj) { return true; } public void activateObject(Object key, Object obj) { } public void passivateObject(Object key, Object obj) { } } ); pool.setMaxActive(mincapacity); pool.setMaxIdle(mincapacity); return pool; }
| 3,239,689 |
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); }
|
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); }
| 3,239,690 |
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); }
|
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter + 1)); return String.valueOf(key) + String.valueOf(counter); }
| 3,239,691 |
public void testMaxTotal() throws Exception { pool.setMaxActive(2); pool.setMaxTotal(3); pool.setWhenExhaustedAction(GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL); Object o1 = pool.borrowObject("a"); assertNotNull(o1); Object o2 = pool.borrowObject("a"); assertNotNull(o2); Object o3 = pool.borrowObject("b"); assertNotNull(o3); try { pool.borrowObject("c"); fail("Expected NoSuchElementException"); } catch(NoSuchElementException e) { // expected } assertEquals(0, pool.getNumIdle()); pool.returnObject("b", o3); assertEquals(1, pool.getNumIdle()); assertEquals(1, pool.getNumIdle("b")); Object o4 = pool.borrowObject("b"); assertNotNull(o4); assertEquals(0, pool.getNumIdle()); assertEquals(0, pool.getNumIdle("b")); }
|
public void testMaxTotal() throws Exception { pool.setMaxActive(2); pool.setMaxTotal(3); pool.setWhenExhaustedAction(GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL); Object o1 = pool.borrowObject("a"); assertNotNull(o1); Object o2 = pool.borrowObject("a"); assertNotNull(o2); Object o3 = pool.borrowObject("b"); assertNotNull(o3); try { pool.borrowObject("c"); fail("Expected NoSuchElementException"); } catch(NoSuchElementException e) { // expected } assertEquals(0, pool.getNumIdle()); pool.returnObject("b", o3); assertEquals(1, pool.getNumIdle()); assertEquals(1, pool.getNumIdle("b")); Object o4 = pool.borrowObject("b"); assertNotNull(o4); assertEquals(0, pool.getNumIdle()); assertEquals(0, pool.getNumIdle("b")); }
| 3,239,692 |
public void testWithInitiallyInvalid() throws Exception { GenericKeyedObjectPool pool = new GenericKeyedObjectPool(new SimpleFactory(false)); pool.setTestOnBorrow(true); try { pool.borrowObject("xyzzy"); fail("Expected NoSuchElementException"); } catch(NoSuchElementException e) { // expected } }
|
public void testWithInitiallyInvalid() throws Exception { GenericKeyedObjectPool pool = new GenericKeyedObjectPool(new SimpleFactory(false)); pool.setTestOnBorrow(true); try { pool.borrowObject("xyzzy"); fail("Expected NoSuchElementException"); } catch(NoSuchElementException e) { // expected } }
| 3,239,693 |
public synchronized int getNumIdle(Object key) { try { return((LinkedList)(_poolMap.get(key))).size(); } catch(Exception e) { return 0; } }
|
public synchronized int getNumIdle(Object key) { try { return((LinkedList)(_poolMap.get(key))).size(); } catch(Exception e) { return 0; } }
| 3,239,694 |
public synchronized int getNumActive(Object key) { return getActiveCount(key); }
|
public synchronized int getNumActive(Object key) { return getActiveCount(key); }
| 3,239,695 |
public synchronized void preparePool(Object key, boolean populateImmediately) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if (null == pool) { pool = new LinkedList(); _poolMap.put(key,pool); } if (populateImmediately) { try { // Create the pooled objects ensureMinIdle(key); } catch (Exception e) { //Do nothing } } }
|
public synchronized void preparePool(Object key, boolean populateImmediately) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if (null == pool) { pool = new LinkedList(); _poolMap.put(key,pool); } if (populateImmediately) { try { // Create the pooled objects ensureMinIdle(key); } catch (Exception e) { //Do nothing } } }
| 3,239,696 |
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { return getTableCellRendererComponent(table, value, isSelected, false, row, column); }
|
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { return getTableCellRendererComponent(table, value, isSelected, false, row, column); }
| 3,239,697 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.getSelectionBackground()); } else { display.setForeground(table.getForeground()); display.setBackground(table.getBackground()); } int state = ((Integer) value).intValue(); display.setSelected((value != null && Math.abs(state) == 1)); display.setEnabled(state >= 0); return display; }
|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.getSelectionBackground()); } else { display.setForeground(table.getForeground()); display.setBackground(table.getBackground()); } int state = ((Integer) value).intValue(); display.setSelected((value != null && Math.abs(state) == 1)); display.setEnabled(state >= 0); return display; }
| 3,239,698 |
protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints) { JLabel label = LabelFactory.create(parent.langpack.getString(msgId), parent.icons .getImageIcon(iconId), JLabel.TRAILING); if (layout != null && constraints != null) layout.addLayoutComponent(label, constraints); add(label); return (label); }
|
protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints) { JLabel label = LabelFactory.create(parent.langpack.getString(msgId), parent.icons .getImageIcon(iconId), JLabel.TRAILING); if (layout != null && constraints != null) layout.addLayoutComponent(label, constraints); add(label); return (label); }
| 3,239,699 |
protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTable table = new JTable(); table.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); table.setIntercellSpacing(new Dimension(0, 0)); table.setBackground(Color.white); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.getSelectionModel().addListSelectionListener(this); table.setShowGrid(false); scroller.setViewportView(table); scroller.setAlignmentX(LEFT_ALIGNMENT); scroller.getViewport().setBackground(Color.white); scroller.setPreferredSize(new Dimension(width, (idata.guiPrefs.height / 3 + 30))); if (layout != null && constraints != null) layout.addLayoutComponent(scroller, constraints); add(scroller); return (table); }
|
protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTable table = new JTable(); table.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); table.setIntercellSpacing(new Dimension(0, 0)); table.setBackground(Color.white); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.getSelectionModel().addListSelectionListener(this); table.setShowGrid(false); scroller.setViewportView(table); scroller.setAlignmentX(LEFT_ALIGNMENT); scroller.getViewport().setBackground(Color.white); scroller.setPreferredSize(new Dimension(width, (idata.guiPrefs.height / 3 + 30))); if (layout != null && constraints != null) layout.addLayoutComponent(scroller, constraints); add(scroller); return (table); }
| 3,239,700 |
protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints) { JPanel panel = new JPanel(); JLabel label = new JLabel(); if (label == null) label = new JLabel(""); panel.setAlignmentX(LEFT_ALIGNMENT); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.add(LabelFactory.create(parent.langpack.getString(msgId))); panel.add(Box.createHorizontalGlue()); panel.add(label); if (layout != null && constraints != null) layout.addLayoutComponent(panel, constraints); add(panel); return (label); }
|
protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints) { JPanel panel = new JPanel(); JLabel label = new JLabel(); if (label == null) label = new JLabel(""); panel.setAlignmentX(LEFT_ALIGNMENT); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.add(LabelFactory.create(parent.langpack.getString(msgId))); panel.add(Box.createHorizontalGlue()); panel.add(label); if (layout != null && constraints != null) layout.addLayoutComponent(panel, constraints); add(panel); return (label); }
| 3,239,701 |
protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTextArea area = new JTextArea(); area.setMargin(new Insets(2, 2, 2, 2)); area.setAlignmentX(LEFT_ALIGNMENT); area.setCaretPosition(0); area.setEditable(false); area.setEditable(false); area.setOpaque(false); area.setLineWrap(true); area.setWrapStyleWord(true); area.setBorder(BorderFactory.createTitledBorder(parent.langpack.getString(msgId))); if (layout != null && constraints != null) { if (scroller != null) { layout.addLayoutComponent(scroller, constraints); } else layout.addLayoutComponent(area, constraints); } if (scroller != null) { scroller.setViewportView(area); add(scroller); } else add(area); return (area); }
|
protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTextArea area = new JTextArea(); area.setMargin(new Insets(2, 2, 2, 2)); area.setAlignmentX(LEFT_ALIGNMENT); area.setCaretPosition(0); area.setEditable(false); area.setEditable(false); area.setOpaque(false); area.setLineWrap(true); area.setWrapStyleWord(true); area.setBorder(BorderFactory.createTitledBorder(parent.langpack.getString(msgId))); if (layout != null && constraints != null) { if (scroller != null) { layout.addLayoutComponent(scroller, constraints); } else layout.addLayoutComponent(area, constraints); } if (scroller != null) { scroller.setViewportView(area); add(scroller); } else add(area); return (area); }
| 3,239,702 |
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSelectedRenderer); CheckBoxEditorRenderer packSelectedEditor = new CheckBoxEditorRenderer(true); packsTable.getColumnModel().getColumn(0).setCellEditor(packSelectedEditor); packsTable.getColumnModel().getColumn(0).setMaxWidth(40); DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 3256438101604710708L; public void setBorder(Border b) { } }; packsTable.getColumnModel().getColumn(1).setCellRenderer(renderer1); DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 4121128130480976185L; public void setBorder(Border b) { } // public void setFont(Font f) // { // super.setFont(new Font("Monospaced",Font.PLAIN,11)); // } }; renderer2.setHorizontalAlignment(JLabel.RIGHT); packsTable.getColumnModel().getColumn(2).setCellRenderer(renderer2); packsTable.getColumnModel().getColumn(2).setMaxWidth(100); // remove header,so we don't need more strings tableScroller.remove(packsTable.getTableHeader()); tableScroller.setColumnHeaderView(null); tableScroller.setColumnHeader(null); // set the JCheckBoxes to the currently selected panels. The // selection might have changed in another panel java.util.Iterator iter = idata.availablePacks.iterator(); bytes = 0; while (iter.hasNext()) { Pack p = (Pack) iter.next(); if (p.required) { bytes += p.nbytes; continue; } if (idata.selectedPacks.contains(p)) bytes += p.nbytes; } } catch (Exception e) { e.printStackTrace(); } showSpaceRequired(); showFreeSpace(); }
|
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSelectedRenderer); CheckBoxEditorRenderer packSelectedEditor = new CheckBoxEditorRenderer(true); packsTable.getColumnModel().getColumn(0).setCellEditor(packSelectedEditor); packsTable.getColumnModel().getColumn(0).setMaxWidth(40); DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 3256438101604710708L; public void setBorder(Border b) { } }; packsTable.getColumnModel().getColumn(1).setCellRenderer(renderer1); DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 4121128130480976185L; public void setBorder(Border b) { } // public void setFont(Font f) // { // super.setFont(new Font("Monospaced",Font.PLAIN,11)); // } }; renderer2.setHorizontalAlignment(JLabel.RIGHT); packsTable.getColumnModel().getColumn(2).setCellRenderer(renderer2); packsTable.getColumnModel().getColumn(2).setMaxWidth(100); // remove header,so we don't need more strings tableScroller.remove(packsTable.getTableHeader()); tableScroller.setColumnHeaderView(null); tableScroller.setColumnHeader(null); // set the JCheckBoxes to the currently selected panels. The // selection might have changed in another panel java.util.Iterator iter = idata.availablePacks.iterator(); bytes = 0; while (iter.hasNext()) { Pack p = (Pack) iter.next(); if (p.required) { bytes += p.nbytes; continue; } if (idata.selectedPacks.contains(p)) bytes += p.nbytes; } } catch (Exception e) { e.printStackTrace(); } showSpaceRequired(); showFreeSpace(); }
| 3,239,703 |
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSelectedRenderer); CheckBoxEditorRenderer packSelectedEditor = new CheckBoxEditorRenderer(true); packsTable.getColumnModel().getColumn(0).setCellEditor(packSelectedEditor); packsTable.getColumnModel().getColumn(0).setMaxWidth(40); DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 3256438101604710708L; public void setBorder(Border b) { } }; packsTable.getColumnModel().getColumn(1).setCellRenderer(renderer1); DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 4121128130480976185L; public void setBorder(Border b) { } // public void setFont(Font f) // { // super.setFont(new Font("Monospaced",Font.PLAIN,11)); // } }; renderer2.setHorizontalAlignment(JLabel.RIGHT); packsTable.getColumnModel().getColumn(2).setCellRenderer(renderer2); packsTable.getColumnModel().getColumn(2).setMaxWidth(100); // remove header,so we don't need more strings tableScroller.remove(packsTable.getTableHeader()); tableScroller.setColumnHeaderView(null); tableScroller.setColumnHeader(null); // set the JCheckBoxes to the currently selected panels. The // selection might have changed in another panel java.util.Iterator iter = idata.availablePacks.iterator(); bytes = 0; while (iter.hasNext()) { Pack p = (Pack) iter.next(); if (p.required) { bytes += p.nbytes; continue; } if (idata.selectedPacks.contains(p)) bytes += p.nbytes; } } catch (Exception e) { e.printStackTrace(); } showSpaceRequired(); showFreeSpace(); }
|
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSelectedRenderer); CheckBoxEditorRenderer packSelectedEditor = new CheckBoxEditorRenderer(true); packsTable.getColumnModel().getColumn(0).setCellEditor(packSelectedEditor); packsTable.getColumnModel().getColumn(0).setMaxWidth(40); DefaultTableCellRenderer renderer1 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 3256438101604710708L; public void setBorder(Border b) { } }; packsTable.getColumnModel().getColumn(1).setCellRenderer(renderer1); DefaultTableCellRenderer renderer2 = new DefaultTableCellRenderer() { /** * */ private static final long serialVersionUID = 4121128130480976185L; public void setBorder(Border b) { } // public void setFont(Font f) // { // super.setFont(new Font("Monospaced",Font.PLAIN,11)); // } }; renderer2.setHorizontalAlignment(JLabel.RIGHT); packsTable.getColumnModel().getColumn(2).setCellRenderer(renderer2); packsTable.getColumnModel().getColumn(2).setMaxWidth(100); // remove header,so we don't need more strings tableScroller.remove(packsTable.getTableHeader()); tableScroller.setColumnHeaderView(null); tableScroller.setColumnHeader(null); // set the JCheckBoxes to the currently selected panels. The // selection might have changed in another panel java.util.Iterator iter = idata.availablePacks.iterator(); bytes = 0; while (iter.hasNext()) { Pack p = (Pack) iter.next(); if (p.required) { bytes += p.nbytes; continue; } if (idata.selectedPacks.contains(p)) bytes += p.nbytes; } } catch (Exception e) { e.printStackTrace(); } showSpaceRequired(); showFreeSpace(); }
| 3,239,704 |
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0x000000007fffffff) msg = " > 2 GB"; else if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable"); else msg = Pack.toByteUnitsString((int) freeBytes); freeSpaceLabel.setText(msg); } }
|
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0x000000007fffffff) msg = " > 2 GB"; else if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable"); else msg = Pack.toByteUnitsString((int) freeBytes); freeSpaceLabel.setText(msg); } }
| 3,239,705 |
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0x000000007fffffff) msg = " > 2 GB"; else if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable"); else msg = Pack.toByteUnitsString((int) freeBytes); freeSpaceLabel.setText(msg); } }
|
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0x000000007fffffff) msg = " > 2 GB"; else if (freeBytes < 0) msg = parent.langpack.getString("PacksPanel.notAscertainable"); else msg = Pack.toByteUnitsString(freeBytes); freeSpaceLabel.setText(msg); } }
| 3,239,706 |
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_launchType= launchType; m_className= className.trim(); m_groupMap= groupMap; m_suiteName= suiteName.trim(); m_complianceLevel= complianceLevel; m_logLevel= logLevel; }
|
public LaunchInfo(String projectName, int launchType, Collection classNames, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_launchType= launchType; m_className= className.trim(); m_groupMap= groupMap; m_suiteName= suiteName.trim(); m_complianceLevel= complianceLevel; m_logLevel= logLevel; }
| 3,239,707 |
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_launchType= launchType; m_className= className.trim(); m_groupMap= groupMap; m_suiteName= suiteName.trim(); m_complianceLevel= complianceLevel; m_logLevel= logLevel; }
|
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_launchType= launchType; m_classNames= classNames; m_groupMap= groupMap; m_suiteName= suiteName.trim(); m_complianceLevel= complianceLevel; m_logLevel= logLevel; }
| 3,239,708 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
|
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; Map classMethods= null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
| 3,239,709 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
|
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
| 3,239,710 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
|
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, testClasses, classMethods, groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
| 3,239,711 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
|
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(configuration, TestNGLaunchConfigurationConstants.PARAMS); if (type == TestNGLaunchConfigurationConstants.SUITE) { return createLaunchSuites(ijp.getProject(), getSuites(configuration)); } if (type == TestNGLaunchConfigurationConstants.GROUP) { groups = getGroups(configuration); testClasses = getGroupClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.CLASS) { testClasses = getClasses(configuration); } else if (type == TestNGLaunchConfigurationConstants.METHOD) { testClasses = getClasses(configuration); testMethods = getMethods(configuration); } else if (type == TestNGLaunchConfigurationConstants.PACKAGE) { packages= getListAttribute(configuration, TestNGLaunchConfigurationConstants.PACKAGE_TEST_LIST); } return createLaunchSuites(ijp.getProject().getName(), packages, getClassMethods(configuration), groups, parameters, getComplianceLevel(ijp, configuration), getLogLevel(configuration)); // return createLaunchSuites(ijp.getProject().getName(),// packages,// testClasses, // testMethods, // groups,// parameters,// getComplianceLevel(ijp, configuration),// getLogLevel(configuration)// ); }
| 3,239,712 |
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.hasNext(); ) { List classList= (List) it.next(); for(Iterator itc= classList.iterator(); itc.hasNext(); ) { classMethods.put(itc.next(), EMPTY); } } } if(null != launchInfo.m_className) { classMethods.put(launchInfo.m_className, EMPTY); } configuration.setAttribute(TestNGLaunchConfigurationConstants.TYPE, launchInfo.m_launchType); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, launchInfo.m_projectName); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, RemoteTestNG.class.getName()); configuration.setAttribute(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, Utils.stringToNullList(launchInfo.m_className)); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_LIST, new ArrayList(launchInfo.m_groupMap.keySet())); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_CLASS_LIST, Utils.uniqueMergeList(launchInfo.m_groupMap.values())); configuration.setAttribute(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToNullList(launchInfo.m_suiteName)); configuration.setAttribute(TestNGLaunchConfigurationConstants.ALL_METHODS_LIST, toClassMethodsMap(classMethods)); configuration.setAttribute(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, launchInfo.m_complianceLevel); configuration.setAttribute(TestNGLaunchConfigurationConstants.LOG_LEVEL, launchInfo.m_logLevel); }
|
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.hasNext(); ) { List classList= (List) it.next(); for(Iterator itc= classList.iterator(); itc.hasNext(); ) { classMethods.put(itc.next(), EMPTY); } } } if(null != launchInfo.m_className) { classMethods.put(launchInfo.m_className, EMPTY); } configuration.setAttribute(TestNGLaunchConfigurationConstants.TYPE, launchInfo.m_launchType); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, launchInfo.m_projectName); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, RemoteTestNG.class.getName()); configuration.setAttribute(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, Utils.stringToNullList(launchInfo.m_className)); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_LIST, new ArrayList(launchInfo.m_groupMap.keySet())); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_CLASS_LIST, Utils.uniqueMergeList(launchInfo.m_groupMap.values())); configuration.setAttribute(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToNullList(launchInfo.m_suiteName)); configuration.setAttribute(TestNGLaunchConfigurationConstants.ALL_METHODS_LIST, toClassMethodsMap(classMethods)); configuration.setAttribute(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, launchInfo.m_complianceLevel); configuration.setAttribute(TestNGLaunchConfigurationConstants.LOG_LEVEL, launchInfo.m_logLevel); }
| 3,239,713 |
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.hasNext(); ) { List classList= (List) it.next(); for(Iterator itc= classList.iterator(); itc.hasNext(); ) { classMethods.put(itc.next(), EMPTY); } } } if(null != launchInfo.m_className) { classMethods.put(launchInfo.m_className, EMPTY); } configuration.setAttribute(TestNGLaunchConfigurationConstants.TYPE, launchInfo.m_launchType); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, launchInfo.m_projectName); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, RemoteTestNG.class.getName()); configuration.setAttribute(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, Utils.stringToNullList(launchInfo.m_className)); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_LIST, new ArrayList(launchInfo.m_groupMap.keySet())); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_CLASS_LIST, Utils.uniqueMergeList(launchInfo.m_groupMap.values())); configuration.setAttribute(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToNullList(launchInfo.m_suiteName)); configuration.setAttribute(TestNGLaunchConfigurationConstants.ALL_METHODS_LIST, toClassMethodsMap(classMethods)); configuration.setAttribute(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, launchInfo.m_complianceLevel); configuration.setAttribute(TestNGLaunchConfigurationConstants.LOG_LEVEL, launchInfo.m_logLevel); }
|
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.hasNext(); ) { List classList= (List) it.next(); for(Iterator itc= classList.iterator(); itc.hasNext(); ) { classMethods.put(itc.next(), EMPTY); } } } if(null != launchInfo.m_className) { classMethods.put(launchInfo.m_className, EMPTY); } configuration.setAttribute(TestNGLaunchConfigurationConstants.TYPE, launchInfo.m_launchType); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, launchInfo.m_projectName); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, RemoteTestNG.class.getName()); configuration.setAttribute(TestNGLaunchConfigurationConstants.CLASS_TEST_LIST, classNamesList); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_LIST, new ArrayList(launchInfo.m_groupMap.keySet())); configuration.setAttribute(TestNGLaunchConfigurationConstants.GROUP_CLASS_LIST, Utils.uniqueMergeList(launchInfo.m_groupMap.values())); configuration.setAttribute(TestNGLaunchConfigurationConstants.SUITE_TEST_LIST, Utils.stringToNullList(launchInfo.m_suiteName)); configuration.setAttribute(TestNGLaunchConfigurationConstants.ALL_METHODS_LIST, toClassMethodsMap(classMethods)); configuration.setAttribute(TestNGLaunchConfigurationConstants.TESTNG_COMPLIANCE_LEVEL_ATTR, launchInfo.m_complianceLevel); configuration.setAttribute(TestNGLaunchConfigurationConstants.LOG_LEVEL, launchInfo.m_logLevel); }
| 3,239,714 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
|
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Map methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
| 3,239,715 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
|
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
| 3,239,716 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
|
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
| 3,239,717 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
|
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
| 3,239,718 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
|
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, final Collection groupNames, final Map parameters, final String annotationType, final int logLevel) { if((null != groupNames) && !groupNames.isEmpty()) { return new GroupListSuite(projectName, packageNames, /* is emtpy */ classNames, groupNames, parameters, /* is empty */ annotationType, logLevel); } else if(null != methodNames && methodNames.size() > 0) { return new MethodsSuite(projectName, (String) classNames.iterator().next(), methodNames, parameters, annotationType, logLevel); } else if(null != packageNames && !packageNames.isEmpty()) { return new PackageSuite(projectName, packageNames, classNames, /* is empty */ groupNames, /* is empty */ parameters, annotationType, logLevel); } else { return new ClassListSuite(projectName, packageNames, /* is empty */ classNames, groupNames, /* is empty */ parameters, annotationType, logLevel); } }
| 3,239,719 |
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".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE; } else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; } m_annotationTypeE= AnnotationTypeEnum.valueOf(annotationType); }
|
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE; } else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; } }
| 3,239,720 |
public OpenTestAction(TestRunnerViewPart testRunner, String className, String method) { this(testRunner, className, method, true); }
|
public OpenTestAction(TestRunnerViewPart testRunner, String className, String method) { this(testRunner, className, method, true); }
| 3,239,721 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
|
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
| 3,239,722 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
|
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method = fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
| 3,239,723 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
|
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; }
| 3,239,724 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
|
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
| 3,239,725 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
|
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
| 3,239,726 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
|
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
| 3,239,727 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
|
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
| 3,239,728 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
|
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
| 3,239,729 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
|
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
| 3,239,730 |
public boolean isEnabled() { try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; }
|
public boolean isEnabled() { try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; }
| 3,239,731 |
protected void reveal(ITextEditor textEditor) { if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); }
|
protected void reveal(ITextEditor textEditor) { if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); }
| 3,239,732 |
public void activateLogging() throws NativeLibException { return; }
|
public void activateLogging() throws NativeLibException { }
| 3,239,733 |
public void addLoggingInfo(List info) throws NativeLibException { return; }
|
public void addLoggingInfo(List info) throws NativeLibException { }
| 3,239,734 |
public void createKey(String key) throws NativeLibException { return; }
|
public void createKey(String key) throws NativeLibException { }
| 3,239,735 |
public void deleteKey( String key) throws NativeLibException { return; }
|
public void deleteKey( String key) throws NativeLibException { }
| 3,239,736 |
public void deleteKeyIfEmpty(String key) throws NativeLibException { return; }
|
public void deleteKeyIfEmpty(String key) throws NativeLibException { }
| 3,239,737 |
public void deleteValue(String key, String value) throws NativeLibException { return; }
|
public void deleteValue(String key, String value) throws NativeLibException { }
| 3,239,738 |
public void resetLogging() throws NativeLibException { return; }
|
public void resetLogging() throws NativeLibException { }
| 3,239,739 |
public void rewind() throws NativeLibException { return; }
|
public void rewind() throws NativeLibException { }
| 3,239,740 |
public void setLoggingInfo(List info) throws NativeLibException { return; }
|
public void setLoggingInfo(List info) throws NativeLibException { }
| 3,239,741 |
public void setRoot(int i) throws NativeLibException { return; }
|
public void setRoot(int i) throws NativeLibException { }
| 3,239,742 |
public void setValue(String key, String value, String contents) throws NativeLibException { return; }
|
public void setValue(String key, String value, String contents) throws NativeLibException { }
| 3,239,743 |
public void suspendLogging() throws NativeLibException { return; }
|
public void suspendLogging() throws NativeLibException { }
| 3,239,744 |
public SimpleFinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.CENTER; // We initialize our 'real' layout centerPanel = new JPanel(); layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS); centerPanel.setLayout(layout); superLayout.addLayoutComponent(centerPanel, gbConstraints); add(centerPanel); }
|
public SimpleFinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.CENTER; // We initialize our 'real' layout centerPanel = new JPanel(); BoxLayout layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS); centerPanel.setLayout(layout); superLayout.addLayoutComponent(centerPanel, gbConstraints); add(centerPanel); }
| 3,239,746 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.