rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
void setBytes(String parameterName, byte[] x) throws SQLException;
void setBytes(String name, byte[] value) throws SQLException;
void setBytes(String parameterName, byte[] x) throws SQLException;
void setCharacterStream(String parameterName, Reader reader, int length)
void setCharacterStream(String name, Reader reader, int count)
void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException;
void setDate(String parameterName, Date x) throws SQLException;
void setDate(String name, Date value) throws SQLException;
void setDate(String parameterName, Date x) throws SQLException;
void setDouble(String parameterName, double x) throws SQLException;
void setDouble(String name, double value) throws SQLException;
void setDouble(String parameterName, double x) throws SQLException;
void setFloat(String parameterName, float x) throws SQLException;
void setFloat(String name, float value) throws SQLException;
void setFloat(String parameterName, float x) throws SQLException;
void setInt(String parameterName, int x) throws SQLException;
void setInt(String name, int value) throws SQLException;
void setInt(String parameterName, int x) throws SQLException;
void setLong(String parameterName, long x) throws SQLException;
void setLong(String name, long value) throws SQLException;
void setLong(String parameterName, long x) throws SQLException;
void setNull(String parameterName, int sqlType) throws SQLException;
void setNull(String name, int sqlType) throws SQLException;
void setNull(String parameterName, int sqlType) throws SQLException;
void setObject(String parameterName, Object x, int targetSqlType, int scale)
void setObject(String name, Object value, int sqlType, int scale)
void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException;
void setShort(String parameterName, short x) throws SQLException;
void setShort(String name, short value) throws SQLException;
void setShort(String parameterName, short x) throws SQLException;
void setString(String parameterName, String x) throws SQLException;
void setString(String name, String value) throws SQLException;
void setString(String parameterName, String x) throws SQLException;
void setTime(String parameterName, Time x) throws SQLException;
void setTime(String name, Time value) throws SQLException;
void setTime(String parameterName, Time x) throws SQLException;
void setTimestamp(String parameterName, Timestamp x)
void setTimestamp(String name, Timestamp value)
void setTimestamp(String parameterName, Timestamp x) throws SQLException;
void setURL(String parameterName, URL val) throws SQLException;
void setURL(String name, URL value) throws SQLException;
void setURL(String parameterName, URL val) throws SQLException;
throws NotImplementedException
public void focusGained(FocusEvent e) { // FIXME: implement. }
throws NotImplementedException
public void focusLost(FocusEvent e) { // FIXME: implement. }
else if (e.getPropertyName().equals("paintTicks")) calculateGeometry();
public void propertyChange(PropertyChangeEvent e) { // Check for orientation changes. if (e.getPropertyName().equals("orientation")) recalculateIfOrientationChanged(); else if (e.getPropertyName().equals("model")) { BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldMo...
labelRect.height = contentRect.height - labelRect.y;
labelRect.height = getHeightOfTallestLabel();
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = contentRect.height - labelRect.y; } else { labelRect.x = tickRect.x + tickRe...
labelRect.width = contentRect.width - labelRect.x;
labelRect.width = getWidthOfWidestLabel();
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = contentRect.height - labelRect.y; } else { labelRect.x = tickRect.x + tickRe...
tickRect.height = getTickLength();
tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0);
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = getTickLength(); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRe...
tickRect.width = getTickLength();
tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0);
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = getTickLength(); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRe...
trackBuffer = thumbRect.width / 2;
{ int w = Math.max(getWidthOfLowValueLabel(), getWidthOfHighValueLabel()); trackBuffer = Math.max(thumbRect.width / 2, w / 2); }
protected void calculateTrackBuffer() { if (slider.getOrientation() == JSlider.HORIZONTAL) trackBuffer = thumbRect.width / 2; else trackBuffer = thumbRect.height / 2; }
trackBuffer = thumbRect.height / 2;
{ int h = Math.max(getHeightOfLowValueLabel(), getHeightOfHighValueLabel()); trackBuffer = Math.max(thumbRect.height / 2, h / 2); }
protected void calculateTrackBuffer() { if (slider.getOrientation() == JSlider.HORIZONTAL) trackBuffer = thumbRect.width / 2; else trackBuffer = thumbRect.height / 2; }
if (slider.getPaintLabels()) w += getWidthOfWidestLabel();
protected void calculateTrackRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { trackRect.x = contentRect.x + trackBuffer; int h = getThumbSize().height; if (slider.getPaintTicks() && (slider.getMajorTickSpacing() > 0 || slider.getMinorTickSpacing() > 0)) h += ge...
return ! (slider.getInverted() ^ leftToRightCache);
return slider.getInverted();
protected boolean drawInverted() { return ! (slider.getInverted() ^ leftToRightCache); }
return highValueLabel.getHeight();
return highValueLabel.getPreferredSize().height;
protected int getHeightOfHighValueLabel() { Component highValueLabel = getHighestValueLabel(); if (highValueLabel != null) return highValueLabel.getHeight(); else return 0; }
return lowValueLabel.getHeight();
return lowValueLabel.getPreferredSize().height;
protected int getHeightOfLowValueLabel() { Component lowValueLabel = getLowestValueLabel(); if (lowValueLabel != null) return lowValueLabel.getHeight(); else return 0; }
return highValueLabel.getWidth();
return highValueLabel.getPreferredSize().width;
protected int getWidthOfHighValueLabel() { Component highValueLabel = getHighestValueLabel(); if (highValueLabel != null) return highValueLabel.getWidth(); else return 0; }
return lowValueLabel.getWidth();
return lowValueLabel.getPreferredSize().width;
protected int getWidthOfLowValueLabel() { Component lowValueLabel = getLowestValueLabel(); if (lowValueLabel != null) return lowValueLabel.getWidth(); else return 0; }
throws NotImplementedException
protected void installKeyboardActions(JSlider slider) { // FIXME: implement. }
javax.swing.SwingUtilities.paintComponent(g, label, null, label.getBounds());
SwingUtilities.paintComponent(g, label, null, label.getBounds());
protected void paintHorizontalLabel(Graphics g, int value, Component label) { // This relies on clipping working properly or we'll end up // painting all over the place. If our preferred size is ignored, then // the labels may not fit inside the slider's bounds. Rather than mucking // with font sizes an...
double loc = tickRect.x + 0.5; double increment = (max == min) ? 0 : majorSpace * (double) (tickRect.width - 1) / (max - min); if (drawInverted()) { loc += tickRect.width; increment *= -1; }
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
{ paintMajorTickForHorizSlider(g, tickRect, (int) loc); loc += increment; }
paintMajorTickForHorizSlider(g, tickRect, xPositionForValue(i));
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
double loc = tickRect.height + tickRect.y + 0.5; double increment = (max == min) ? 0 : -majorSpace * (double) (tickRect.height - 1) / (max - min); if (drawInverted()) { loc = tickRect.y + 0.5; increment *= -1; }
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
{ paintMajorTickForVertSlider(g, tickRect, (int) loc); loc += increment; }
paintMajorTickForVertSlider(g, tickRect, yPositionForValue(i));
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
double loc = tickRect.x + 0.5; double increment = (max == min) ? 0 : minorSpace * (double) (tickRect.width - 1) / (max - min); if (drawInverted()) { loc += tickRect.width; increment *= -1; }
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
{ paintMinorTickForHorizSlider(g, tickRect, (int) loc); loc += increment; }
paintMinorTickForHorizSlider(g, tickRect, xPositionForValue(i));
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
double loc = tickRect.height + tickRect.y + 0.5; double increment = (max == min) ? 0 : -minorSpace * (double) (tickRect.height - 1) / (max - min); if (drawInverted()) { loc = tickRect.y + 0.5; increment *= -1; }
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
{ paintMinorTickForVertSlider(g, tickRect, (int) loc); loc += increment; }
paintMinorTickForVertSlider(g, tickRect, yPositionForValue(i));
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x...
javax.swing.SwingUtilities.paintComponent(g, label, null, label.getBounds());
SwingUtilities.paintComponent(g, label, null, label.getBounds());
protected void paintVerticalLabel(Graphics g, int value, Component label) { Dimension dim = label.getPreferredSize(); int w = (int) dim.getWidth(); int h = (int) dim.getHeight(); int max = slider.getMaximum(); int min = slider.getMinimum(); if (value > max || value < min) return; int xpos =...
throws NotImplementedException
protected void uninstallKeyboardActions(JSlider slider) { // FIXME: implement. }
int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width - 1;
double min = slider.getMinimum(); if (value < min) value = (int) min; double max = slider.getMaximum(); if (value > max) value = (int) max; double len = trackRect.width; if ((max - min) <= 0.0) return 0; int xPos = (int) ((value - min) / (max - min) * len + 0.5);
protected int xPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width - 1; int xPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) xPos += trackRect.x; else { xPos = len - xPos; xPos += trackRect...
int xPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) xPos += trackRect.x;
if (drawInverted()) return trackRect.x + Math.max(trackRect.width - xPos - 1, 0);
protected int xPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width - 1; int xPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) xPos += trackRect.x; else { xPos = len - xPos; xPos += trackRect...
{ xPos = len - xPos; xPos += trackRect.x; } return xPos;
return trackRect.x + Math.min(xPos, trackRect.width - 1);
protected int xPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width - 1; int xPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) xPos += trackRect.x; else { xPos = len - xPos; xPos += trackRect...
int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height - 1;
double min = slider.getMinimum(); if (value < min) value = (int) min; double max = slider.getMaximum(); if (value > max) value = (int) max; int len = trackRect.height; if ((max - min) <= 0.0) return 0;
protected int yPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height - 1; int yPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) { yPos = len - yPos; yPos += trackRect.y; } else yPos += t...
int yPos = (max == min) ? 0 : (value - min) * len / (max - min);
int yPos = (int) ((value - min) / (max - min) * len + 0.5);
protected int yPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height - 1; int yPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) { yPos = len - yPos; yPos += trackRect.y; } else yPos += t...
{ yPos = len - yPos; yPos += trackRect.y; }
return trackRect.y + trackRect.height - Math.max(yPos, 1);
protected int yPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height - 1; int yPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) { yPos = len - yPos; yPos += trackRect.y; } else yPos += t...
yPos += trackRect.y; return yPos;
return trackRect.y + Math.min(yPos, trackRect.height - 1);
protected int yPositionForValue(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height - 1; int yPos = (max == min) ? 0 : (value - min) * len / (max - min); if (! drawInverted()) { yPos = len - yPos; yPos += trackRect.y; } else yPos += t...
JOptionPane.showMessageDialog((Component)e.getSource(), "Please save this workspace before importing workflows into it", "Warning", JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE);
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), "Please save this workspace before importing workflows into it", "Warning", JOptionPane.WARNING_MESSAGE); return; } File inputFile = Utils.promptUser...
File inputFile = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, false, ".xml", "XML Workflow Files");
File inputFile = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, false, ".xml", ResourceManager.getString("descriptor.files"));
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), "Please save this workspace before importing workflows into it", "Warning", JOptionPane.WARNING_MESSAGE); return; } File inputFile = Utils.promptUser...
Object message, String title, int messageType)
Object message)
public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); JDialog dialog = pane.createDialog(parentComponent, title); d...
JOptionPane pane = new JOptionPane(message, messageType); JDialog dialog = pane.createDialog(parentComponent, title);
JOptionPane pane = new JOptionPane(message, INFORMATION_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, null);
public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); JDialog dialog = pane.createDialog(parentComponent, title); d...
public void write (byte[] buf, int offset, int len) throws IOException
public void write (int b) throws IOException
public void write (byte[] buf, int offset, int len) throws IOException { if (offset < 0 || len < 0 || offset + len > buf.length) throw new ArrayIndexOutOfBoundsException (); ch.write (buf, offset, len); }
if (offset < 0 || len < 0 || offset + len > buf.length) throw new ArrayIndexOutOfBoundsException (); ch.write (buf, offset, len);
ch.write (b);
public void write (byte[] buf, int offset, int len) throws IOException { if (offset < 0 || len < 0 || offset + len > buf.length) throw new ArrayIndexOutOfBoundsException (); ch.write (buf, offset, len); }
public RoutableSupport(long messageID)
public RoutableSupport()
public RoutableSupport(long messageID) { this(messageID, false, Long.MAX_VALUE); }
this(messageID, false, Long.MAX_VALUE);
public RoutableSupport(long messageID) { this(messageID, false, Long.MAX_VALUE); }
return data.getIvy().findModuleInCache(toSystem(mrid), data.getCache(), doValidate(data));
ResolvedModuleRevision moduleFromCache = data.getIvy().findModuleInCache(toSystem(mrid), data.getCache(), doValidate(data)); if (moduleFromCache == null) { return null; } if ((getName() == null ? moduleFromCache.getResolver().getName() == null : moduleFromCache.getResolver() == null ? false : getName().equals(moduleFro...
protected ResolvedModuleRevision findModuleInCache(ResolveData data, ModuleRevisionId mrid) { return data.getIvy().findModuleInCache(toSystem(mrid), data.getCache(), doValidate(data)); }
public static ModuleDescriptor toSystem(ModuleDescriptor md, Namespace ns) { return DefaultModuleDescriptor.transformInstance(md, ns);
public static DependencyDescriptor toSystem(DependencyDescriptor dd, Namespace ns) { return DefaultDependencyDescriptor.transformInstance(dd, ns);
public static ModuleDescriptor toSystem(ModuleDescriptor md, Namespace ns) { return DefaultModuleDescriptor.transformInstance(md, ns); }
log.error("Failed to deliver the message to the client, closing connection", t); try { connection.close(); } catch (JMSException e) { log.error("Failed to close connection", e); }
log.warn("Failed to deliver the message to the client, perhaps the client consumer has closed", t);
public void run() { try { if (log.isTraceEnabled()) { log.trace("handing the message " + this.getCallbackObject() + " over to the remoting layer"); } callbackHandler.handleCallback(this); } catch(Throwable t) { log.error("Failed to deliver the message to the client,...
public abstract void initialize(DSAParams params, SecureRandom random)
void initialize (DSAParams params, SecureRandom random)
public abstract void initialize(DSAParams params, SecureRandom random) throws InvalidParameterException;
assertDependencyArtifactsExcludes(dds[1], new String[] {"compile"}, new String[] {"jaxme-api", "jaxen"}); assertDependencyArtifactsExcludes(dds[1], new String[] {"runtime"}, new String[] {"jaxme-api", "jaxen"});
assertDependencyModulesExcludes(dds[1], new String[] {"compile"}, new String[] {"jaxme-api", "jaxen"}); assertDependencyModulesExcludes(dds[1], new String[] {"runtime"}, new String[] {"jaxme-api", "jaxen"});
public void testExclusion() throws Exception { ModuleDescriptor md = PomModuleDescriptorParser.getInstance().parseDescriptor(new Ivy(), getClass().getResource("test-exclusion.pom"), false); assertNotNull(md); assertEquals(ModuleRevisionId.newInstance("fr.jayasoft", "test", "1.0"), md.ge...
System.out.println("CLASS: InetAddress.InetAddress()");
if (DEBUG) System.out.println("CLASS: InetAddress.InetAddress()");
InetAddress() { System.out.println("CLASS: InetAddress.InetAddress()"); }
System.out.println("CLASS: InetAddress.equals()");
if (DEBUG) System.out.println("CLASS: InetAddress.equals()");
public boolean equals(Object obj) { System.out.println("CLASS: InetAddress.equals()"); if ( (obj != null) && (obj instanceof InetAddress) ) { byte addr[] = ((InetAddress)obj).getAddress(); if ( addr.length == address.length ) { for (int i = 0; i < address.length; i++) { if (address[i] != addr[i]) { ...
System.out.println("CLASS: InetAddress.getAddress()");
if (DEBUG) System.out.println("CLASS: InetAddress.getAddress()");
public byte[] getAddress() { System.out.println("CLASS: InetAddress.getAddress()"); return address; }
System.out.println("CLASS: InetAddress.getAllByName("+host+")[]");
if (DEBUG) System.out.println("CLASS: InetAddress.getAllByName("+host+")[]");
public static InetAddress getAllByName(String host)[] throws UnknownHostException { System.out.println("CLASS: InetAddress.getAllByName("+host+")[]"); if (host == null || host.length() == 0) { throw new UnknownHostException(host == null ? "Null string" : host); } /* check if host is IP address */ byte[] a...
System.out.println("CLASS: InetAddress.getByName("+host+")");
if (DEBUG) System.out.println("CLASS: InetAddress.getByName("+host+")");
public static InetAddress getByName(String host) throws UnknownHostException { System.out.println("CLASS: InetAddress.getByName("+host+")"); if ( (host == null) || (host.length() == 0) ) { return loopbackHost; } else { byte[] addr = pton(host); if (addr != null) { return new InetAddress(null, addr); }...
System.out.println("CLASS: InetAddress.getHostAddress()");
if (DEBUG) System.out.println("CLASS: InetAddress.getHostAddress()");
public String getHostAddress() { int len = address.length; /* allocate room for result */ /* defined in <netinet/in.h> INET6_ADDRSTRLEN = 46 */ StringBuffer addrBuffer = new StringBuffer(46); System.out.println("CLASS: InetAddress.getHostAddress()"); /* We have an IPv6 address. * Return full address for no...
System.out.println("CLASS: InetAddress.getHostName()");
if (DEBUG) System.out.println("CLASS: InetAddress.getHostName()");
public String getHostName() { System.out.println("CLASS: InetAddress.getHostName()"); if (hostName == null) { try { hostName = getHostByAddress(address); } catch (UnknownHostException he) { hostName = getHostAddress(); } } return hostName; }
System.out.println("CLASS: InetAddress.getLocalHost()");
if (DEBUG) System.out.println("CLASS: InetAddress.getLocalHost()");
public static InetAddress getLocalHost() throws UnknownHostException { System.out.println("CLASS: InetAddress.getLocalHost()"); SecurityManager s = System.getSecurityManager(); /* need to check if they are allowed to to do this */ if (localHost == null) { String host = getLocalHostName(); if (s != null) {...
System.out.println("CLASS: InetAddress.hashCode()");
if (DEBUG) System.out.println("CLASS: InetAddress.hashCode()");
public int hashCode() { System.out.println("CLASS: InetAddress.hashCode()"); int hash = 0; int i = 0; int len = address.length; if (len == 16) { /* only want the last 4 bytes of IPv6 address */ i = len - 4; } for ( ; i < len; i++) hash = (hash << 8) | (address[i] & 0xFF); return hash; }
System.out.println("CLASS: InetAddress.isMulticastAddress()");
if (DEBUG) System.out.println("CLASS: InetAddress.isMulticastAddress()");
public boolean isMulticastAddress() { System.out.println("CLASS: InetAddress.isMulticastAddress()"); int len = address.length; /* IPv4 address check for class D address */ if (len == 4) return ((address[0] & 0xF0) == 0xE0); /* IPv6 address check */ if (len == 16) return (address[0] == (byte) 0xFF); /*...
System.out.println("CLASS: InetAddress.toString()");
if (DEBUG) System.out.println("CLASS: InetAddress.toString()");
public String toString() { System.out.println("CLASS: InetAddress.toString()"); return getHostName() + "/" + getHostAddress(); }
String[] confs = getRealConfs(conf);
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { ...
String[] confs = getRealConfs(conf);
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { ...
if (_data.getIvy().logResolvedRevision()) { Message.info("\t["+_module.getId().getRevision()+"] "+getId()); } else { Message.verbose("\t["+_module.getId().getRevision()+"] "+getId()); }
public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver ...
ServerManagement.stop(); log.info("Torn down"); log.info("lock map size:" + LockMap.instance.getSize());
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue1"); ServerManagement.undeployQueue("Queue2"); ServerManagement.undeployQueue("Queue3"); ServerManagement.undeployQueue("Queue4"); ServerManagement.undeployTopic("Topic1"); ServerManagement.unde...
throw new JBossJMSException("Delivery mode must be either DeliveryMode.PERSISTENT "
throw new MessagingJMSException("Delivery mode must be either DeliveryMode.PERSISTENT "
public void setJMSDeliveryMode(int deliveryMode) throws JMSException { if (deliveryMode == DeliveryMode.PERSISTENT) { reliable = true; } else if (deliveryMode == DeliveryMode.NON_PERSISTENT) { reliable = false; } else { throw new JBossJMSException("De...
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, byte[] payloadAsByteArray, int persistentChannelCount)
public MessageSupport()
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
super(messageID, reliable, expiration, timestamp, priority, deliveryCount, headers); this.payloadAsByteArray = payloadAsByteArray; this.persistentChannelCount = persistentChannelCount;
public MessageSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, Map headers, ...
public JBossTemporaryQueue(ConnectionDelegate delegate)
public JBossTemporaryQueue(SessionDelegate delegate)
public JBossTemporaryQueue(ConnectionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
public JBossTemporaryTopic(ConnectionDelegate delegate)
public JBossTemporaryTopic(SessionDelegate delegate)
public JBossTemporaryTopic(ConnectionDelegate delegate) { super(new GUID().toString()); this.delegate = delegate; }
void afterCommit();
void afterCommit() throws TransactionException;
void afterCommit();
void afterRollback();
void afterRollback() throws TransactionException;
void afterRollback();
if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); }
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
if (child.getSubstring().startsWith(WhitespaceStripper.SPACE)) { IdentValue whitespace = c.getCurrentStyle().getIdent(CSSName.WHITE_SPACE); if (whitespace == IdentValue.NORMAL || whitespace == IdentValue.NOWRAP || whitespace == IdentValue.PRE) { child.setSubstring(child.start_index + 1, child.end_index); } }
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil...
clientDragModeSet = true;
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) // throw new IllegalArgumentException("Outline drag modes are // unsupported....
Service service = factory.create(Workflow.class, "Workflow", null, null);
Service service = factory.create(Workflow.class);
public void init() throws ServletException { super.init(); ServiceRegistry registry = getXFire().getServiceRegistry(); ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager()); Service service = factory.create(Workflow.class, "Workflow", null, null); ...
public static String getCondition(String name) { return (String) conditions.get(name);
public Condition getCondition(String type, Map args) throws WorkflowException { String className = (String) conditions.get(type); if (className == null) { className = (String) args.get(Workflow.CLASS_NAME); } if (className == null) { throw new WorkflowException("No type or class.name argument specified to TypeResolve...
public static String getCondition(String name) { return (String) conditions.get(name); }
public static String getFunction(String name) { return (String) functions.get(name);
public FunctionProvider getFunction(String type, Map args) throws WorkflowException { String className = (String) functions.get(type); if (className == null) { className = (String) args.get(Workflow.CLASS_NAME); } if (className == null) { throw new WorkflowException("No type or class.name argument specified to TypeRe...
public static String getFunction(String name) { return (String) functions.get(name); }
public static String getRegister(String name) { return (String) registers.get(name);
public Register getRegister(String type, Map args) throws WorkflowException { String className = (String) registers.get(type); if (className == null) { className = (String) args.get(Workflow.CLASS_NAME); } if (className == null) { throw new WorkflowException("No type or class.name argument specified to TypeResolver")...
public static String getRegister(String name) { return (String) registers.get(name); }
public static String getValidator(String name) { return (String) validators.get(name);
public Validator getValidator(String type, Map args) throws WorkflowException { String className = (String) registers.get(type); if (className == null) { className = (String) args.get(Workflow.CLASS_NAME); } if (className == null) { throw new WorkflowException("No type or class.name argument specified to TypeResolver...
public static String getValidator(String name) { return (String) validators.get(name); }
private ObjectName deploy(String destConfig) throws Exception
protected ObjectName deploy(String destConfig) throws Exception
private ObjectName deploy(String destConfig) throws Exception { ObjectName on = ServerManagement.deploy(destConfig); ServerManagement.invoke(on, "create", new Object[0], new String[0]); ServerManagement.invoke(on, "start", new Object[0], new String[0]); return on; }
private void undeployDestination(String name) throws Exception
protected void undeployDestination(String name) throws Exception
private void undeployDestination(String name) throws Exception { if (isQueue()) { ServerManagement.undeployQueue(name); } else { ServerManagement.undeployTopic(name); } }
public GridLayout (int rows, int cols, int hgap, int vgap)
public GridLayout ()
public GridLayout (int rows, int cols, int hgap, int vgap) { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgument...
if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgumentException ("both rows and columns cannot be 0"); if (hgap < 0) throw new IllegalArgument...
this (1, 0, 0, 0);
public GridLayout (int rows, int cols, int hgap, int vgap) { if (rows < 0) throw new IllegalArgumentException ("number of rows cannot be negative"); if (cols < 0) throw new IllegalArgumentException ("number of columns cannot be negative"); if (rows == 0 && cols == 0) throw new IllegalArgument...
if (r.isReliable())
if (r.isRecoverable())
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes;
root.panel.view.getContext().debug_draw_boxes = !root.panel.view.getContext().debug_draw_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes; root.panel.view.repaint(); }
root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes;
root.panel.view.getContext().debug_draw_inline_boxes = !root.panel.view.getContext().debug_draw_inline_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; root.panel.view.repaint(); }
root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes;
root.panel.view.getContext().debug_draw_line_boxes = !root.panel.view.getContext().debug_draw_line_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; root.panel.view.repaint(); }
if ( root.panel.view.c.css instanceof CSSBank ) { inspector = new DOMInspector( root.panel.view.doc );
if ( root.panel.view.getContext().css instanceof CSSBank ) { inspector = new DOMInspector( root.panel.view.getDocument() );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...