bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
35,518
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { e.printStackTrace(); ...
35,519
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
35,520
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m1); } catch(Exception e) { log.error(e); } ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); queueProducer.send(m); } } ...
35,521
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ...
35,522
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicConsumer.close(); } catch(Exception e) { log.error(e); } ...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(timeToSleep); topicConsumer.close(); } catch(Exception e) { log.error(e); ...
35,523
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca...
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca...
35,524
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
35,525
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth()...
35,526
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
35,527
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
35,528
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
public void testProperties() throws Exception { Message m1 = queueProducerSession.createMessage(); //Some arbitrary values boolean myBool = true; byte myByte = 13; short myShort = 15321; int myInt = 0x71ab6c80; long myLong = 0x20bf1e3fb6fa31dfL; float myFloat = Float.MAX_VAL...
35,529
public void run() { html = new XHTMLPanel(); frame.getContentPane().add(new FSScrollPane(html)); frame.pack(); frame.setSize(1024, 768); frame.setVisible(true); frame.addComponentListener(ne...
public void run() { html = new XHTMLPanel(); frame.getContentPane().add(new FSScrollPane(html)); frame.pack(); frame.setSize(1024, 768); frame.setVisible(true); frame.addComponentListener(ne...
35,530
private void run(String args[]) { buildFrame(); directory = args[0]; testFiles = buildFileList(); try { //switchPage( (File)testFiles.get( 0 ) ); showHelpPage(); } catch (Exception ex) { ex.printStackTrace(); } }
private void run(String args[]) { buildFrame(); directory = args[0]; testFiles = buildFileList(); try { //switchPage( (File)testFiles.get( 0 ) ); SwingUtilities.invokeLater(new Runnable() { public void run() { showHelpPage(); } }); } catch (Exception ex) { ...
35,532
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,533
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,534
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,535
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,536
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,537
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) { thr...
35,538
public java.util.Map getCascadedPropertiesMap(Element e) { CascadedStyle cs = _matcher.getCascadedStyle(e, false);//this is only for debug, I think java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getMatchedPropertyDeclarations(); i.hasNext();) { ...
public java.util.Map getCascadedPropertiesMap(Element e) { CascadedStyle cs = _matcher.getCascadedStyle(e, false);//this is only for debug, I think java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getCascadedPropertyDeclarations(); i.hasNext();) { ...
35,539
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
35,540
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, p[i]); } catch ...
35,541
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
35,542
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
35,543
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
35,544
public static Box layoutChildren(LayoutContext c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList != null && contentList.size() > 0) { Content parent = c.getParentContent(); c.setParentContent(cont...
public static Box layoutChildren(LayoutContext c, BlockBox box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList != null && contentList.size() > 0) { Content parent = c.getParentContent(); c.setParentContent...
35,545
public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i...
public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i...
35,546
private static boolean isAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { return true; } return false; }
private static boolean isAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { return true; } return false; }
35,547
public static void postChildrenLayout(Context c, Box block) { if (isAbsolute(c, block)) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } }
public static void postChildrenLayout(Context c, Box block) { if (isAbsolute(block)) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } }
35,548
public static void preChildrenLayout(Context c, Box block) { if (isAbsolute(c, block)) { BlockFormattingContext bfc = new BlockFormattingContext(block); bfc.setWidth(block.width); c.pushBFC(bfc); } }
public static void preChildrenLayout(Context c, Box block) { if (isAbsolute(block)) { BlockFormattingContext bfc = new BlockFormattingContext(block); bfc.setWidth(block.width); c.pushBFC(bfc); } }
35,549
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,550
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (style.hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); if (LayoutUti...
35,551
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,552
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,553
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,554
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,555
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,556
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,557
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("absolute")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
35,558
XMLResource createXMLResource(XMLResource target) { Source input = null; DOMResult output = null; TransformerFactory xformFactory = null; Transformer idTransform = null; XMLReader xmlReader = null; long st = 0L; xmlReader =...
XMLResource createXMLResource(XMLResource target) { Source input = null; DOMResult output = null; TransformerFactory xformFactory = null; Transformer idTransform = null; XMLReader xmlReader = null; long st = 0L; xmlReader =...
35,560
public Control[] getControls() throws NamingException;
Control[] getControls() throws NamingException;
35,561
static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle...
static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle...
35,562
public void actionPerformed(ActionEvent e) { Object obj = new String(parentPath + entry.getText()); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser....
public void actionPerformed(ActionEvent e) { Object obj = new String(parentPath + getFileName()); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.is...
35,564
public DoubleClickListener(JList list) { this.list = list; timer = new Timer(1000, null); timer.setRepeats(false); lastSelected = list.getSelectedValue(); setDirectorySelected(false); }
public DoubleClickListener(JList list) { this.list = list; timer = new Timer(1000, null); timer.setRepeats(false); lastSelected = list.getSelectedValue(); setDirectorySelected(false); }
35,567
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
35,568
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
35,569
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (timer.isRunning() && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObject(l...
35,570
public void valueChanged(ListSelectionEvent e) { Object f = filelist.getSelectedValue(); if (f == null) return; File file = filechooser.getFileSystemView().createFileObject(f.toString()); if (! filechooser.isTraversable(file)) filechooser.setSelectedFile(file); else filechooser.setSelect...
public void valueChanged(ListSelectionEvent e) { JList list = (JList) e.getSource(); Object f = list.getSelectedValue(); if (f == null) return; File file = filechooser.getFileSystemView().createFileObject(f.toString()); if (! filechooser.isTraversable(file)) filechooser.setSelectedFile(file);...
35,573
void boxEntries() { ArrayList parentFiles = new ArrayList(); File parent = filechooser.getCurrentDirectory(); if (parent == null) parent = filechooser.getFileSystemView().getDefaultDirectory(); while (parent != null) { String name = parent.getName(); if (name.equals("")) ...
void boxEntries() { ArrayList parentFiles = new ArrayList(); File parent = filechooser.getCurrentDirectory(); if (parent == null) parent = filechooser.getFileSystemView().getDefaultDirectory(); while (parent != null) { String name = parent.getName(); if (name.equals("")) ...
35,575
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( ...
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( ...
35,576
public JButton getApproveButton(JFileChooser fc) { accept = new JButton(getApproveButtonText(fc)); accept.setMnemonic(getApproveButtonMnemonic(fc)); accept.setToolTipText(getApproveButtonToolTipText(fc)); return accept; }
protected JButton getApproveButton(JFileChooser fc) { accept = new JButton(getApproveButtonText(fc)); accept.setMnemonic(getApproveButtonMnemonic(fc)); accept.setToolTipText(getApproveButtonToolTipText(fc)); return accept; }
35,577
public JButton getApproveButton(JFileChooser fc) { accept = new JButton(getApproveButtonText(fc)); accept.setMnemonic(getApproveButtonMnemonic(fc)); accept.setToolTipText(getApproveButtonToolTipText(fc)); return accept; }
public JButton getApproveButton(JFileChooser fc) { accept = new JButton(getApproveButtonText(fc)); accept.setMnemonic(getApproveButtonMnemonic(fc)); accept.setToolTipText(getApproveButtonToolTipText(fc)); return accept; }
35,578
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
35,579
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else result = openButtonText; } return result; }
35,580
public Action getApproveSelectionAction() { return new ApproveSelectionAction(); }
public Action getApproveSelectionAction() { if (approveSelectionAction == null) approveSelectionAction = new ApproveSelectionAction(); return approveSelectionAction; }
35,581
public Action getCancelSelectionAction() { return new CancelSelectionAction(); }
public Action getCancelSelectionAction() { if (cancelSelectionAction == null) cancelSelectionAction = new CancelSelectionAction(); return cancelSelectionAction; }
35,582
public Action getChangeToParentDirectoryAction() { return new ChangeToParentDirectoryAction(); }
public Action getChangeToParentDirectoryAction() { if (changeToParentDirectoryAction == null) changeToParentDirectoryAction = new ChangeToParentDirectoryAction(); return changeToParentDirectoryAction; }
35,583
public String getDialogTitle(JFileChooser fc) { String ret = fc.getDialogTitle(); if (ret != null) return ret; switch (fc.getDialogType()) { case JFileChooser.OPEN_DIALOG: ret = openButtonText; break; case JFileChooser.SAVE_DIALOG: ret = saveButtonText; break; default: ret = fc.getA...
public String getDialogTitle(JFileChooser fc) { String ret = fc.getDialogTitle(); if (ret != null) return ret; switch (fc.getDialogType()) { case JFileChooser.OPEN_DIALOG: ret = openButtonText; break; case JFileChooser.SAVE_DIALOG: ret = saveButtonText; break; default: ret = fc.getA...
35,584
public String getFileName() { return filename; }
public String getFileName() { return null; }
35,585
public Action getGoHomeAction() { return new GoHomeAction(); }
public Action getGoHomeAction() { if (goHomeAction == null) goHomeAction = new GoHomeAction(); return goHomeAction; }
35,586
public Action getNewFolderAction() { return new NewFolderAction(); }
public Action getNewFolderAction() { if (newFolderAction == null) newFolderAction = new NewFolderAction(); return newFolderAction; }
35,587
public Action getUpdateAction() { return new UpdateAction(); }
public Action getUpdateAction() { if (updateAction == null) updateAction = new UpdateAction(); return updateAction; }
35,588
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new BasicComboBoxRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); ...
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new BasicComboBoxRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); ...
35,589
protected void installListeners(JFileChooser fc) { propertyChangeListener = createPropertyChangeListener(filechooser); filechooser.addPropertyChangeListener(propertyChangeListener); //parents.addItemListener(createBoxListener()); accept.addActionListener(getApproveSelectionAction()); cancel.addActionL...
protected void installListeners(JFileChooser fc) { propertyChangeListener = createPropertyChangeListener(filechooser); filechooser.addPropertyChangeListener(propertyChangeListener); //parents.addItemListener(createBoxListener()); accept.addActionListener(getApproveSelectionAction()); cancel.addActionL...
35,591
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
35,592
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
35,593
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
35,594
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
35,595
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipTe...
35,596
public void rescanCurrentDirectory(JFileChooser fc) { getModel().validateFileCache(); filelist.revalidate(); }
public void rescanCurrentDirectory(JFileChooser fc) { getModel().validateFileCache(); }
35,598
public void setFileName(String filename) { this.filename = filename; }
public void setFileName(String filename) { }
35,599
public void uninstallComponents(JFileChooser fc) { parents = null; accept = null; cancel = null; upFolderButton = null; homeFolderButton = null; newFolderButton = null; filelist = null; }
public void uninstallComponents(JFileChooser fc) { parents = null; accept = null; cancel = null; upFolderButton = null; homeFolderButton = null; newFolderButton = null; filelist = null; }
35,600
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; dirDescText = null; fileDescText = null; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText...
35,602
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
35,603
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonText = null; helpButtonToolTipText = null; openButtonMnemonic = 0; ...
35,604
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ...
35,605
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
35,606
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
35,608
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
35,609
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
35,610
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
35,611
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
35,612
String getSubString(long pos, int length) throws SQLException;
String getSubString(long start, int count) throws SQLException;
35,617
long position(String searchstr, long start) throws SQLException;
long position(String pattern, long start) throws SQLException;
35,618
OutputStream setAsciiStream(long pos) throws SQLException;
OutputStream setAsciiStream(long start) throws SQLException;
35,619
Writer setCharacterStream(long pos) throws SQLException;
Writer setCharacterStream(long start) throws SQLException;
35,620
int setString(long pos, String str) throws SQLException;
int setString(long start, String value) throws SQLException;
35,621
void truncate(long len) throws SQLException;
void truncate(long count) throws SQLException;
35,622
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // symmetry if (result) { result = testKat(TV_KEY, TV_CT); } valid = new Boolean(result); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // symmetry if (result) { result = testKat(TV_KEY, TV_CT); } valid = Boolean.valueOf(result); } return valid.booleanValue(); }
35,623
protected Map getConfig() { Map configuration = new HashMap(); //Enable client pinging //Server leasing is enabled separately on the server side configuration.put(InvokerLocator.CLIENT_LEASE, "true"); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MUL...
protected Map getConfig() { Map configuration = new HashMap(); //Enable client pinging //Server leasing is enabled separately on the server side configuration.put(Client.ENABLE_LEASE, "true"); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MULTIPLEX_I...
35,624
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("connecting to " + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + ...
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("connecting to " + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + ...
35,625
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
35,627
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
35,628
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
35,630
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
35,631
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
public static void paint(Context c, Box box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { ...
35,632
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
35,633
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
35,634
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
35,635