rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
ConfigLoader.load(new FileInputStream(file)); } catch (IOException e) { throw new FactoryException(e); } | ConfigLoader.load(getClass().getResourceAsStream(configFile)); | protected void loadConfig(URL url) throws FactoryException { if (url == null) { try { File file = new File(configFile); ConfigLoader.load(new FileInputStream(file)); } catch (IOException e) { throw new FactoryException(e); } } } |
if ((box.hasNode() && box.getNode().getNodeName() != "body") && !(box instanceof BlockBox)) { | if ((box.hasContent() && box.getContent() instanceof TextContent)) { | public void mouseDragged(MouseEvent e) { if (e.getComponent() instanceof BasicPanel) { panel = (BasicPanel) e.getComponent(); Box box = panel.findBox(e.getX(), e.getY()); if (box == null) { return; } // if box is text node then start selec... |
installDocumentListeners(); | protected void installListeners() { textComponent.addFocusListener(focuslistener); } | |
installDocumentListeners(); | protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; Element elem = doc.getDefaultRootElement(); i... | |
if (log.isTraceEnabled()) | if (trace) | public void handleConnectionException(Throwable t, Client c) { if (log.isTraceEnabled()) { log.trace("Caught exception from connection", t); } if (exceptionListener != null) { if (t instanceof Error) { log.error("Caught error on connection", t); ... |
public void setUp() throws Exception | protected void setUp() throws Exception | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); } |
public void tearDown() throws Exception { | protected void tearDown() throws Exception { | public void tearDown() throws Exception { super.tearDown(); } |
private Expression buildExpression(WorkflowQuery query) throws StoreException { if (query.getLeft() == null) { if (query.getRight() == null) return getExpression(query); else throw new StoreException("Invalid WorkflowQuery object. QueryLeft is null but QueryRight is not."); } else { if (query.getRight() == null) throw... | private Expression buildExpression(WorkflowQuery query) throws StoreException { if (query.getLeft() == null) { if (query.getRight() == null) { return getExpression(query); } else { throw new StoreException("Invalid WorkflowQuery object. QueryLeft is null but QueryRight is not."); } } else { if (query.getRight() == nul... | private Expression buildExpression(WorkflowQuery query) throws StoreException { if (query.getLeft() == null) { if (query.getRight() == null) return getExpression(query); //leaf node else throw new StoreException("Invalid WorkflowQuery object. QueryLeft is null but QueryRight is not."); }... |
switch (operator) { case WorkflowQuery.AND: return Expression.and(buildExpression(query),buildExpression(query)); case WorkflowQuery.OR: return Expression.or(buildExpression(query),buildExpression(query)); case WorkflowQuery.XOR: throw new StoreException("XOR Operator in Queries not supported by " + this.getClass().get... | int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); switch (operator) { case WorkflowQuery.AND: return Expression.and(buildExpression(query), buildExpression(query)); case WorkflowQuery.OR: return Expression.or(buildExpression(query), buildExpression(query... | private Expression buildExpression(WorkflowQuery query) throws StoreException { if (query.getLeft() == null) { if (query.getRight() == null) return getExpression(query); //leaf node else throw new StoreException("Invalid WorkflowQuery object. QueryLeft is null but QueryRight is not."); }... |
Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for workflow entry " + entryId, he... | Transaction tx; | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
step.setEntry(entry); step.setStepId(stepId); step.setOwner(owner); step.setStartDate(startDate); step.setDueDate(dueDate); step.setStatus(status); | try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for workflow entry " + entryId, he); throw new Sto... | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
List stepIdList = new ArrayList(previousIds.length); | step.setEntry(entry); step.setStepId(stepId); step.setOwner(owner); step.setStartDate(startDate); step.setDueDate(dueDate); step.setStatus(status); | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
for (int i = 0; i < previousIds.length; i++) { long previousId = previousIds[i]; stepIdList.add(new Long(previousId)); } | List stepIdList = new ArrayList(previousIds.length); | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
if (!stepIdList.isEmpty()) { String stepIds = TextUtils.join(", ", stepIdList); | for (int i = 0; i < previousIds.length; i++) { long previousId = previousIds[i]; stepIdList.add(new Long(previousId)); } | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
try { step.setPreviousSteps(session.find("FROM step in CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.id IN (" + stepIds + ")")); } catch (HibernateException he) { log.error("Looking for step in " + stepIds, he); throw new StoreException("Looking for step in " + stepIds, he); } } else { step.setPreviousS... | if (!stepIdList.isEmpty()) { String stepIds = TextUtils.join(", ", stepIdList); | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
if (entry.getCurrentSteps() == null) { ArrayList cSteps = new ArrayList(1); cSteps.add(step); entry.setCurrentSteps(cSteps); } else { entry.getCurrentSteps().add(step); } | try { step.setPreviousSteps(session.find("FROM step in CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.id IN (" + stepIds + ")")); } catch (HibernateException he) { log.error("Looking for step in " + stepIds, he); throw new StoreException("Looking for step in " + stepIds, he); } } else { step.setPreviousS... | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
try { session.save(entry); tx.commit(); | if (entry.getCurrentSteps() == null) { ArrayList cSteps = new ArrayList(1); cSteps.add(step); entry.setCurrentSteps(cSteps); } else { entry.getCurrentSteps().add(step); } | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
return step; } catch (HibernateException he) { log.error("Saving new workflow entry", he); throw new StoreException("Saving new workflow entry", he); } } | try { session.save(entry); tx.commit(); return step; } catch (HibernateException he) { log.error("Saving new workflow entry", he); throw new StoreException("Saving new workflow entry", he); } } | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction()... |
try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for entryId " + entryId, he); throw new StoreException("Looking for entryId " + ent... | try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for entryId " + entryId, he); throw new StoreException("Looking for entryId " + ent... | 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); } catch (HibernateExce... |
try { return session.find("FROM step IN CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.entry = ?", entry, Hibernate.association(entry.getClass())); } catch (HibernateException he) { log.error("Looking for step id" + entry, he); throw new StoreException("Looking for step id" + entry, he); } | 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); } catch (HibernateExce... | |
int operator = query.getOperator(); switch (operator) { case WorkflowQuery.EQUALS: return Expression.eq(getFieldName(query.getField()), getSafeValue(query.getValue())); case WorkflowQuery.NOT_EQUALS: return Expression.not(Expression.like(getFieldName(query.getField()), getSafeValue(query.getValue()))); case Workflow... | switch (operator) { case WorkflowQuery.EQUALS: return Expression.eq(getFieldName(query.getField()), getSafeValue(query.getValue())); case WorkflowQuery.NOT_EQUALS: return Expression.not(Expression.like(getFieldName(query.getField()), getSafeValue(query.getValue()))); case WorkflowQuery.GT: return Expression.gt(getFie... | private Expression getExpression(WorkflowQuery query) { int operator = query.getOperator(); switch (operator) { case WorkflowQuery.EQUALS: return Expression.eq(getFieldName(query.getField()), getSafeValue(query.getValue())); case WorkflowQuery.NOT_EQUALS: return Expression.not(Expres... |
DefaultHibernateConfigurationProvider configurationProvider = new DefaultHibernateConfigurationProvider(); configurationProvider.setSessionFactory(sessionFactory); | public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entityName", "OSWorkflowEntry"); args.put("entityId", new Long(entryId)); DefaultHibernateConfigurationProvider configurationProvider = new DefaultHibernateConfigurationProvider(); configurationProvide... | |
args.put("configurationProvider", configurationProvider); | DefaultHibernateConfigurationProvider configurationProvider = new DefaultHibernateConfigurationProvider(); configurationProvider.setSessionFactory(sessionFactory); args.put("configurationProvider", configurationProvider); | public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entityName", "OSWorkflowEntry"); args.put("entityId", new Long(entryId)); DefaultHibernateConfigurationProvider configurationProvider = new DefaultHibernateConfigurationProvider(); configurationProvide... |
Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for workflow entry " + s... | Transaction tx; | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
HibernateHistoryStep hStep = new HibernateHistoryStep((HibernateStep) step); | try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateException he) { log.error("Looking for workflow entry " + step.getEntryId()... | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
entry.getCurrentSteps().remove(step); | HibernateHistoryStep hStep = new HibernateHistoryStep((HibernateStep) step); | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
if (entry.getHistorySteps() == null) { ArrayList hSteps = new ArrayList(1); hSteps.add(hStep); entry.setHistorySteps(hSteps); } else { entry.getHistorySteps().add(hStep); } | entry.getCurrentSteps().remove(step); | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
try { session.save(entry); tx.commit(); | if (entry.getHistorySteps() == null) { ArrayList hSteps = new ArrayList(1); hSteps.add(hStep); entry.setHistorySteps(hSteps); } else { entry.getHistorySteps().add(hStep); } | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
} catch (HibernateException he) { log.error("Saving workflow entry " + entry.getId(), he); throw new StoreException("Saving workflow entry " + entry.getId(), he); } } | try { session.save(entry); tx.commit(); } catch (HibernateException he) { log.error("Saving workflow entry " + entry.getId(), he); throw new StoreException("Saving workflow entry " + entry.getId(), he); } } | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), H... |
if (qtype == 0) { if (query.getLeft() != null) { qtype = query.getLeft().getType(); } } | if (qtype == 0) { | public List query(WorkflowQuery query) throws StoreException { List results = new ArrayList(); // going to try to do all the comparisons in one query String sel; Class entityClass; int qtype = query.getType(); if (qtype == 0) { // then not set, so look in sub queries // todo: not sure if you would... |
if (qtype == WorkflowQuery.CURRENT) { entityClass = HibernateCurrentStep.class; } else { entityClass = HibernateHistoryStep.class; } Criteria criteria = session.createCriteria(entityClass); criteria.add(buildExpression(query)); | if (query.getLeft() != null) { qtype = query.getLeft().getType(); } } | public List query(WorkflowQuery query) throws StoreException { List results = new ArrayList(); // going to try to do all the comparisons in one query String sel; Class entityClass; int qtype = query.getType(); if (qtype == 0) { // then not set, so look in sub queries // todo: not sure if you would... |
if (qtype == WorkflowQuery.CURRENT) { entityClass = HibernateCurrentStep.class; } else { entityClass = HibernateHistoryStep.class; } | public List query(WorkflowQuery query) throws StoreException { List results = new ArrayList(); // going to try to do all the comparisons in one query String sel; Class entityClass; int qtype = query.getType(); if (qtype == 0) { // then not set, so look in sub queries // todo: not sure if you would... | |
return results; } | Criteria criteria = session.createCriteria(entityClass); criteria.add(buildExpression(query)); return results; } | public List query(WorkflowQuery query) throws StoreException { List results = new ArrayList(); // going to try to do all the comparisons in one query String sel; Class entityClass; int qtype = query.getType(); if (qtype == 0) { // then not set, so look in sub queries // todo: not sure if you would... |
for (int i = 0; i <= box.getChildCount(); i++) { | for (int i = 0; i < box.getChildCount(); i++) { | private static void restyleBlockContext(LayoutContext c, BlockBox box) { if (! box.isReplaced()) { for (int i = 0; i <= box.getChildCount(); i++) { Box child = (Box) box.getChild(i); restyle(c, (BlockBox) child); } } } |
g.setColor(b.getBackground()); if (b.isOpaque()) g.fillRect(vr.x, vr.y, vr.width, vr.height); else { g.fillRect(tr.x, tr.y, tr.width, tr.height); if (b.getBorder() != null) b.getBorder().paintBorder(b, g, tr.x, tr.y, tr.width, tr.height); b.setBorder(null); } | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | |
{ return null; } | { if (disabledIcon == null && activeIcon instanceof ImageIcon) setDisabledIcon(activeIcon); return disabledIcon; } | public Icon getDisabledIcon() { // Returns the value of the disabledIcon property if it's been set, If it hasn't been set and the value of the icon property is an ImageIcon, we compute a "grayed out" version of the icon and update the disabledIcon property with that. return null; } |
outerBox.propagateChildProperties(tableBox); | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | |
cons = sess.createConsumerDelegate(dest, messageSelector, false, subName, true); | ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger(); try { tccc.set(getClass().getClassLoader()); cons = sess.createConsumerDelegate(dest, messageSelector, false, subName, true); } finally { tccc.restore(); } | public JBossConnectionConsumer(ConnectionDelegate conn, Destination dest, String subName, String messageSelector, ServerSessionPool sessPool, int maxMessages) throws JMSException { trace = log.isTraceEnabled(); this.destination = de... |
box.setChildrenExceedBounds(true); | public static Box generateAbsoluteBox(Context c, Content content) { // Uu.p("generate absolute block inline box: avail = " + avail); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a blo... | |
Node node = box.getNode(); | Content content = box.getContent(); | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); //not used: CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metrics = null;... |
if (!LayoutUtil.isReplaced(c, node)) { if (!LayoutUtil.isFloatedBlock(node, c)) { | if (!(content instanceof ReplacedContent)) { if (!(content instanceof FloatedBlockContent)) { | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); //not used: CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metrics = null;... |
if (!LayoutUtil.isReplaced(c, node)) { | if (!(content instanceof ReplacedContent)) { | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); //not used: CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metrics = null;... |
if (consumer != null) | public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if( ( model instanceof IndexColorModel) && canFilterIndexColorModel ) { newmodel = filterIndexColorModel( (IndexColorModel) model ); consumer.setColorModel(newmodel); } else { consumer.setColorModel(ColorModel.getRGBdef... | |
if (consumer != null) | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if(model == origmodel && (model instanceof IndexColorModel) && canFilterIndexColorModel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, s... | |
if (consumer != null) | public void setColorModel(ColorModel model) { consumer.setColorModel(model); } | |
if (sessionId == null) { log.warn("Session id is null for client " + client); } else { | if (sessionId != null) { | public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) { // Th... |
{ log.info("Broken client connection, clearing up its state " + sessionId, t); if (log.isTraceEnabled()) { log.trace("Clearing up server resources for this connection"); } | { | public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) { // Th... |
if (endpoint == null) { log.error("Cannot find ServerConnectionEndpoint for session id " + sessionId); } else { | if (endpoint != null) { log.trace("Clearing up server resources for this connection"); | public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) { // Th... |
} log.info("Cleared up state for connection"); | } | public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) { // Th... |
sDbgLogger.setLevel(Level.OFF); | public XRDerivedStyleImpl( XRElement forElement, Iterator iter ) { this(); _xrElement = forElement; while ( iter.hasNext() ) { _matchedStyles.add( iter.next() ); } derive(); } | |
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.downFocusCycle (this); | if (isFocusCycleRoot()) { KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); fm.setGlobalCurrentFocusCycleRoot(this); FocusTraversalPolicy policy = getFocusTraversalPolicy(); Component defaultComponent = policy.getDefaultComponent(this); if (defaultComponent != null) defaultComponent.reque... | public void transferFocusDownCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.downFocusCycle (this); } |
case HierarchyEvent.HIERARCHY_CHANGED: return (hierarchyListener != null || (eventMask & AWTEvent.HIERARCHY_EVENT_MASK) != 0); case HierarchyEvent.ANCESTOR_MOVED: case HierarchyEvent.ANCESTOR_RESIZED: return (hierarchyBoundsListener != null || (eventMask & AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK) != 0); | boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentLi... | |
if (getUI().locationToIndex(this, r.getLocation()) == -1 && indexToLocation(getModel().getSize() - 1).y < r.y) return getModel().getSize() - 1; | public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth() - 1, 0); return getUI().locationToIndex(this, r.getLocation... | |
return null; | return getCellBounds(index, index).getLocation(); | public Point indexToLocation(int index){ //FIXME: Need to implement. return null; } |
if(actionId!=null) transientVars.put("actionId", actionId); | if (actionId != null) { transientVars.put("actionId", actionId); } | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... |
((ISwingPeer<awtT>)jComponent).validatePeerOnly(); | public void beginValidate() { } | |
MessageConsumer consumer = session.createConsumer(distributedQueue); | public void example() throws Exception { String destinationName = getDestinationJNDIName(); InitialContext ic = null; Connection connection = null; try { // Create a connection to the clustered messaging instance ic = new InitialContext(); ConnectionFactory cf = (Co... | |
pullSize); | pullSize, statsSendPeriod); | protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ... |
PreparedStatement stmt2 = conn.prepareStatement(sql2); | stmt2 = conn.prepareStatement(sql2); | public List findHistorySteps(long entryId) throws StoreException { Connection conn = null; PreparedStatement stmt = null; ResultSet rset = null; try { conn = getConnection(); String sql = "SELECT " + stepId + ", " + stepStepId + ", " + stepActionId + ", " + stepOwne... |
cleanup(null, stmt2, null); | public List findHistorySteps(long entryId) throws StoreException { Connection conn = null; PreparedStatement stmt = null; ResultSet rset = null; try { conn = getConnection(); String sql = "SELECT " + stepId + ", " + stepStepId + ", " + stepActionId + ", " + stepOwne... | |
Statement stmt = null; | PreparedStatement ps = null; | public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement ps... |
PreparedStatement ps = conn.prepareStatement(sql); | ps = conn.prepareStatement(sql); | public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement ps... |
cleanup(conn, stmt, null); | cleanup(conn, ps, null); | public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement ps... |
if (log.isTraceEnabled()) { log.trace("Sending message: " + m); } | public void send(Destination destination, Message m, int deliveryMode, int priority, long timeToLive) throws JMSException { // TODO destination, deliveryMode, priority, timeToLive are ignored. // TODO See "Delegate Implementation" thread http://www.jboss.org/index.html?module=bb&op=vie... | |
if(currentWorkspace.getLocation()==null) { JOptionPane.showMessageDialog((Component)e.getSource(), "Please save this workspace before importing workflows into it", "Warning", JOptionPane.WARNING_MESSAGE); return; } | public void actionPerformed(ActionEvent e) { File inputFile = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, false, ".xml", "XML Workflow Files"); if(inputFile!=null) { try { if(currentWorkspace.getLocation()==null) { JOptionPane.showMe... | |
Queue queue = (Queue) initialContext.lookup((String) args.get("queue-location")); | javax.jms.Queue queue = (javax.jms.Queue) initialContext.lookup((String) args.get("queue-location")); | public void execute(Map transientVars, Map args, PropertySet ps) { WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); try { Hashtable env = new Hashtable(args); InitialContext initialContext = new InitialContext(env); if (args.containsKey("queue-factory-... |
Thread.sleep(2000); | void waitForLatch(long timeout) throws Exception { latch.attempt(timeout); //Thread.sleep(1000); } | |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + border.top); poly.addPoint(bounds.x + border.left, bounds.y + border.top); g.setColor(color.topColor); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + border.top-1); poly.addPoint(bounds.x + border.left-1, bounds.y + border.top-1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - border.bottom); poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + bounds.height - border.bottom+1); poly.addPoint(bounds.x + border.left-1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... |
g.setColor(color.bottomColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + border.top); poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + border.top-1); poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... |
g.setColor(color.rightColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | |
poly.addPoint(bounds.x + border.left, bounds.y + border.top); poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + border.left-1, bounds.y + border.top-1); poly.addPoint(bounds.x + border.left-1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... |
g.setColor(color.leftColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | |
return; | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | |
conn1.close(); | public Object execute() throws Exception { if (retainReference) { commands.add(this); } conn1 = cf.createConnection(); conn1.setClientID("test1"); conn1.start(); conn2 = cf.createConnection(); conn2.setClientID("test2"); conn2.start(); conn1.close(); ... | |
conn1.close(); | public Object execute() throws Exception { if (retainReference) { commands.add(this); } conn1 = cf.createConnection(); conn1.setClientID("test1"); conn1.start(); conn2 = cf.createConnection(); conn2.setClientID("test2"); conn2.start(); conn1.close(); ... | |
this.layout_context = c; | public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); getRenderingContex... | |
log.trace("Received " + count + " messages"); | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | |
if (log.isTraceEnabled()) log.trace("m1:" + m1 + ", m2:" + m2) ; | public void testReceiveOnTopic() throws Exception { if (log.isTraceEnabled()) log.trace("testReceiveOnTopic"); consumerConnection.start(); final Message m1 = producerSession.createMessage(); new Thread(new Runnable() { public void run() { try { ... | |
throws NotImplementedException | protected void uninstallKeyboardActions() { // TODO: Implement this properly. } | |
protected AddReferenceTask addAddReferenceTask(Transaction tx) | protected AddReferenceCallback addAddReferenceTask(Transaction tx) | protected AddReferenceTask addAddReferenceTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the AddReferenceTask AddReferenceTask task = (AddReferenceTask)txToAddReferenceTasks.get(tx); if (task == null) { task = new AddReferenceTask(tx)... |
AddReferenceTask task = (AddReferenceTask)txToAddReferenceTasks.get(tx); if (task == null) | AddReferenceCallback calback = (AddReferenceCallback)txToAddReferenceTasks.get(tx); if (calback == null) | protected AddReferenceTask addAddReferenceTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the AddReferenceTask AddReferenceTask task = (AddReferenceTask)txToAddReferenceTasks.get(tx); if (task == null) { task = new AddReferenceTask(tx)... |
task = new AddReferenceTask(tx); txToAddReferenceTasks.put(tx, task); tx.addPostCommitTask(task); | calback = new AddReferenceCallback(tx); txToAddReferenceTasks.put(tx, calback); tx.addCallback(calback); | protected AddReferenceTask addAddReferenceTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the AddReferenceTask AddReferenceTask task = (AddReferenceTask)txToAddReferenceTasks.get(tx); if (task == null) { task = new AddReferenceTask(tx)... |
return task; | return calback; | protected AddReferenceTask addAddReferenceTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the AddReferenceTask AddReferenceTask task = (AddReferenceTask)txToAddReferenceTasks.get(tx); if (task == null) { task = new AddReferenceTask(tx)... |
if (log.isTraceEnabled()) { log.trace("added " + ref + " at the top of the list in memory"); } return; | if (log.isTraceEnabled()) { log.trace("added " + ref + " at the top of the list in memory"); } | public void addFirst(MessageReference ref) throws Throwable { if (log.isTraceEnabled()) { log.trace("adding " + ref + "at the top of the list in memory"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... |
protected RemoveDeliveryTask addRemoveDeliveryTask(Transaction tx) | protected RemoveDeliveryCallback addRemoveDeliveryTask(Transaction tx) | protected RemoveDeliveryTask addRemoveDeliveryTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the RemoveDeliveryTask RemoveDeliveryTask task = (RemoveDeliveryTask)txToRemoveDeliveryTasks.get(tx); if (task == null) { task = new RemoveDeliveryTask(t... |
RemoveDeliveryTask task = (RemoveDeliveryTask)txToRemoveDeliveryTasks.get(tx); if (task == null) | RemoveDeliveryCallback callback = (RemoveDeliveryCallback)txToRemoveDeliveryTasks.get(tx); if (callback == null) | protected RemoveDeliveryTask addRemoveDeliveryTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the RemoveDeliveryTask RemoveDeliveryTask task = (RemoveDeliveryTask)txToRemoveDeliveryTasks.get(tx); if (task == null) { task = new RemoveDeliveryTask(t... |
task = new RemoveDeliveryTask(tx); txToRemoveDeliveryTasks.put(tx, task); tx.addPostCommitTask(task); | callback = new RemoveDeliveryCallback(tx); txToRemoveDeliveryTasks.put(tx, callback); tx.addCallback(callback); | protected RemoveDeliveryTask addRemoveDeliveryTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the RemoveDeliveryTask RemoveDeliveryTask task = (RemoveDeliveryTask)txToRemoveDeliveryTasks.get(tx); if (task == null) { task = new RemoveDeliveryTask(t... |
return task; | return callback; | protected RemoveDeliveryTask addRemoveDeliveryTask(Transaction tx) { //TODO we could avoid this lookup by letting the tx object store the RemoveDeliveryTask RemoveDeliveryTask task = (RemoveDeliveryTask)txToRemoveDeliveryTasks.get(tx); if (task == null) { task = new RemoveDeliveryTask(t... |
Box floater = bfc.getLeftFloatX(box); | Box floater = bfc.newGetLeftFloatX(box); | private static void positionBoxLeft(Context c, Box box) { // Uu.p("positionBoxLeft()"); // Uu.p("calling the new float routine"); BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.getLeftFloatX(box); // Uu.p("floater = " + floater); // Uu.p("exte... |
if (textContent != null) { inlineList.add(textContent); textContent = null; } | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl... | |
int actualServerID = r.getActualFailoverNode(); | int actualServerID = r.getActualFailoverNodeID(); | private void handleFailure(ClientConnectionDelegate failedConnDelegate) throws Exception { ConnectionState failedConnState = (ConnectionState)((DelegateSupport)failedConnDelegate).getState(); int failedServerID = failedConnState.getServerID(); log.debug(this + " handling failed connection to... |
if (log.isTraceEnabled()) { log.trace("Caught JMSException:" + e); } | if (trace) { log.trace("Caught JMSException:" + e); } | public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(JMSException e) { if (log.isTraceEnabled()) { log.trace("Caught JMSException:" + e); } Exception linked = e.getLinkedException(); if (linked ... |
if (log.isTraceEnabled()) { log.trace("Caught Exception:" + e); } | if (trace) { log.trace("Caught Exception:" + e); } | public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(JMSException e) { if (log.isTraceEnabled()) { log.trace("Caught JMSException:" + e); } Exception linked = e.getLinkedException(); if (linked ... |
if (log.isTraceEnabled()) { log.trace("Caught Error:" + e); } | if (trace) { log.trace("Caught Error:" + e); } | public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(JMSException e) { if (log.isTraceEnabled()) { log.trace("Caught JMSException:" + e); } Exception linked = e.getLinkedException(); if (linked ... |
} if (dueDate != null) { buf.append(" due-date=\"").append(getDueDate()).append("\""); | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } buf.append(" old-status=\"").append(oldStatus... | |
boolean isHoverStyled = _tbStyleMap.isHoverStyled(e); XRLog.general("Element "+e+" tested for hover styling "+isHoverStyled); | public boolean wasHoverRestyled(Element e) { if(_tbStyleMap.isHoverStyled(e)) { _styler.restyleTree(e); return true; } return false; } | |
public void menuKeyReleased(MenuKeyEvent event); | void menuKeyReleased(MenuKeyEvent event); | public void menuKeyReleased(MenuKeyEvent event); |
clientManager = new ClientManager(this); | clientManager = new ClientManagerImpl(this); | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); pm = new HSQLDBPersistenceManager(); txRepository = new TransactionRepository(pm); // TODO: is should be possible t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.