rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
int getScale(int column) throws SQLException; | int getScale(int columnIndex) throws SQLException; | int getScale(int column) throws SQLException; |
String getSchemaName(int column) throws SQLException; | String getSchemaName(int columnIndex) throws SQLException; | String getSchemaName(int column) throws SQLException; |
String getTableName(int column) throws SQLException; | String getTableName(int columnIndex) throws SQLException; | String getTableName(int column) throws SQLException; |
boolean isAutoIncrement(int column) throws SQLException; | boolean isAutoIncrement(int columnIndex) throws SQLException; | boolean isAutoIncrement(int column) throws SQLException; |
boolean isCaseSensitive(int column) throws SQLException; | boolean isCaseSensitive(int columnIndex) throws SQLException; | boolean isCaseSensitive(int column) throws SQLException; |
boolean isCurrency(int column) throws SQLException; | boolean isCurrency(int columnIndex) throws SQLException; | boolean isCurrency(int column) throws SQLException; |
boolean isDefinitelyWritable(int column) throws SQLException; | boolean isDefinitelyWritable(int columnIndex) throws SQLException; | boolean isDefinitelyWritable(int column) throws SQLException; |
int isNullable(int column) throws SQLException; | int isNullable(int columnIndex) throws SQLException; | int isNullable(int column) throws SQLException; |
boolean isReadOnly(int column) throws SQLException; | boolean isReadOnly(int columnIndex) throws SQLException; | boolean isReadOnly(int column) throws SQLException; |
boolean isSearchable(int column) throws SQLException; | boolean isSearchable(int columnIndex) throws SQLException; | boolean isSearchable(int column) throws SQLException; |
boolean isSigned(int column) throws SQLException; | boolean isSigned(int columnIndex) throws SQLException; | boolean isSigned(int column) throws SQLException; |
boolean isWritable(int column) throws SQLException; | boolean isWritable(int columnIndex) throws SQLException; | boolean isWritable(int column) throws SQLException; |
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
IdentValue ident = null; | IdentValue topStyle = null; IdentValue leftStyle = null; IdentValue bottomStyle = null; IdentValue rightStyle = null; | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
ident = style.getIdent(CSSName.BORDER_STYLE_TOP); if (ident == IdentValue.NONE || border.top == 0) { | topStyle = style.getIdent(CSSName.BORDER_STYLE_TOP); if (topStyle == IdentValue.NONE || border.top == 0) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
ident = style.getIdent(CSSName.BORDER_STYLE_LEFT); if (ident == IdentValue.NONE || border.left == 0) { | leftStyle = style.getIdent(CSSName.BORDER_STYLE_LEFT); if (leftStyle == IdentValue.NONE || border.left == 0) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
ident = style.getIdent(CSSName.BORDER_STYLE_BOTTOM); if (ident == IdentValue.NONE || border.bottom == 0) { | bottomStyle = style.getIdent(CSSName.BORDER_STYLE_BOTTOM); if (bottomStyle == IdentValue.NONE || border.bottom == 0) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
ident = style.getIdent(CSSName.BORDER_STYLE_RIGHT); if (ident == IdentValue.NONE || border.right == 0) { | rightStyle = style.getIdent(CSSName.BORDER_STYLE_RIGHT); if (rightStyle == IdentValue.NONE || border.right == 0) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
if (sides != 0) paintBorderSides(border, g, bounds, border_color, sides, ident); | if ((sides & TOP) == TOP) paintBorderSide(border, g, bounds, border_color, sides, TOP, topStyle, xOffset); if ((sides & LEFT) == LEFT) paintBorderSide(border, g, bounds, border_color, sides, LEFT, leftStyle, xOffset); if ((sides & BOTTOM) == BOTTOM) paintBorderSide(border, g, bounds, border_color, sides, BOTTOM, bottom... | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWidth(); ... |
private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); int topCorner = (((sides &... | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides, int currentSide) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0); i... | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
if ((sides & TOP) == TOP) { | if (currentSide == TOP) { | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
poly.addPoint(bounds.x + bounds.width, bounds.y); poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + border.top); poly.addPoint(bounds.x + leftCorner, bounds.y + border.top); | poly.addPoint(bounds.x + bounds.width - 1, bounds.y); poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + border.top - 1); poly.addPoint(bounds.x + leftCorner, bounds.y + border.top - 1); | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
} if ((sides & BOTTOM) == BOTTOM) { | } else if (currentSide == BOTTOM) { | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
poly.addPoint(bounds.x, bounds.y + bounds.height); poly.addPoint(bounds.x + bounds.width, bounds.y + bounds.height); | poly.addPoint(bounds.x, bounds.y + bounds.height - 1); poly.addPoint(bounds.x + bounds.width - 1, bounds.y + bounds.height - 1); | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
} if ((sides & RIGHT) == RIGHT) { | } else if (currentSide == RIGHT) { | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
poly.addPoint(bounds.x + bounds.width, bounds.y); | poly.addPoint(bounds.x + bounds.width - 1, bounds.y); | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
poly.addPoint(bounds.x + bounds.width, bounds.y + bounds.height); | poly.addPoint(bounds.x + bounds.width - 1, bounds.y + bounds.height - 1); | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
} if ((sides & LEFT) == LEFT) { | } else if (currentSide == LEFT) { | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
poly.addPoint(bounds.x + border.left, bounds.y + topCorner); poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - bottomCorner); poly.addPoint(bounds.x, bounds.y + bounds.height); | poly.addPoint(bounds.x + border.left - 1, bounds.y + topCorner); poly.addPoint(bounds.x + border.left - 1, bounds.y + bounds.height - bottomCorner); poly.addPoint(bounds.x, bounds.y + bounds.height - 1); | private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0); int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0); i... |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide); Shape old_clip = g2.getClip(); if (clip !... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
if ((sides & TOP) == TOP) { | if (currentSide == TOP) { | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
g2.setStroke(new BasicStroke(border.top, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x, y, x + w, y); } if ((sides & LEFT) == LEFT) { | g2.setStroke(new BasicStroke(border.top, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + border.top / 2, x + w - 1, y + border.top / 2); } else if (currentSide == LEFT) { | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
g2.drawLine(x, y, x, y + h); } if ((sides & RIGHT) == RIGHT) { | g2.drawLine(x + border.left / 2, y, x + border.left / 2, y + h - 1); } else if (currentSide == RIGHT) { | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
g2.drawLine(x + w, y, x + w, y + h); } if ((sides & BOTTOM) == BOTTOM) { | g2.drawLine(x + w - border.right / 2, y, x + w - border.right / 2, y + h); } else if (currentSide == BOTTOM) { | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
g2.setStroke(new BasicStroke(border.bottom, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x, y + h, x + w, y + h); | g2.setStroke(new BasicStroke(border.bottom, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - border.bottom / 2, x + w, y + h - border.bottom / 2); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... |
g2.setClip(old_clip); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides) { Stroke old_stroke = g2.getStroke(); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.... | |
private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0);//adjust for bug in polygon fil... |
if ((sides & TOP) == TOP) { | if (currentSide == TOP) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0);//adjust for bug in polygon fil... |
if ((sides & BOTTOM) == BOTTOM) { | else if (currentSide == BOTTOM) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0);//adjust for bug in polygon fil... |
if ((sides & RIGHT) == RIGHT) { | else if (currentSide == RIGHT) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0);//adjust for bug in polygon fil... |
if ((sides & LEFT) == LEFT) { | else if (currentSide == LEFT) { | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int sides) { int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 1); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - 1 : 0);//adjust for bug in polygon fil... |
public static ComponentUI createUI(final JComponent c) { return new BasicButtonUI(); } | public static ComponentUI createUI(final JComponent c) { return new BasicListUI(); } | public static ComponentUI createUI(final JComponent c) { return new BasicButtonUI(); } |
public Dimension getPreferredSize(JComponent c) { JList l = (JList) c; System.out.println("XXXXXXXXXXXXXXXxx getPreferredSize------------> " + l); int rows = l.getVisibleRowCount(); ListCellRenderer render = l.getCellRenderer(); int width = 200; int height = rows * 16; if (l.getModel().getSize() == 0) { return... | public Dimension getPreferredSize(JComponent c) { maybeUpdateLayoutState(); if (list.getModel().getSize() == 0) return new Dimension(0, 0); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); return bounds.getSize(); } | public Dimension getPreferredSize(JComponent c) { JList l = (JList) c; System.out.println("XXXXXXXXXXXXXXXxx getPreferredSize------------> " + l); int rows = l.getVisibleRowCount(); ListCellRenderer render = l.getCellRenderer(); int width = 200; int height = rows * 16; if (l.getModel().getSize() == 0) ... |
public void installUI(final JComponent c) { super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192); } | public void installUI(final JComponent c) { super.installUI(c); list = (JList) c; installDefaults(); installListeners(); installKeyboardActions(); maybeUpdateLayoutState(); } | public void installUI(final JComponent c) { super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192); } |
public void paint(Graphics g, JComponent c) { JList l = (JList) c; | public void paint(Graphics g, JComponent c) { int nrows = Math.min(list.getVisibleRowCount(), list.getModel().getSize()); if (nrows == 0) return; | public void paint(Graphics g, JComponent c) { JList l = (JList) c; int rows = l.getVisibleRowCount(); ListCellRenderer render = l.getCellRenderer(); System.out.println("RENDER-JLIST: " + rows + ", " + l.getModel().getSize()); paintBackground(g, c); if (l.getModel().getSize() == 0) return; // us... |
int rows = l.getVisibleRowCount(); | maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLeadSelectionIndex(); paintBackground(g, list); | public void paint(Graphics g, JComponent c) { JList l = (JList) c; int rows = l.getVisibleRowCount(); ListCellRenderer render = l.getCellRenderer(); System.out.println("RENDER-JLIST: " + rows + ", " + l.getModel().getSize()); paintBackground(g, c); if (l.getModel().getSize() == 0) return; // us... |
ListCellRenderer render = l.getCellRenderer(); System.out.println("RENDER-JLIST: " + rows + ", " + l.getModel().getSize()); paintBackground(g, c); if (l.getModel().getSize() == 0) return; Component elt = render.getListCellRendererComponent(l, l.getModel().getElementAt(0), 0, false, false); Dimension dim = elt.getP... | for (int row = 0; row < nrows; ++row) { Rectangle bounds = getCellBounds(list, row, row); paintCell(g, row, bounds, render, model, sel, lead); } } | public void paint(Graphics g, JComponent c) { JList l = (JList) c; int rows = l.getVisibleRowCount(); ListCellRenderer render = l.getCellRenderer(); System.out.println("RENDER-JLIST: " + rows + ", " + l.getModel().getSize()); paintBackground(g, c); if (l.getModel().getSize() == 0) return; // us... |
public void paintBackground(Graphics g, JComponent c) { Dimension size = getPreferredSize(c); g.setColor(normalBackgroundColor); g.fillRect(0,0,size.width, size.height); } | public void paintBackground(Graphics g, JComponent c) { Dimension size = getPreferredSize(c); Color save = g.getColor(); g.setColor(c.getBackground()); g.fillRect(0, 0, size.width, size.height); g.setColor(save); } | public void paintBackground(Graphics g, JComponent c) { Dimension size = getPreferredSize(c); g.setColor(normalBackgroundColor); g.fillRect(0,0,size.width, size.height); } |
sess.recover(); | if (j != numRecoveries -1) { sess.recover(); } | public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) { TextMessage tm ... |
lastMessage.acknowledge(); | public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) { TextMessage tm ... | |
final int NUM_MESSAGES = 10; | final int NUM_MESSAGES = 30; | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
final int NUM_RECOVERIES = 8; | final int NUM_RECOVERIES = 9; | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
Receiver r1 = new Receiver(); r1.cons = cons1; r1.numMessages = NUM_MESSAGES; r1.sess = sess1; r1.numRecoveries = NUM_RECOVERIES; | Receiver r1 = new Receiver("R1", sess1, cons1, NUM_MESSAGES, NUM_RECOVERIES); | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
Receiver r2 = new Receiver(); r2.cons = cons2; r2.numMessages = NUM_MESSAGES; r2.sess = sess2; r2.numRecoveries = NUM_RECOVERIES; | Receiver r2 = new Receiver("R2", sess2, cons2, NUM_MESSAGES, NUM_RECOVERIES); | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
Receiver r3 = new Receiver(); r3.cons = cons3; r3.numMessages = NUM_MESSAGES; r3.sess = sess3; r3.numRecoveries = NUM_RECOVERIES; | Receiver r3 = new Receiver("R3", sess3, cons3, NUM_MESSAGES, NUM_RECOVERIES); | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
assertFalse(r3.failed); | assertFalse(r3.failed); conn.close(); | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... |
} if (textContent.endsWith("]")) { textContent = textContent.substring(0, textContent.length() - 1); | if (textContent.endsWith("]")) { textContent = textContent.substring(0, textContent.length() - 1); } | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... |
String region = ""; | String country = ""; | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; for (int i = 0; i < len; i++) { String language; String region = ""; String var... |
region = name.substring(3); | country = name.substring(3); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; for (int i = 0; i < len; i++) { String language; String region = ""; String var... |
int index = region.indexOf("_"); | int index = country.indexOf("_"); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; for (int i = 0; i < len; i++) { String language; String region = ""; String var... |
variant = region.substring(index + 1); region = region.substring(0, index - 1); | variant = country.substring(index + 1); country = country.substring(0, index - 1); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; for (int i = 0; i < len; i++) { String language; String region = ""; String var... |
availableLocales[i] = getLocale(language, region, variant); | availableLocales[i] = getLocale(language, country, variant); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; for (int i = 0; i < len; i++) { String language; String region = ""; String var... |
return new JBossMessage(); | JBossMessage jbm = new JBossMessage(); jbm.setOrdering(ordering++); return jbm; | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
return new JBossBytesMessage(); | JBossMessage jbm = new JBossBytesMessage(); jbm.setOrdering(ordering++); return jbm; | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
return new JBossMapMessage(); | JBossMessage jbm = new JBossMapMessage(); jbm.setOrdering(ordering++); return jbm; | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
JBossObjectMessage msg = new JBossObjectMessage(); | JBossObjectMessage jbm = new JBossObjectMessage(); jbm.setOrdering(ordering++); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
msg.setObject((Serializable)mi.getArguments()[0]); | jbm.setObject((Serializable)mi.getArguments()[0]); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
return msg; | return jbm; | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
return new JBossStreamMessage(); | JBossMessage jbm = new JBossStreamMessage(); jbm.setOrdering(ordering++); return jbm; | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
JBossTextMessage msg = new JBossTextMessage(); | JBossTextMessage jbm = new JBossTextMessage(); jbm.setOrdering(ordering++); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
msg.setText((String)mi.getArguments()[0]); | jbm.setText((String)mi.getArguments()[0]); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof JMSMethodInvocation) { JMSMethodInvocation mi = (JMSMethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); if ("createMessage".equals(methodName)) ... |
topic = (Destination)initialContext.lookup("/topic/Topic"); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv... | |
Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; | Connection conn = null; | public void testCommitIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.commit(); } catch (javax.jms.IllegalStateException e) ... |
producerSess.commit(); | conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.commit(); } catch (javax.jms.IllegalStateException e) { thrown = true; } assertTrue(thrown); | public void testCommitIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.commit(); } catch (javax.jms.IllegalStateException e) ... |
catch (javax.jms.IllegalStateException e) { thrown = true; | finally { if (conn != null) { conn.close(); } | public void testCommitIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.commit(); } catch (javax.jms.IllegalStateException e) ... |
assertTrue(thrown); conn.close(); | public void testCommitIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.commit(); } catch (javax.jms.IllegalStateException e) ... | |
Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; | Connection conn = null; | public void testRollbackIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.rollback(); } catch (javax.jms.IllegalStateException... |
producerSess.rollback(); | conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.rollback(); } catch (javax.jms.IllegalStateException e) { thrown = true; } assertTrue(thrown); | public void testRollbackIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.rollback(); } catch (javax.jms.IllegalStateException... |
catch (javax.jms.IllegalStateException e) { thrown = true; | finally { if (conn != null) { conn.close(); } | public void testRollbackIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.rollback(); } catch (javax.jms.IllegalStateException... |
assertTrue(thrown); conn.close(); | public void testRollbackIllegalState() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); boolean thrown = false; try { producerSess.rollback(); } catch (javax.jms.IllegalStateException... | |
if (new_inline instanceof InlineTextBox) { | /* not useful and may be harmful if (new_inline instanceof InlineTextBox) { | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = LayoutUtil.getBorder(box, c.getCurrentStyle()); Border margin = c.ge... |
} | }*/ | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = LayoutUtil.getBorder(box, c.getCurrentStyle()); Border margin = c.ge... |
+ ", endIndex: " + getEndIndex()); | + ", endIndex: " + getEndIndex() + ", text: " + toString()); | public char setIndex(int position) { if (position < getBeginIndex() || position > getEndIndex()) throw new IllegalArgumentException("position: " + position + ", beginIndex: " + getBeginIndex() + ", endIndex: " + getEndIndex()... |
channel.deliver(this); | channel.redeliver(this); | public void requestMessages() { if (channel == null) { log.error("No channel, cannot request messages"); return; } log.info("receiver explicitely requesting message from the channel"); channel.deliver(this); } |
log.info("urec2:" + urec_2.getPayload()); log.info("urec1:" + urec_1.getPayload()); | public void testCopyAfterReceive() throws Exception { if (ServerManagement.isRemote()) { return; } Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.A... | |
if (LayoutUtil.isListItem(c, box)) { | if (LayoutUtil.isListItem(box)) { | public void paint(Context c, Box box) { //u.p("BoxRenderer.paint " + box); Box block = (Box) box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle(c.getExtents()); if (block.relative) { paintRelative(c, block); } else if (block.fixed)... |
CalculatedStyle style = c.css.getStyle(block.getRealElement()); | CalculatedStyle style = null; if (box.getContent() == null) { XRLog.render(Level.WARNING, "null content in BoxRenderer.paintBackground for " + box.getClass().getName()); } else { style = box.getContent().getStyle(); } | public void paintBackground(Context c, Box box) { Box block = box; // cache the background color getBackgroundColor(c, block); // get the css properties CalculatedStyle style = c.css.getStyle(block.getRealElement()); String back_image = style.getStringProperty("background-i... |
serverPeer.getLocator(), | serverPeer.getLocatorURI(), | 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... |
return new AccessibleStateSet(); | return null; | public AccessibleStateSet getAccessibleStateSet() { // TODO: which state information from ImageIcon is returned here?? return new AccessibleStateSet(); } |
return Locale.getDefault(); | return null; | public Locale getLocale() { return Locale.getDefault(); } |
public void linkClicked( Box box, MouseEvent evt ) { | public void linkClicked(String uri) { | public void linkClicked( Box box, MouseEvent evt ) { panel.repaint(); try { Element elem = box.element; if ( elem.hasAttribute( "href" ) ) { panel.setDocumentRelative( elem.getAttribute( "href" ) ); } } catch ( Exception ex ) { Uu.p( ex... |
try { Element elem = box.element; if ( elem.hasAttribute( "href" ) ) { panel.setDocumentRelative( elem.getAttribute( "href" ) ); } } catch ( Exception ex ) { Uu.p( ex ); } | panel.setDocumentRelative(uri); | public void linkClicked( Box box, MouseEvent evt ) { panel.repaint(); try { Element elem = box.element; if ( elem.hasAttribute( "href" ) ) { panel.setDocumentRelative( elem.getAttribute( "href" ) ); } } catch ( Exception ex ) { Uu.p( ex... |
null, true, "node1", "Simple", ms, pm, tr, ff, pool); | null, true, 1, "Simple", ms, pm, tr, ff, pool); | protected PostOffice createPostOffice() throws Exception { FilterFactory ff = new SimpleFilterFactory(); DefaultPostOffice postOffice = new DefaultPostOffice(sc.getDataSource(), sc.getTransactionManager(), null, true, "node1", "Simple", ms, pm, tr, ff, pool); ... |
yoff += block.top; | CalculatedStyle style = c.getCurrentStyle(); int tp = (int) style.getFloatPropertyProportionalHeight(CSSName.TOP, c.getBlockFormattingContext().getHeight(), c.getCtx()); yoff += tp; | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... |
currentWorkspace.deleteWorkflow(workflowName); | currentWorkspace.removeWorkflow(workflowName); | public void importURL(final URL url) { Workspace space; if(url==null) return; if (!(currentWorkspace instanceof Workspace)) return; space = (Workspace)currentWorkspace; StatusDisplay status = (StatusDisplay)WorkflowDesigner.INSTANCE.statusBar.getItemByName("Status"); String f = url.g... |
value.getCssText(), | cssText, | private FSDerivedValue deriveValue(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value) { // Start assuming our computed value is the same as the specified value RGBColor rgb = (value.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR ? value.getRGBColorValue() : null); String s = (value... |
if (cssName == CSSName.BACKGROUND_POSITION) { val = new PointValue(style, cssName, cssSACUnitType, cssText, cssStringValue); } else if ( COLOR_PROPERTIES.contains(cssName)) { val = new ColorValue(style, cssName, cssSACUnitType, cssText, cssStringValue, rgbColor); } else if (STRING_PROPERTIES.contains(cssName)) { val = ... | boolean declaredInherit = cssText.equals("inherit"); if (declaredInherit) { if (style.getParent().isLengthValue(cssName)) { val = InheritedLength.instance(); } else { val = style.getParent().copyOf(cssName); | public static FSDerivedValue newDerivedValue( CalculatedStyle style, CSSName cssName, short cssSACUnitType, String cssText, String cssStringValue, RGBColor rgbColor ) { FSDerivedValue val = null; if (cssName == CSSName.BACKGROUND_POS... |
throw new XRRuntimeException( "Can't determine the dervived value type to use for property " + "named '" + cssName + "' with value " + cssText ); | if (cssName == CSSName.BACKGROUND_POSITION) { val = new PointValue(style, cssName, cssSACUnitType, cssText, cssStringValue); } else if (COLOR_PROPERTIES.contains(cssName)) { val = new ColorValue(style, cssName, cssSACUnitType, cssText, cssStringValue, rgbColor); } else if (STRING_PROPERTIES.contains(cssName)) { val = n... | public static FSDerivedValue newDerivedValue( CalculatedStyle style, CSSName cssName, short cssSACUnitType, String cssText, String cssStringValue, RGBColor rgbColor ) { FSDerivedValue val = null; if (cssName == CSSName.BACKGROUND_POS... |
0, | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossObjectMessage m = new JBossObjectMessage(i, reliable, ... | |
sb.append("-element:" + this.getClosestNode().getNodeName()); | sb.append("-content:" + this.getContent()); | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.