bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... | 36,319 |
private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... | 36,320 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s61"); channel = new SimpleChannel(1, ms); // the state ACCEPTS reliable messages state = new ChannelState(channel, this.persistenceManagerDelegate, true, false, 100, 20, 10); } | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("s61"); channel = new SimpleChannel(1, ms); // the state ACCEPTS reliable messages state = new ChannelState(channel, this.persistenceManagerDelegate, true, false, 100, 20, 10); } | 36,323 |
public Object handleClosing(Invocation invocation) throws Throwable { // First we make sure closing is called on the ServerConsumerEndpoint. This ensures that any // in-transit messages are flushed out to the client side. Object res = invocation.invokeNext(); ConsumerState consumerS... | public Object handleClosing(Invocation invocation) throws Throwable { // First we make sure closing is called on the ServerConsumerEndpoint. This ensures that any // in-transit messages are flushed out to the client side. Object res = invocation.invokeNext(); ConsumerState consumerS... | 36,324 |
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; ConsumerDelegate consumerDelegate = (ConsumerDelegate)invocation.invokeNext(); boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); // Create the me... | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; ConsumerDelegate consumerDelegate = (ConsumerDelegate)invocation.invokeNext(); boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); // Create the me... | 36,325 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... | 36,326 |
public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | 36,327 |
public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | 36,328 |
public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | 36,329 |
public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... | 36,330 |
public ResolveResult resolveToClass(Name name, Class contextType) throws NamingException; | ResolveResult resolveToClass(Name name, Class contextType) throws NamingException; | 36,331 |
protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" +... | protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { if (trace) { log.trace("creating consume... | 36,332 |
protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" +... | protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" +... | 36,333 |
protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (trace) { log.trace(this + " disconnected from the channel"); } } } | protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (trace) { log.trace(this + " removed from the channel"); } } } | 36,334 |
protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... | protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... | 36,335 |
protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... | protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... | 36,336 |
protected Container createSeparator() { return null; } | protected Container createSeparator() { return (Container) Box.createVerticalStrut(17); } | 36,337 |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); throw new WorkflowException(e); ... | public boolean canInitialize(String workflowName, int initialState) { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); throw new WorkflowException(e); } } | 36,339 |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); throw new WorkflowException(e); ... | public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); return false; } } | 36,340 |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } } | public boolean canModifyEntryState(long id, int newState) { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } } | 36,341 |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } } | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); return false; } } | 36,342 |
public int[] getAvailableActions(long id) throws WorkflowException { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); throw new WorkflowException(e); } } | public int[] getAvailableActions(long id) { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); throw new WorkflowException(e); } } | 36,343 |
public int[] getAvailableActions(long id) throws WorkflowException { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); throw new WorkflowException(e); } } | public int[] getAvailableActions(long id) throws WorkflowException { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); return new int[0]; } } | 36,344 |
public List getCurrentSteps(long id) throws WorkflowException { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); throw new WorkflowException(e); } } | public List getCurrentSteps(long id) { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); throw new WorkflowException(e); } } | 36,345 |
public List getCurrentSteps(long id) throws WorkflowException { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); throw new WorkflowException(e); } } | public List getCurrentSteps(long id) throws WorkflowException { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); return Collections.EMPTY_LIST; } } | 36,346 |
public int getEntryState(long id) throws WorkflowException { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); throw new WorkflowException(e); } } | public int getEntryState(long id) { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); throw new WorkflowException(e); } } | 36,347 |
public int getEntryState(long id) throws WorkflowException { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); throw new WorkflowException(e); } } | public int getEntryState(long id) throws WorkflowException { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); return WorkflowEntry.UNKNOWN; } } | 36,348 |
public List getHistorySteps(long id) throws WorkflowException { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); throw new WorkflowException(e); } } | public List getHistorySteps(long id) { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); throw new WorkflowException(e); } } | 36,349 |
public List getHistorySteps(long id) throws WorkflowException { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); throw new WorkflowException(e); } } | public List getHistorySteps(long id) throws WorkflowException { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); return Collections.EMPTY_LIST; } } | 36,350 |
public PropertySet getPropertySet(long id) throws WorkflowException { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); throw new WorkflowException(e); } } | public PropertySet getPropertySet(long id) { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); throw new WorkflowException(e); } } | 36,351 |
public PropertySet getPropertySet(long id) throws WorkflowException { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); throw new WorkflowException(e); } } | public PropertySet getPropertySet(long id) throws WorkflowException { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); return null; } } | 36,352 |
public List getSecurityPermissions(long id) throws WorkflowException { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); throw new WorkflowException(e); } } | public List getSecurityPermissions(long id) { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); throw new WorkflowException(e); } } | 36,353 |
public List getSecurityPermissions(long id) throws WorkflowException { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); throw new WorkflowException(e); } } | public List getSecurityPermissions(long id) throws WorkflowException { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); return Collections.EMPTY_LIST; } } | 36,354 |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); throw new WorkflowException(e); } } | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); throw new WorkflowException(e); } } | 36,355 |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); throw new WorkflowException(e); } } | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); return null; } } | 36,356 |
public String getWorkflowName(long id) throws WorkflowException { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); throw new WorkflowException(e); } } | public String getWorkflowName(long id) { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); throw new WorkflowException(e); } } | 36,357 |
public String getWorkflowName(long id) throws WorkflowException { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); throw new WorkflowException(e); } } | public String getWorkflowName(long id) throws WorkflowException { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); return null; } } | 36,358 |
public String[] getWorkflowNames() throws FactoryException { try { return wf.getWorkflowNames(); } catch (RemoteException e) { log.error("Error calling getWorkflowNames", e); return new String[0]; } } | public String[] getWorkflowNames() { try { return wf.getWorkflowNames(); } catch (RemoteException e) { log.error("Error calling getWorkflowNames", e); return new String[0]; } } | 36,359 |
CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | 36,361 |
CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException; | Subscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException; | 36,362 |
CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, PersistenceManager pm) throws JMSException; | DurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, PersistenceManager pm) throws JMSException; | 36,363 |
public Color getBackgroundColor() { if (_drvBackgroundColor == null) { _drvBackgroundColor = valueByName(CSSName.BACKGROUND_COLOR).asColor(); XRLog.cascade(Level.FINEST, "Background color: " + _drvBackgroundColor); } return _drvBackgroundColor; } | public Color getBackgroundColor() { if (_drvBackgroundColor == null) { _drvBackgroundColor = valueByName(CSSName.BACKGROUND_COLOR).asColor(); XRLog.cascade(Level.FINEST, "Background color: " + _drvBackgroundColor); } return _drvBackgroundColor; } | 36,364 |
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("ConnectionConsumer Closing " + this); } closed = true; //This will call the MessageConsumer cons to close too - which results //in the receiver thread being interrupted. sess.close(); //wait ... | 36,365 |
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 = (JMSInvocationHandle... | 36,366 |
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... | 36,367 |
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, ... | 36,368 |
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); | 36,369 |
public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } | public int getPreferredHeight() { return 0; // TODO } | 36,370 |
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 } | 36,371 |
public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } | 36,372 |
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 } | 36,373 |
protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | protected boolean isFixedRowHeight() { return false; // TODO } | 36,374 |
protected static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, ... | protected static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, ... | 36,376 |
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"); } ... | 36,377 |
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... | 36,378 |
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... | 36,379 |
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... | 36,380 |
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",... | 36,381 |
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",... | 36,382 |
protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) throws NotImplementedException { // TODO } | protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) { // TODO } | 36,383 |
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... | 36,385 |
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... | 36,386 |
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... | 36,387 |
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... | 36,388 |
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... | 36,389 |
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... | 36,390 |
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) { ... | 36,391 |
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... | 36,392 |
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... | 36,393 |
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... | 36,394 |
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... | 36,395 |
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... | 36,396 |
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... | 36,397 |
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... | 36,398 |
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); } | 36,399 |
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; if (... | 36,400 |
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 > ... | 36,401 |
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 > ... | 36,402 |
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 > ... | 36,403 |
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 > ... | 36,404 |
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 > ... | 36,405 |
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 > ... | 36,406 |
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... | 36,407 |
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 } | 36,408 |
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 } | 36,409 |
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()... | 36,410 |
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 } | 36,411 |
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... | 36,412 |
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; } | 36,413 |
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); ... | 36,414 |
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; } | 36,415 |
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); } | 36,416 |
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; } | 36,417 |
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... | 36,418 |
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 "... | 36,419 |
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... | 36,421 |
public Dimension getPreferredScrollableViewportSize() { return new Dimension (getPreferredSize().width, getVisibleRowCount()*getRowHeight()); } | public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); } | 36,422 |
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... | 36,423 |
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... | 36,424 |
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_... | 36,425 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.