bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void registerEntireMap (ComponentInputMap map) { if (map == null) return; JComponent comp = map.getComponent(); KeyStroke[] keys = map.keys(); if (keys == null) return; // Find the top-level container associated with this ComponentInputMap Container topLevel = findTopLevel(comp...
public void registerEntireMap (ComponentInputMap map) { if (map == null) return; JComponent comp = map.getComponent(); KeyStroke[] keys = map.allKeys(); if (keys == null) return; // Find the top-level container associated with this ComponentInputMap Container topLevel = findTopLevel(c...
44,045
public void ancestorMoved(AncestorEvent event);
public void ancestorMoved(AncestorEvent event);
44,046
public void ancestorRemoved(AncestorEvent event);
public void ancestorRemoved(AncestorEvent event);
44,047
public DebugGraphics(Graphics graphics) { // TODO }
public DebugGraphics() { // TODO }
44,048
public int getDebugOptions() { return 0; // TODO }
public int getDebugOptions() { return debugOptions; // TODO }
44,049
public void setDebugOptions(int options) { // TODO }
debugOptions = options; debugOptions = options; publicdebugOptions = options; voiddebugOptions = options; setDebugOptions(intdebugOptions = options; options)debugOptions = options; debugOptions = options; { //debugOptions = options; TODOdebugOptions = options; debugOptions = options; }
44,050
public boolean isFocusCycleRoot () { return focusCycleRoot; }
public boolean isFocusCycleRoot (Container c) { return focusCycleRoot; }
44,051
public boolean isFocusCycleRoot () { return focusCycleRoot; }
public boolean isFocusCycleRoot () { if (this == c && isFocusCycleRoot ()) return true; Container ancestor = getFocusCycleRootAncestor (); if (c == ancestor) return true; return false; }
44,052
public Container getFocusCycleRootAncestor () { if (this instanceof Window && ((Container) this).isFocusCycleRoot ()) return (Container) this; Container parent = getParent (); while (parent != null && !parent.isFocusCycleRoot ()) parent = parent.getParent (); return parent; }
public Container getFocusCycleRootAncestor () { if (this instanceof Window && ((Container) this).isFocusCycleRoot ()) return (Container) this; Container parent = getParent (); while (parent != null && !parent.isFocusCycleRoot ()) parent = parent.getParent (); return parent; }
44,053
public Container getFocusCycleRootAncestor () { if (this instanceof Window && ((Container) this).isFocusCycleRoot ()) return (Container) this; Container parent = getParent (); while (parent != null && !parent.isFocusCycleRoot ()) parent = parent.getParent (); return parent; }
public Container getFocusCycleRootAncestor () { if (this instanceof Window && ((Container) this).isFocusCycleRoot ()) return (Container) this; Container parent = getParent (); while (parent != null && !parent.isFocusCycleRoot ()) parent = parent.getParent (); return parent; }
44,054
public FocusTraversalPolicy getFocusTraversalPolicy () { if (!isFocusCycleRoot ()) return null; if (focusTraversalPolicy == null) { Container ancestor = getFocusCycleRootAncestor (); if (ancestor != this) return ancestor.getFocusTraversalPolicy (); else { KeyboardFocusManager manager = Ke...
public FocusTraversalPolicy getFocusTraversalPolicy () { if (!isFocusCycleRoot ()) return null; if (focusTraversalPolicy == null) { Container ancestor = getFocusCycleRootAncestor (); if (ancestor != this) return ancestor.getFocusTraversalPolicy (); else { KeyboardFocusManager manager = Ke...
44,055
public void clear() { super.clear(); // FIXME: Notify component. }
if (component != null) component.updateComponentInputMap(this); if (component != null) component.updateComponentInputMap(this); publicif (component != null) component.updateComponentInputMap(this); voidif (component != null) component.updateComponentInputMap(this); clear()if (component != null) component.updateComponen...
44,056
private static WorkflowDescriptor load(InputStream is, URL url) throws SAXException, IOException, InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); DocumentBuilder db = null; ...
private static WorkflowDescriptor load(InputStream is, URL url) throws SAXException, IOException, InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); DocumentBuilder db = null; ...
44,057
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
44,058
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
44,059
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP...
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP...
44,060
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d.getReference().getMessageID()); d...
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().releaseReferen...
44,061
public NonRecoverableState(Channel channel, boolean acceptReliableMessages) { this.channel = channel; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new BasicSynchronizedPrioritizedDeque(new BasicPrioritizedDeque(10)); deliveries = new ConcurrentHashMap(); txToAddRefer...
public NonRecoverableState(Channel channel, boolean acceptReliableMessages) { this.channel = channel; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new BasicSynchronizedPrioritizedDeque(new BasicPrioritizedDeque(10)); deliveries = new ConcurrentHashSet(); txToAddRefer...
44,062
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + (tx == null ? " non-transactionally" : " in transaction: " + tx)); } if (tx == null) { if (ref.isReliable() && !acceptReliableMessages) { ...
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + (tx == null ? " non-transactionally" : " in transaction: " + tx)); } if (tx == null) { if (ref.isReliable() && !acceptReliableMessages) { ...
44,063
public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I...
public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I need to ...
44,065
protected void paintHighlightBelowTab() { // Nothing to do here, no highlight below the tab as far // as I can see. }
int selected = tabPane.getSelectedIndex(); int tabPlacement = tabPane.getTabPlacement(); Rectangle bounds = getTabBounds(tabPane, selected); hg.setColor(selectColor); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.height; if (tabPlacement == TOP) hg.fillRect(x, y + h - 2, w, 30); else if (ta...
44,068
protected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y) { return true; }
protected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y) { return true; }
44,071
protected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y) { return true; }
protected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y) { return false; }
44,072
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); return realEditor; }
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); return realEditor; }
44,073
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); return realEditor; }
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; }
44,074
public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: Implement this properly. return 0; }
44,075
public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; }
44,076
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for unselected text. g.setColor(...
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for unselected text. g.setColor(...
44,077
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for unselected text. g.setColor(...
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for unselected text. g.setColor(...
44,078
public String toString() { return new String(array, offset, count); }
public String toString() { return (array != null) ? new String(array, offset, count) : ""; }
44,079
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { return super.modelToView(pos, a, bias); }
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { Shape newAlloc = adjustAllocation(a); return super.modelToView(pos, newAlloc, bias); }
44,080
public static String deriveKey( CalculatedStyle style, CSSName[] sideProperties ) { String key = null; boolean isAbs = true; for (int i = 0; i < sideProperties.length && isAbs; i++) { isAbs = style.hasAbsoluteUnit(sideProperties[i]); } if (isAbs...
public static String deriveKey( CalculatedStyle style, CSSName[] sideProperties ) { String key = null; boolean isAbs = true; for (int i = 0; i < sideProperties.length && isAbs; i++) { isAbs = style.hasAbsoluteUnit(sideProperties[i]); } if (isAbs...
44,081
public abstract void write(byte[] data, int offset, int len) throws IOException;
public abstract void write(byte[] data, int offset, int len) throws IOException;
44,082
public HibernateWorkflowStore(Session session) { this.session = session; }
public HibernateWorkflowStore(Session session) { this.session = session; }
44,083
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,084
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,085
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,086
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,087
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,088
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,089
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,090
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,091
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,092
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
44,093
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
public WorkflowEntry createEntry(String workflowName) throws StoreException { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException ...
44,094
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
44,095
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) throws StoreException { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } c...
44,096
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
44,097
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
44,098
public WorkflowEntry findEntry(long entryId) { try { List result = session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG); return (WorkflowEntry) result.get(0); } catch (HibernateException e) { ...
public WorkflowEntry findEntry(long entryId) { try { List result = session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG); return (WorkflowEntry) result.get(0); } catch (HibernateException e) { ...
44,099
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
44,100
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
44,101
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
44,102
public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entryName", "OSWorkflowEntry"); args.put("entryId", new Long(entryId)); args.put("session", session); return PropertySetManager.getInstance("hibernate", args); }
public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entryName", "OSWorkflowEntry"); args.put("entryId", new Long(entryId)); args.put("session", session); return PropertySetManager.getInstance("hibernate", args); }
44,103
public void init(Map props) { }
public void init(Map props) throws StoreException { try { sessionFactory =(SessionFactory) props.get("sessionFactory"); session = sessionFactory.openSession(); } catch (HibernateException he) { log.error("Setting sessionFactory", he); throw new StoreException("Setting sessionFactory", he); } }
44,105
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
44,106
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
44,107
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
44,108
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
44,109
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,110
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,111
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,112
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,113
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,114
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,115
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
44,116
public List query(WorkflowQuery query) { return null; }
public List query(WorkflowQuery query) { return null; }
44,117
public HibernateHistoryStep(HibernateStep step) { super(step); }
public HibernateHistoryStep(HibernateStep step) { super(step); }
44,118
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ...
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ...
44,119
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
44,120
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, null, false); }
44,121
public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context, style); }
public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context); }
44,122
public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); return getFont(c, style); }
public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); Font f = c.getGraphics().getFont(); if (quick) { return f; } float size = style.propertyByName(CSSName.FONT_SIZE).computedValue().asFloat(); String weight = style.propertyByName(CSSName.FONT_WEIGHT).computedValue(...
44,123
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
44,124
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c), box.getSubstring()); }
44,125
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEI...
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEI...
44,126
public int viewToModel(GlyphView v, float x, float y, Shape a, Bias[] biasRet) { Rectangle b = a.getBounds(); assert b.contains(x, y) : "The coordinates are expected to be within the " + "view's bounds: x=" + x + ", y=" + y ...
public int viewToModel(GlyphView v, float x, float y, Shape a, Bias[] biasRet) { Rectangle b = a.getBounds(); assert b.contains(x, y) : "The coordinates are expected to be within the " + "view's bounds: x=" + x + ", y=" + y ...
44,127
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument()....
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument()....
44,128
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); return 10; }
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) { case X_AXIS: for (int i = 0; i < el.getElement...
44,129
private void initializeRemoting() throws Exception { String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (feature?) in JBoss Remotin...
private void initializeRemoting() throws Exception { String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (feature?) in JBoss Remotin...
44,130
public synchronized void start() throws Exception { try { if (started) { return; } log.debug(this + " starting"); loadClientAOPConfig(); loadServerAOPConfig(); mbeanServer = findMBeanServer(); // Acquire references to plu...
public synchronized void start() throws Exception { try { if (started) { return; } log.debug(this + " starting"); loadClientAOPConfig(); loadServerAOPConfig(); mbeanServer = findMBeanServer(); // Acquire references to plu...
44,132
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); unloadServerAOPConfig(); tearDownConnectionFactories(); dm.destroyAllDestinations(); txRepository = null; clientManager = null; dm ...
public synchronized void stop() throws Exception { if (!started) { return; } ...
44,133
ServerBrowserEndpoint(ServerSessionEndpoint session, String id, Channel destination, String messageSelector) throws JMSException { this.session = session; this.id = id; Filter filter = null; if (messageSelector != null) { filter = new Selector(mes...
ServerBrowserEndpoint(ServerSessionEndpoint session, int id, Channel destination, String messageSelector) throws JMSException { this.session = session; this.id = id; Filter filter = null; if (messageSelector != null) { filter = new Selector(messag...
44,134
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Browser is already closed"); } iterator = null; session.producers.remove(this.id); Dispatcher.singleton.unregisterTarget(this.id); closed = true; }
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Browser is already closed"); } iterator = null; session.producers.remove(this.id); Dispatcher.singleton.unregisterTarget(this.id); closed = true; }
44,135
public Message nextMessage() throws JMSException { if (closed) { throw new IllegalStateException("Browser is closed"); } Routable r = (Routable)iterator.next(); if (log.isTraceEnabled()) { log.trace("returning the message corresponding to " + r); } return (Message)r.getM...
public Message nextMessage() throws JMSException { if (closed) { throw new IllegalStateException("Browser is closed"); } Routable r = (Routable)iterator.next(); if (trace) { log.trace("returning the message corresponding to " + r); } return (Message)r.getMessage(); }
44,136
public String toString() { return "BrowserEndpoint[" + Util.guidToString(id) + "]"; }
public String toString() { return "BrowserEndpoint[" + id + "]"; }
44,137
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(int serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) { ...
44,138
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(String serverID) { Integer in = new Integer(serverID); Holder h = (Holder)holders.get(in); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; ...
44,139
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
44,140
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(int serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
44,141
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(String serverID) { Integer in = new Integer(serverID); Holder h = (Holder)holders.get(in); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } ...
44,142
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(in, h); } else { h.refCount++; } return h.rm; }
44,143
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(serverID); }
public synchronized boolean containsResourceManager(int serverID) { return holders.containsKey(serverID); }
44,144
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(serverID); }
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(new Integer(serverID)); }
44,145
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = createXATx(); ...
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = createXATx(); ...
44,146
public void clip(Shape s) { //clip = clip. // TODO Auto-generated method stub }
public void clip(Shape s) { //clip = clip. // TODO Auto-generated method stub }
44,147
public Box createBox(Context c, Content content) { AnonymousBlockBox block = new AnonymousBlockBox(text, c); return block; }
public Box createBox(Context c, Content content) { AnonymousBlockBox block = new AnonymousBlockBox(content); return block; }
44,149
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
public AnonymousBlockBox(Content content) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(node_list.s...
44,150
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
44,151
protected void init() { queue = RenderQueue.getInstance(); documentListeners = new HashMap(); setBackground(Color.white); super.setLayout(null); layoutThread = new Thread(new LayoutLoop(this), "FlyingSaucer-Layout"); renderThread = new Thread(new RenderLoop(this), "FlyingSa...
protected void init() { queue = new RenderQueue(); documentListeners = new HashMap(); setBackground(Color.white); super.setLayout(null); layoutThread = new Thread(new LayoutLoop(this), "FlyingSaucer-Layout"); renderThread = new Thread(new RenderLoop(this), "FlyingSaucer-Ren...
44,153