bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void show(CompileResult error) { this.errorMessageText.setText(error.getMessage()); this.commandText.setText(error.getCmdline()); this.stdOutText.setText(error.getStdout()); this.stdErrText.setText(error.getStderr()); super.show(); } | public void show(CompileResult error) { this.errorMessageText.setText(error.getMessage()); this.commandText.setText(error.getCmdline()); this.stdOutText.setText(error.getStdout()); this.stdErrText.setText(error.getStderr()); super.setVisible(true); ... | 3,240,174 |
public void returnObject(Object key, Object obj) throws Exception { // grab the pool (list) of objects associated with the given key CursorableLinkedList pool = null; synchronized(this) { pool = (CursorableLinkedList)(_poolMap.get(key)); // if it doesn't exist, create it ... | public void returnObject(Object key, Object obj) throws Exception { // grab the pool (list) of objects associated with the given key CursorableLinkedList pool = null; synchronized(this) { pool = (CursorableLinkedList)(_poolMap.get(key)); // if it doesn't exist, create it ... | 3,240,175 |
public static void addResourceBundle(String bundlePath) { ResourceBundle bd = null; if (messageResourceBundles.containsKey(bundlePath)) return; try { bd = ResourceBundle.getBundle(bundlePath); } catch (MissingResourceException mre) { mre.prin... | public static void addResourceBundle(String bundlePath) { ResourceBundle bd = null; if (messageResourceBundles.containsKey(bundlePath)) try { bd = ResourceBundle.getBundle(bundlePath); } catch (MissingResourceException mre) { mre.printStackTr... | 3,240,176 |
public void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(null != _factory) { if(!(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); ... | public void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(null != _factory) { if(!(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); ... | 3,240,178 |
public static void main(String[] args) { if ( args.length < 2 ) { System.out.println( "Too few arguments" ); displayHelpMessage(); return; } try { _mtb = new ModelBasedTesting( args[ 0 ] ); _mtb.generateJavaCode_XDE( args[ 1 ] ); } catch ( RuntimeException e ) { System.out.println( e.getMessage() )... | public static void main(String[] args) { if ( args.length < 2 ) { System.out.println( "Too few arguments" ); displayHelpMessage(); return; } try { _mtb = new ModelBasedTesting( args[ 0 ] ); _mtb.generateJavaCode_XDE( args[ 1 ] ); } catch ( RuntimeException e ) { System.out.println( e.getMessage() )... | 3,240,180 |
public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | 3,240,181 |
public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | 3,240,182 |
public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | public ModelBasedTesting( String graphmlFileName_ ) { _graphmlFileName = graphmlFileName_; _object = null; _logger = org.apache.log4j.Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); } | 3,240,183 |
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { XMLElement userInput; XMLElement dataElement; String variable; String value; // ---------------------------------------------------- // get the section containing the user entries // ------------------------------------... | public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { XMLElement userInput; XMLElement dataElement; String variable; String value; // ---------------------------------------------------- // get the section containing the user entries // ------------------------------------... | 3,240,186 |
public void addResource(String resId, InputStream input) throws Exception { sendMsg("Adding resource : " + resId + " ..."); outJar.putNextEntry(new ZipEntry("res/" + resId)); copyStream(input, outJar); outJar.closeEntry(); input.close(); } | public void addResource(String resId, InputStream input) throws Exception { sendMsg("Adding resource : " + resId + " ..."); outJar.putNextEntry(new ZipEntry("res/" + resId)); copyStream(input, outJar); outJar.closeEntry(); } | 3,240,187 |
private void writeSkeletonInstaller() throws IOException { sendMsg("Copying the skeleton installer ..."); InputStream is = getClass().getResourceAsStream("/" + SKELETON_SUBPATH); if (is == null) { File skeleton = new File(Compiler.IZPACK_HOME, SKELETON_SUBPATH); is = new FileInputStream(skeleto... | private void writeSkeletonInstaller() throws IOException { sendMsg("Copying the skeleton installer ..."); InputStream is = Packager.class.getResourceAsStream("/" + SKELETON_SUBPATH); if (is == null) { File skeleton = new File(Compiler.IZPACK_HOME, SKELETON_SUBPATH); is = new FileInputStream(ske... | 3,240,188 |
void showAnnotations() { ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); if (annotations == null) return; String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet()... | void showAnnotations() { ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); if (annotations == null) return; String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet()... | 3,240,189 |
public void activateObject(Object key, Object obj) { } | public void activateObject(Object key, Object obj) throws Exception { } | 3,240,190 |
public void destroyObject(Object key, Object obj) { } | public void destroyObject(Object key, Object obj) throws Exception { } | 3,240,191 |
public void passivateObject(Object key, Object obj) { } | public void passivateObject(Object key, Object obj) throws Exception { } | 3,240,192 |
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { err.printStackTrace(); } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("L... | public LanguageDialog(JFrame frame, Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { err.printStackTrace(); } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); ... | 3,240,193 |
public LanguageDialog(Object[] items) { super(); try { loadLookAndFeel(); } catch (Exception err) { err.printStackTrace(); } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTitle("L... | public LanguageDialog(Object[] items) { super(frame); try { loadLookAndFeel(); } catch (Exception err) { err.printStackTrace(); } // We build the GUI addWindowListener(new WindowHandler()); JPanel contentPane = (JPanel) getContentPane(); setTit... | 3,240,194 |
FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { super(path); this.file = file; delegate = new RandomAccessFile(path, mode); } | FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { super(path); this.file = file; delegate = new RandomAccessFile(path, mode); } | 3,240,195 |
FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { super(path); this.file = file; delegate = new RandomAccessFile(path, mode); } | FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { super(path); this.file = file; } | 3,240,196 |
public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | 3,240,197 |
public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | 3,240,198 |
public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | public static Condition analyzeCondition(XMLElement condition) { String condid = condition.getAttribute("id"); String condtype = condition.getAttribute("type"); Condition result = null; if (condtype != null) { String conditiontype = condtype.toLowerCase(); // TODO: ... | 3,240,199 |
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");... | public boolean canInstallPack(String packid, Properties variables) { Debug.trace("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition"... | 3,240,200 |
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");... | public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.trace("no condition, can install pack"); return true; } Debug.log("there is a condition"... | 3,240,201 |
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");... | public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.trace("there is a condition"... | 3,240,202 |
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ... | public boolean canInstallPackOptional(String packid, Properties variables) { Debug.trace("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ... | 3,240,203 |
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ... | public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.trace("not in optionalpackconditions."); return false; } else { ... | 3,240,204 |
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ... | public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ... | 3,240,205 |
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ... | public boolean canShowPanel(String panelid, Properties variables) { Debug.trace("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ... | 3,240,206 |
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ... | public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.trace("no condition, show panel"); return true; } Debug.log("there is a condition"); ... | 3,240,207 |
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ... | public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.trace("there is a condition"); ... | 3,240,208 |
protected boolean checkAttribute(String val, String attribute, String element) { if ((val != null) && (val.length() > 0)) { return true; } else { Debug.log("Element " + element + " has to specify an attribute " + attribute); return false; } } | protected boolean checkAttribute(String val, String attribute, String element) { if ((val != null) && (val.length() > 0)) { return true; } else { Debug.trace("Element " + element + " has to specify an attribute " + attribute); return false; } } | 3,240,209 |
public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.log("Condition (" + id + ") not found."); return true; } else { Debug.log("Checking condition"); return con... | public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.trace("Condition (" + id + ") not found."); return true; } else { Debug.log("Checking condition"); return c... | 3,240,210 |
public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.log("Condition (" + id + ") not found."); return true; } else { Debug.log("Checking condition"); return con... | public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.log("Condition (" + id + ") not found."); return true; } else { Debug.trace("Checking condition"); return c... | 3,240,211 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | 3,240,213 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | 3,240,214 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | 3,240,215 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f... | 3,240,216 |
public void completeGridBagLayout() { String todo = idata.getVariable("IzPanel.LayoutType"); if (todo == null) // No command, no work. return; if (todo.equals("TOP")) { // Make a footer to push the rest to the top. Filler dummy = new Filler(); GridBagC... | public void completeGridBagLayout() { String todo = idata.getVariable("IzPanel.LayoutType"); if (todo == null) // No command, no work. return; if ("TOP".equals(todo)) { // Make a footer to push the rest to the top. Filler dummy = new Filler(); GridBagC... | 3,240,218 |
public void startGridBagLayout() { if (gridBagLayoutStarted) return; gridBagLayoutStarted = true; GridBagLayout layout = new GridBagLayout(); defaultGridBagConstraints.insets = new Insets(0, 0, 20, 0); defaultGridBagConstraints.anchor = GridBagConstraints.WEST; setLayout... | public void startGridBagLayout() { if (gridBagLayoutStarted) return; gridBagLayoutStarted = true; GridBagLayout layout = new GridBagLayout(); defaultGridBagConstraints.insets = new Insets(0, 0, 20, 0); defaultGridBagConstraints.anchor = GridBagConstraints.WEST; setLayout... | 3,240,219 |
public void afterDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void afterDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,220 |
public void afterDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void afterDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,221 |
public void beforeDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void beforeDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,222 |
public void beforeDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void beforeDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,223 |
public void layoutContainer(Container parent) { if (!needNewLayout(parent)) { fastLayoutContainer(parent); return; } prefLayoutDim = null; preferredLayoutSize(parent); Dimension realSizeDim = parent.getSize(); Insets insets = parent.getInsets... | public void layoutContainer(Container parent) { if (!needNewLayout(parent)) { fastLayoutContainer(parent); return; } prefLayoutDim = null; preferredLayoutSize(parent); Dimension realSizeDim = parent.getSize(); Insets insets = parent.getInsets... | 3,240,224 |
public static int verifyGapId(int gapId) { if (gapId < 0) gapId = -gapId; if (gapId <= GAP_LOAD_MARKER || gapId >= DEFAULT_X_GAPS.length) throw new IndexOutOfBoundsException("gapId is not in the default gap container."); return (gapId); } | public static int verifyGapId(int gapId) { if (gapId < 0) gapId = -gapId; if ( gapId >= DEFAULT_X_GAPS.length) throw new IndexOutOfBoundsException("gapId is not in the default gap container."); return (gapId); } | 3,240,226 |
public String getI18nStringForClass(String subkey, String alternateClass) { String curClassName = this.getClass().getName(); int nameStart = curClassName.lastIndexOf('.') + 1; curClassName = curClassName.substring(nameStart, curClassName.length()); StringBuffer buf = new StringBuffer(... | public String getI18nStringForClass(String subkey, String alternateClass) { String curClassName = this.getClass().getName(); int nameStart = curClassName.lastIndexOf('.') + 1; curClassName = curClassName.substring(nameStart, curClassName.length()); StringBuffer buf = new StringBuffer(... | 3,240,227 |
public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal... | public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal... | 3,240,228 |
public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal... | public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal... | 3,240,229 |
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(p... | public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(p... | 3,240,230 |
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(p... | public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components JLabel infoLabel = LabelFactory.c... | 3,240,231 |
public void executeCompiler() throws Exception { // Usefull variables int i; String str; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(g... | if(!p.targetdir.endsWith(File.separator)) { p.targetdir = p.targetdir+File.separatorChar; } if(!p.targetdir.endsWith(File.separator)) { p.targetdir = p.targetdir+File.separatorChar; } publicif(!p.targetdir.endsWith(File.separator)) { p.targetdir = p.targetdir+File.separatorChar; } voidif(!p.targetdir.endsWith(File.sepa... | 3,240,232 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | 3,240,233 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | 3,240,234 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r... | 3,240,235 |
private void putUninstaller() throws Exception { // get the uninstaller base, returning if not found so that // idata.uninstallOutJar remains null InputStream in = getClass().getResourceAsStream("/res/IzPack.uninstaller"); if (in == null) return; // Me make the .uninstaller directory String de... | private void putUninstaller() throws Exception { // get the uninstaller base, returning if not found so that // idata.uninstallOutJar remains null InputStream in = Unpacker.class.getResourceAsStream("/res/IzPack.uninstaller"); if (in == null) return; // Me make the .uninstaller directory Strin... | 3,240,236 |
public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { ... | public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { ... | 3,240,237 |
public synchronized void evict() throws Exception { assertOpen(); if(!_pool.isEmpty()) { if(null == _evictionCursor) { _evictionCursor = (_pool.cursor(_pool.size())); } else if(!_evictionCursor.hasPrevious()) { _evictionCursor.close(); ... | public synchronized void evict() throws Exception { assertOpen(); if(!_pool.isEmpty()) { if(null == _evictionCursor) { _evictionCursor = (_pool.cursor(_pool.size())); } else if(!_evictionCursor.hasPrevious()) { _evictionCursor.close(); ... | 3,240,238 |
public void execute() throws org.apache.tools.ant.BuildException { // Either the input attribute or config element must be specified if (input == null && config == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").get... | public void execute() throws org.apache.tools.ant.BuildException { // Either the input attribute or config element must be specified if (input == null && config == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").get... | 3,240,239 |
public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ... | public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ... | 3,240,240 |
public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ... | public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ... | 3,240,241 |
public void addConfiguredPropertyset(PropertySet ps) { if (properties == null) properties = new Properties(); properties.putAll(ps.getProperties()); } | public void addConfiguredPropertyset(Property ps) { if (properties == null) properties = new Properties(); properties.putAll(ps.getProperties()); } | 3,240,242 |
public void afterDir(File dir, PackFile pf) throws Exception { // Do nothing ; } | public void afterDir(File dir, PackFile pf) throws Exception { // Do nothing } | 3,240,245 |
public void afterFile(File file, PackFile pf) throws Exception { // Do nothing ; } | public void afterFile(File file, PackFile pf) throws Exception { // Do nothing } | 3,240,246 |
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,247 |
public void beforeDir(File dir, PackFile pf) throws Exception { // Do nothing ; } | public void beforeDir(File dir, PackFile pf) throws Exception { // Do nothing } | 3,240,248 |
public void beforeFile(File file, PackFile pf) throws Exception { // Do nothing ; } | public void beforeFile(File file, PackFile pf) throws Exception { // Do nothing } | 3,240,249 |
public void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; } | public void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception { // Do nothing } | 3,240,250 |
private int minimumBothColumnsWidth(Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; if (title != null) { component = title.component; width = (int) component.getMinimumSize().getW... | private int minimumBothColumnsWidth(Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; if (title != null) { component = title.component; width = (int) component.getMinimumSize().getW... | 3,240,251 |
private int minimumClusterHeight() { int height = 0; for (int i = 0; i < rows(); i++) { height = height + rowHeight(i); } return (height); } | private int minimumClusterHeight() { int height = 0; for (int i = 0; i < rows(); i++) { height += rowHeight(i); } return (height); } | 3,240,252 |
private int minimumColumnWidth(int column, Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; for (int i = 0; i < components[column].size(); i++) { constraints = (TwoColumnConstraints) componen... | private int minimumColumnWidth(int column, Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; for (int i = 0; i < components[column].size(); i++) { constraints = (TwoColumnConstraints) componen... | 3,240,253 |
private void positionComponent(int y, int row, int column, Container parent) { TwoColumnConstraints constraints = null; try { constraints = (TwoColumnConstraints) (components[column].elementAt(row)); } catch (Throwable exception) { return; } ... | private void positionComponent(int y, int row, int column, Container parent) { TwoColumnConstraints constraints = null; try { constraints = (TwoColumnConstraints) (components[column].elementAt(row)); } catch (Throwable exception) { return; } ... | 3,240,254 |
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | 3,240,255 |
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | 3,240,256 |
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title... | 3,240,257 |
public Object clone () { TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject); } | public Object clone () throws CloneNotSupportedException { TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject); ... | 3,240,258 |
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | 3,240,260 |
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | 3,240,261 |
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb... | 3,240,262 |
public void actionPerformed(ActionEvent event) { String sPrinter = (String) cbPrinters.getSelectedItem(); iData.setVariable("SELECTED_PRINTER", sPrinter); return; } | public void actionPerformed(ActionEvent event) { String sPrinter = (String) cbPrinters.getSelectedItem(); iData.setVariable("SELECTED_PRINTER", sPrinter); } | 3,240,263 |
public TestKeyedObjectPoolFactory(final String name) { super(name); } | protected TestKeyedObjectPoolFactory(final String name) { super(name); } | 3,240,264 |
protected KeyedObjectPoolFactory makeFactory(KeyedPoolableObjectFactory objectFactory) throws UnsupportedOperationException{ throw new UnsupportedOperationException("Subclass needs to override makeFactory method."); } | protected KeyedObjectPoolFactory makeFactory(KeyedPoolableObjectFactory objectFactory) throws UnsupportedOperationException{ throw new UnsupportedOperationException("Subclass needs to override makeFactory method."); } | 3,240,265 |
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory) { this(factory,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY); } | public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory) { this(factory,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY); } | 3,240,266 |
private Thumbnail createThumbnailMetadata(Pixels p, int sizeX, int sizeY) { Thumbnail thumb = new Thumbnail(); thumb.setPixels(p); thumb.setMimeType("image"); // FIXME: Hack thumb.setSizeX(sizeX); thumb.setSizeY(sizeY); return iUpdate.saveAndReturnObject(thumb); } | private Thumbnail createThumbnailMetadata(Pixels p, int sizeX, int sizeY) { Thumbnail thumb = new Thumbnail(); thumb.setPixels(p); thumb.setMimeType(DEFAULT_MIME_TYPE); // FIXME: Hack thumb.setSizeX(sizeX); thumb.setSizeY(sizeY); return iUpdate.saveAndReturnObject(thumb); } | 3,240,267 |
private Thumbnail getThumbnailMetadata(Pixels p, int sizeX, int sizeY) { // FIXME: We need dimensions here. Thumbnail thumb = (Thumbnail) iQuery.findByQuery("select t from Thumbnail as t where t.pixels.id = :id", new Parameters().addId(p.getId())); return thumb; } | private Thumbnail getThumbnailMetadata(Pixels p, int sizeX, int sizeY) { // FIXME: We need dimensions here. Thumbnail thumb = (Thumbnail) iQuery.findByQuery("select t from Thumbnail as t where t.pixels.id = :id", new Parameters().addId(p.getId())); return thumb; } | 3,240,268 |
public Object clone () throws CloneNotSupportedException { super.clone(); TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; re... | public Object clone () { super.clone(); TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject); } | 3,240,269 |
public Object clone () throws CloneNotSupportedException { super.clone(); TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; re... | public Object clone () throws CloneNotSupportedException { TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject... | 3,240,270 |
public void makeXMLData(AutomatedInstallData idata, XMLElement panelRoot) { // We add each pack to the panelRoot element for (int i = 0; i < idata.availablePacks.size(); i++) { Pack pack = (Pack) idata.availablePacks.get(i); XMLElement el = new XMLElement("pack"); el.setAttribute ("index", ne... | public void makeXMLData(AutomatedInstallData idata, XMLElement panelRoot) { // We add each pack to the panelRoot element for (int i = 0; i < idata.availablePacks.size(); i++) { Pack pack = (Pack) idata.availablePacks.get(i); XMLElement el = new XMLElement("pack"); el.setAttribute ("index", ne... | 3,240,271 |
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { // We get the packs markups Vector pm = panelRoot.getChildrenNamed("pack"); // We figure out the selected ones int size = pm.size(); idata.selectedPacks.clear(); for (int i = 0; i < size; i++) { XMLElement el = (XM... | public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { // We get the packs markups Vector pm = panelRoot.getChildrenNamed("pack"); // We figure out the selected ones int size = pm.size(); idata.selectedPacks.clear(); for (int i = 0; i < size; i++) { XMLElement el = (XM... | 3,240,272 |
private BuildLogger createLogger() { int msgOutputLevel = 2; if (verbose) msgOutputLevel = 4; else if (quiet) msgOutputLevel = 1; BuildLogger logger = new DefaultLogger(); logger.setMessageOutputLevel(msgOutputLevel); logger.setOutputPrintStream(System.out); ... | private BuildLogger createLogger() { int msgOutputLevel = 2; if (verbose) msgOutputLevel = 4; else if (quiet) msgOutputLevel = 1; BuildLogger logger = new DefaultLogger(); logger.setMessageOutputLevel(msgOutputLevel); logger.setOutputPrintStream(System.out); ... | 3,240,273 |
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | 3,240,274 |
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | 3,240,275 |
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ... | 3,240,276 |
public String toString() { StringBuffer retval = new StringBuffer(); retval.append("[Os "); retval.append(" family " + family); retval.append(" name " + name); retval.append(" version " + version); retval.append(" arch " + arch); retval.append(" ]"); return... | public String toString() { StringBuffer retval = new StringBuffer(); retval.append("[Os "); retval.append(" family " + family); retval.append(" name " + name); retval.append(" version " + version); retval.append(" arch " + arch); retval.append(" ]"); return... | 3,240,277 |
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[").append(userLanguage).append("]=" + $Comment + N); ... | 3,240,278 |
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | 3,240,279 |
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | 3,240,280 |
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app... | 3,240,281 |
private File getKdeBase(int userType) { File result = null; if (userType == Shortcut.ALL_USERS) { FileExecutor fe = new FileExecutor(); String[] execOut = new String[2]; int execResult = fe.executeCommand(new String[] { "/usr/bin/env", "kde-config", ... | private File getKdeBase(int userType) { File result = null; if (userType == Shortcut.ALL_USERS) { FileExecutor fe = new FileExecutor(); String[] execOut = new String[2]; int execResult = fe.executeCommand(new String[] { "/usr/bin/env", "kde-config", ... | 3,240,282 |
public String getProgramsFolder(int current_user) { String result = new String(); // result = getKdeShareApplnkFolder(current_user).toString(); return result; } | public String getProgramsFolder(int current_user) { String result = ""; // result = getKdeShareApplnkFolder(current_user).toString(); return result; } | 3,240,283 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.