bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void close() throws javax.jms.JMSException { if (trace) { log.trace("Closing " + this); } closed = true; //This will call the MessageConsumer cons to close too - which results //in the receiver thread being interrupted. sess.close(); //wait for the run thread ... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("Closing " + this); } closed = true; //This will call the MessageConsumer cons to close too - which results //in the receiver thread being interrupted. JMSInvocationHandler handler = (JMSInvocationHandler)... | 55,859 |
public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } b... | public void run() { if (trace) { log.trace("running connection consumer"); } if (trace) { log.trace("ConnectionConsumer run() exiting"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace... | 55,860 |
public LocalClusteredQueue(PostOffice office, String nodeId, String name, long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, QueuedExecutor executor, Filter filter, TransactionRepository tr, ... | public LocalClusteredQueue(PostOffice office, int nodeId, String name, long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, QueuedExecutor executor, Filter filter, TransactionRepository tr, ... | 55,861 |
public String getNodeId() { return nodeId; } | public int getNodeId() { return nodeId; } | 55,862 |
public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); | public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); | 55,863 |
public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } | public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } | 55,864 |
public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } | public int getPreferredHeight() throws NotImplementedException { int height = 0; int n = getRowCount(); Rectangle r = new Rectangle(); for (int i = 0; i < n; i++) { TreePath path = getPathForRow(i); height += getBounds(path, r).height; } return height; // TODO } | 55,865 |
public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } | 55,866 |
public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { TreePath path = getPathForRow(i); r.setBounds(0,0,0,0); r = getBounds(path, r); if (r.x + r.width > maximalWidth) maximalWidth = r.x + r.width; invalidatePathBounds(path); } return maximalWidth; // TODO } | 55,867 |
protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | 55,868 |
protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | 55,869 |
protected static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, ... | protected static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, ... | 55,871 |
public FileChooserUI() { // TODO } // FileChooserUI() | public FileChooserUI() { // TODO } // FileChooserUI() | 55,872 |
public final void compileBootstrap(VmMethod method, NativeStream os, int level) { int start = os.getLength(); final CompiledMethod cm; final boolean abstractM = method.isAbstract(); if (abstractM) { if (method.isStatic()) { throw new Error("Abstract & static"); } ... | public final void compileBootstrap(VmMethod method, NativeStream os, int level) { int start = os.getLength(); final CompiledMethod cm; final boolean abstractM = method.isAbstract(); if (abstractM) { if (method.isStatic()) { throw new Error("Abstract & static"); } ... | 55,873 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,874 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,875 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,876 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,877 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,878 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | publicstaticvoidpaint(Contextc,Boxblock){Rectanglebox=newRectangle(block.x+block.margin.left+block.border.left,block.y+block.margin.top+block.border.top,block.width-block.margin.left-block.margin.right-block.border.left-block.border.right,block.height-block.margin.top-block.border.top-block.border.bottom-block.margin.b... | 55,879 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,880 |
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | 55,881 |
public BasicLookAndFeel() { // TODO } | public BasicLookAndFeel() { // TODO } | 55,882 |
protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... | protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... | 55,883 |
protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... | protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... | 55,884 |
protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) throws NotImplementedException { // TODO } | protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) { // TODO } | 55,885 |
protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) throws NotImplementedException { // TODO } | if (useNative) { defaults.put("activeCaption", new ColorUIResource(SystemColor.ACTIVE_CAPTION)); defaults.put("activeCaptionBorder", new ColorUIResource(SystemColor.ACTIVE_CAPTION_BORDER)); defaults.put("activeCaptionText", new ColorUIResource(SystemColor.ACTIVE_CAPTION_TEXT)); defaults.put("control", new ColorUIResour... | 55,886 |
protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createMessage); if (log.isTraceEnabled())... | protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createMessage); if (trace) { log.trace(cr... | 55,887 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,888 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,889 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,890 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,891 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,892 |
public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... | 55,893 |
public void update(Graphics g, JComponent c) { if (c.isOpaque() && UIManager.get(getPropertyPrefix() + "gradient") != null) { MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, getPropertyPrefix() + "g... | public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.getBackground() instanceof UIResource && b.isContentAreaFilled() && b.isEnabled() && ! m.isArmed() && ! m.isPressed() && UIManager.get(getPropertyPrefix() + "gradient") != null) { ... | 55,894 |
int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending o... | 55,895 |
int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on w... | 55,896 |
int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | 55,897 |
int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | 55,898 |
public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.hei... | public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.hei... | 55,899 |
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | 55,900 |
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | 55,901 |
void updateDamage (Rectangle a) { int newNumLines = determineNumLines(); if (numLines != newNumLines) { numLines = newNumLines; getContainer().repaint(); } else getContainer().repaint(a.x, a.y, a.width, a.height); } | void updateDamage (Rectangle a) { int newNumLines = determineNumLines(); if (numLines != newNumLines) { numLines = newNumLines; getContainer().repaint(); } else getContainer().repaint(a.x, a.y, a.width, a.height); } | 55,903 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset() - 1; int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; ... | 55,904 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,905 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,906 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,907 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,908 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,909 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > ... | 55,910 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this sho... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this sho... | 55,911 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this sho... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this sho... | 55,912 |
public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area getContainer().repaint(); } | public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area } | 55,913 |
public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.insertUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area getContainer().repaint(); } | public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.insertUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area } | 55,914 |
public void paint(Graphics g, Shape a) { JTextComponent comp = (JTextComponent)getContainer(); selectionStart = comp.getSelectionStart(); selectionEnd = comp.getSelectionEnd(); updateMetrics(); super.paint(g, a); } | public void paint(Graphics g, Shape a) { JTextComponent comp = (JTextComponent)getContainer(); selectionStart = comp.getSelectionStart(); selectionEnd = comp.getSelectionEnd(); selectedColor = comp.getSelectedTextColor(); unselectedColor = comp.getForeground(); disabledColor = comp.getDisabledTextColor(... | 55,915 |
public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area getContainer().repaint(); } | public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // FIXME: could improve performance by repainting only the necessary area } | 55,916 |
public static Border getBorder(Context c, Box box) { if (isBlockOrInlineElementBox(c, box)) { // u.p("setting border for: " + box); if (box.border == null) { box.border = c.css.getStyle(box.getRealElement()).getBorderWidth(); } } else { // u.p... | public static Border getBorder(Context c, Box box) { if (isBlockOrInlineElementBox(c, box)) { // u.p("setting border for: " + box); if (box.border == null) { box.border = box.getContent().getStyle().getBorderWidth(); } } else { // u.p("skippin... | 55,917 |
public static String getPosition(Context c, Box box) { String position = c.css.getStyle(box.getRealElement()).getStringProperty("position"); if (position == null) { position = "static"; } return position; } | public static String getPosition(Context c, Box box) { String position = c.css.getStyle(box.getRealElement()).getStringProperty("position"); if (position == null) { position = "static"; } return position; } | 55,918 |
public static boolean isBlockNode(Node child, Context c) { //need this as a sensible default if (child == child.getOwnerDocument().getDocumentElement()) return true; if (child instanceof Element) { CalculatedStyle style = c.css.getStyle(child); String display = get... | public static boolean isBlockNode(Node child, Context c) { //need this as a sensible default if (child == child.getOwnerDocument().getDocumentElement()) return true; if (child instanceof Element) { CalculatedStyle style = c.css.getStyle(child); String display = get... | 55,920 |
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if(box.isElement()) { return true; } if ( box.getNode().getNodeType() == Node.TEXT_NODE && !LayoutUtil.isBlockNode(box.getRealElement(), c) ) { // u.p("box = " + box); ... | public static boolean isBlockOrInlineElementBox(Context c, Box box) { if(box.isElement()) { return true; } if ( box.getNode().getNodeType() == Node.TEXT_NODE && !LayoutUtil.isBlockNode(box.getRealElement(), c) ) { // u.p("box = " + box); ... | 55,921 |
public static boolean isFixed(Context c, Box box) { if (getPosition(c, box).equals("fixed")) { return true; } return false; } | public static boolean isFixed(Context c, Box box) { if (getPosition(c, box).equals("fixed")) { return true; } return false; } | 55,922 |
public static boolean isFloated(Box inline, Context c) { CalculatedStyle style = c.css.getStyle(inline.getNode()); return isFloated(style); } | public static boolean isFloated(Box inline, Context c) { CalculatedStyle style = inline.getContent().getStyle(); return isFloated(style); } | 55,923 |
public static boolean isListItem(Context c, Box box) { CalculatedStyle style = c.css.getStyle(box.getNode()); String display = getDisplay(style); if (display.equals("list-item")) { return true; } return false; } | public static boolean isListItem(Context c, Box box) { CalculatedStyle style = c.css.getStyle(box.getNode()); String display = getDisplay(style); if (display.equals("list-item")) { return true; } return false; } | 55,924 |
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t... | public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all", true); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on ... | 55,925 |
public Collection invoke(Serializable category, String methodName, Object[] args, String[] signature) throws Exception { if (log.isTraceEnabled()) { log.trace(this + ": method " + methodName + " invoked on category " + category); } Class[] parameterTypes = new Class[sig... | public Collection invoke(Serializable category, String methodName, Object[] args, String[] signature) throws Exception { if (log.isTraceEnabled()) { log.trace(this + ": method " + methodName + " invoked on category " + category); } Class[] parameterTypes = new Class[sig... | 55,926 |
public ColorChooserUI() { // TODO } // ColorChooserUI() | public ColorChooserUI() { // TODO } // ColorChooserUI() | 55,927 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String name = m.getName(); if (log.isTraceEnabled()) { log.trace("handling "... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String name = m.getName(); if (log.isTraceEnabled()) { log.trace("handling "... | 55,928 |
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi... | protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi... | 55,930 |
public Dimension getPreferredScrollableViewportSize() { return new Dimension (getPreferredSize().width, getVisibleRowCount()*getRowHeight()); } | public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); } | 55,931 |
private void end() throws Exception { try { if (Status.STATUS_MARKED_ROLLBACK == tm.getStatus()) { tm.rollback(); } else { tm.commit(); } } finally { if (oldTx != n... | private void end() throws Exception { try { if (Status.STATUS_MARKED_ROLLBACK == tm.getStatus()) { tm.rollback(); } else { tm.commit(); } } finally { if (oldTx != n... | 55,934 |
private void exceptionOccurred() throws Exception { tm.setRollbackOnly(); } | private void exceptionOccurred() throws Exception { getTransactionManagerReference().setRollbackOnly(); } | 55,935 |
public void setTransactionManager(ObjectName tmObjectName) throws Exception { this.tmObjectName = tmObjectName; TransactionManagerServiceMBean tms = (TransactionManagerServiceMBean)MBeanServerInvocationHandler. newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBe... | public void setTransactionManager(ObjectName tmObjectName) throws Exception { this.tmObjectName = tmObjectName; TransactionManagerServiceMBean tms = (TransactionManagerServiceMBean)MBeanServerInvocationHandler. newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBe... | 55,936 |
protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new IllegalStateException("No DataSource found. This serv... | protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new IllegalStateException("No DataSource found. This serv... | 55,937 |
protected Map getConfig() { Map configuration = new HashMap(); configuration.put(MetaDataConstants.CLIENT_CONNECTION_ID, id); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MULTIPLEX_ID_KEY, id); configuration.put(MultiplexServerInvoker.MULTI... | protected Map getConfig() { Map configuration = new HashMap(); configuration.put(Client.ENABLE_LEASE, "true"); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MULTIPLEX_ID_KEY, id); configuration.put(MultiplexServerInvoker.MULTIPLEX_BIND_HOST_... | 55,938 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { // u.p("text = " + text); InlineBox inline = new InlineBox(); inline.node = node; inline.whitespace = getWhitespace(c,node); // prepare ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { // u.p("text = " + text); InlineBox inline = new InlineBox(); inline.node = node; inline.whitespace = getWhitespace(c,node); // prepare ... | 55,939 |
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ... | public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ... | 55,940 |
public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ... | public void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { // u.p("box = " + box); // u.p("prev align = " + prev_align); // prepare the font, colors, border, etc box.setFont(font); BoxLayout.getBackgroundColor(c,box); BoxLayout.getBorder(c,box); ... | 55,941 |
public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { ConflictManager conflictManager = _ivy.getConflictManager(_ivy.substitute(_defaultCM)); if (conflictManag... | 55,942 |
public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | 55,943 |
public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | 55,944 |
private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in global JNDI namespace ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JNDI_NAME, cf); ... | ic.rebind("java:/" + CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + XACONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + XACONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + XACONNEC... | 55,945 |
private static final CharsetProvider provider() { return Provider.provider(); } | private static final CharsetProvider provider() { return Provider.provider(); } | 55,949 |
public SeparatorUI() { // TODO } // SeparatorUI() | public SeparatorUI() { // TODO } // SeparatorUI() | 55,950 |
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)ic.lookup("/Connec... | super.drainDestination(cf, queue); super.drainDestination(cf, queue); super.drainDestination(cf, queue); publicsuper.drainDestination(cf, queue); voidsuper.drainDestination(cf, queue); setUp()super.drainDestination(cf, queue); throwssuper.drainDestination(cf, queue); Exceptionsuper.drainDestination(cf, queue); super.dr... | 55,951 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,953 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,954 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,955 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,956 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,957 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 55,958 |
public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Shape newAlloc = adjustAllocation(shape); super.removeUpdate(ev, newAlloc, vf); getContainer().repaint(); } | public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Shape newAlloc = adjustAllocation(shape); super.changedUpdate(ev, newAlloc, vf); getContainer().repaint(); } | 55,960 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.getStartOffset(), ... | 55,961 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 55,962 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 55,963 |
public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConnectionFactoryDelegate(String objectID, String serverLocatorURI) { super(objectID, locator); } | 55,967 |
public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID); this.serverLocatorURI = serverLocatorURI; } | 55,968 |
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } | public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } | 55,969 |
ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { super(); this.graph = graph; this.location = location; this.cColor = color; } | ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { this.graph = graph; this.location = location; this.cColor = color; } | 55,971 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {... | 55,972 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | 55,973 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.