rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if ((conditions == null) || (conditions.size() == 0)) { | if (conditions == null || conditions.size() == 0) { | protected boolean passesConditions(String conditionType, List conditions, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { if ((conditions == null) || (conditions.size() == 0)) { return true; } boolean and = "AND".equals(conditionType); boolean ... |
if (passesConditions(null, conditionalResult.getConditions(), unmodifiableTransients, ps, (step != null) ? step.getStepId() : (-1))) { | if (passesConditions(null, conditionalResult.getConditions(), unmodifiableTransients, ps, step != null ? step.getStepId() : -1)) { | 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); // ... |
if ((extraPreFunctions != null) && (extraPreFunctions.size() > 0)) { | if (extraPreFunctions != null && extraPreFunctions.size() > 0) { | 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); // ... |
if ((wf.getInitialAction(action.getId()) != null) && (entry.getState() != WorkflowEntry.ACTIVATED)) { | if (wf.getInitialAction(action.getId()) != null && entry.getState() != WorkflowEntry.ACTIVATED) { | 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); // ... |
if (LayoutUtil.isFixed(c, box)) { | if (LayoutUtil.isFixed(box.getContent().getStyle())) { | public static void positionFixedChild(Context c, Box box) { if (LayoutUtil.isFixed(c, box)) { Point origin = c.getOriginOffset(); box.x = 0; box.y = 0; box.x -= origin.x; box.y -= origin.y; } } |
if (LayoutUtil.isFixed(c, box)) { | if (LayoutUtil.isFixed(box.getContent().getStyle())) { | public static void setupFixed(Context c, Box box) { if (LayoutUtil.isFixed(c, box)) { box.fixed = true; box.setChildrenExceedBounds(true); CalculatedStyle style = c.css.getStyle(box.getNode()); if (style.hasProperty("top")) { box.top = (int) style.ge... |
repaintLeadRow(); | public void focusGained(FocusEvent e) { // TODO: Implement this properly. } | |
repaintLeadRow(); | public void focusLost(FocusEvent e) { // TODO: Implement this properly. } | |
selectPath(tree, path); | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... | |
else selectPathForEvent(path, e); | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... | |
return depth * rightChildIndent; | int iw = getCurrentControlIcon(null).getIconWidth(); return depth * (rightChildIndent + iw/2); | protected int getRowX(int row, int depth) { return depth * rightChildIndent; } |
if ((event.getPropertyName()).equals("rootVisible")) | String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) | public void propertyChange(PropertyChangeEvent event) { if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } } |
else if (property.equals(JTree.SELECTION_MODEL_PROPERTY)) { treeSelectionModel = tree.getSelectionModel(); treeSelectionModel.setRowMapper(treeState); } else if (property.equals(JTree.TREE_MODEL_PROPERTY)) { treeModel = tree.getModel(); treeModel.addTreeModelListener(treeModelListener); } | public void propertyChange(PropertyChangeEvent event) { if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } } | |
tree.scrollPathToVisible(lead); | tree.scrollPathToVisible(tree.getLeadSelectionPath()); | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); TreePath lead = tree.getLeadSelectionPath(); if (command.equals("selectPreviousChangeLead") || command.equals("selectPreviousExtendSelection") || command.equals("selectPrevious") || command.equals... |
tree.revalidate(); tree.repaint(); | public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; treeState.setExpandedState(event.getPath(), false); } | |
tree.revalidate(); tree.repaint(); | public void treeExpanded(TreeExpansionEvent event) { validCachedPreferredSize = false; treeState.setExpandedState(event.getPath(), true); } | |
selectPath(tree, newPath); | tree.setSelectionPath(newPath); tree.setAnchorSelectionPath(newPath); | public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo... |
selectPath(tree, newPath); | tree.setSelectionPath(newPath); | public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo... |
tree.stopEditing(); | tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); if (op != np) { Rectangle o = treeState.getBounds(event.getOldLeadSelectionPath(), new Rectangle()); Rectangle n = treeState.getBounds(event.getNewLeadSelectionPath(), new Rectangle()); if (o!=null) t... | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.stopEditing(); } |
selectPath(tree, current.getParentPath()); | { if (current == null) return; if (tree.isExpanded(current)) { tree.collapsePath(current); } else { TreePath parent = current.getParentPath(); if (parent != null && !(parent.getPathCount()==1 && !tree.isRootVisible()) ) tree.setSelectionPath(parent); } } | public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) selectPath(tree, current.getParentPath()); else if (e.getActionCommand().equals("selectChild")) { ... |
if (nc > 0) node = treeModel.getChild(node, 0); TreePath path = current.pathByAddingChild(node); selectPath(tree, path); | if (nc == 0 || treeState.isExpanded(current)) { int nextRow = tree.getLeadSelectionRow() + 1; if (nextRow <= tree.getRowCount()) tree.setSelectionRow(nextRow); } else { tree.expandPath(current); } | public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) selectPath(tree, current.getParentPath()); else if (e.getActionCommand().equals("selectChild")) { ... |
tree.repaint(editingComponent.getParent().getBounds()); | tree.repaint(bounds); | void finish() { editingPath = null; editingRow = - 1; stopEditingInCompleteEditing = false; isEditing = false; tree.removeAll(); validCachedPreferredSize = false; // Repaint the region, where was the editing component. tree.repaint(editingComponent.getParent().getBounds()); editingComp... |
tree.requestFocus(); | void finish() { editingPath = null; editingRow = - 1; stopEditingInCompleteEditing = false; isEditing = false; tree.removeAll(); validCachedPreferredSize = false; // Repaint the region, where was the editing component. tree.repaint(editingComponent.getParent().getBounds()); editingComp... | |
treeState.setRowHeight(maxHeight); | int getMaxHeight(JTree tree) { if (maxHeight != 0) return maxHeight; Icon e = UIManager.getIcon("Tree.openIcon"); Icon c = UIManager.getIcon("Tree.closedIcon"); Icon l = UIManager.getIcon("Tree.leafIcon"); int rc = getRowCount(tree); int iconHeight = 0; for (int row = 0; row < rc; row++) ... | |
return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION); | return (tree.getSelectionModel().getSelectionMode() != TreeSelectionModel.SINGLE_TREE_SELECTION) && ((event.getModifiersEx() & InputEvent.SHIFT_DOWN_MASK) != 0); | protected boolean isMultiSelectEvent(MouseEvent event) { return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION); } |
return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION); | return (tree.getSelectionModel().getSelectionMode() != TreeSelectionModel.SINGLE_TREE_SELECTION) && ((event.getModifiersEx() & InputEvent.CTRL_DOWN_MASK) != 0); | protected boolean isToggleSelectionEvent(MouseEvent event) { return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION); } |
for (int i = startIndex; i <= endIndex; i++) { TreePath path = treeState.getPathForRow(i); boolean isLeaf = treeModel.isLeaf(path.getLastPathComponent()); boolean isExpanded = tree.isExpanded(path); Rectangle bounds = getPathBounds(tree, path); paintHorizontalPartOfLeg(g, clip, insets, bounds, path, i, isExpanded, fa... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null) { int startIndex = tree.getClosestRowForLocation(clip.x, clip.y); int endIndex = tree.getClosestRowForLocat... | |
int n = endIndex - startIndex + 1; Rectangle[] bounds = new Rectangle[n]; boolean[] isLeaf = new boolean[n]; boolean[] isExpanded = new boolean[n]; TreePath[] path = new TreePath[n]; int k; k = 0; for (int i = startIndex; i <= endIndex; i++, k++) { path[k] = treeState.getPathForRow(i); isLeaf[k] = treeModel.isLeaf(pat... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null) { int startIndex = tree.getClosestRowForLocation(clip.x, clip.y); int endIndex = tree.getClosestRowForLocat... | |
int x = bounds.x - rightChildIndent + iconW / 2; if (x + iconW > bounds.x) x = bounds.x - rightChildIndent - gap; | int x = bounds.x - iconW - gap; | protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { if (shouldPaintExpand... |
paintHorizontalLine(g, tree, bounds.y + bounds.height / 2, bounds.x - gap - 2, bounds.x); | { Icon icon = getCurrentControlIcon(path); int iconW = icon.getIconWidth(); paintHorizontalLine(g, tree, bounds.y + bounds.height / 2, bounds.x - iconW/2 - gap, bounds.x - gap); } | protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boo... |
tree.hasFocus()); | focused); | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... |
paintVerticalLine(g, tree, parentBounds.x + gap + 2, | paintVerticalLine(g, tree, parentBounds.x + 2* gap, | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... |
if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSelection(); tree.addSelectionPath(path); | tree.setSelectionPath(path); | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSelection(); tree.addSelectionPath(path); tree.setLeadSelectionPath(pa... |
} else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) { } else { tree.addSelectionPath(path); tree.setLeadSelectionPath(path); tree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); } | tree.makeVisible(path); | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSelection(); tree.addSelectionPath(path); tree.setLeadSelectionPath(pa... |
tree.addSelectionPath(path); | { tree.setSelectionPath(path); tree.setAnchorSelectionPath(path); } | protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); tree.setAnchorSelectionPath(path); } ... |
maxHeight = 0; validCachedPreferredSize = false; | protected boolean startEditing(TreePath path, MouseEvent event) { // Force to recalculate the maximal row height. maxHeight = 0; // Force to recalculate the cached preferred size. validCachedPreferredSize = false; updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event ... | |
boolean delivered = deliver(this, r); | boolean delivered = super.deliver(r); | public boolean deliver(Receiver r) { boolean delivered = deliver(this, r); if (delivered) { return true; } // this peer has not redelivered any message but other peers may have messages to redeliver if (r instanceof RemoteQueue) { // this was a remote forward requ... |
delivered = deliver(this, r); | delivered = super.deliver(r); | public boolean deliver(Receiver r) { boolean delivered = deliver(this, r); if (delivered) { return true; } // this peer has not redelivered any message but other peers may have messages to redeliver if (r instanceof RemoteQueue) { // this was a remote forward requ... |
if (log.isTraceEnabled()) { log.trace("Calling afterSend"); } copy.afterSend(); | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.ge... | |
hasFirstLinePCs, pendingInlineLayers); | hasFirstLinePCs, pendingInlineLayers, markerData); | public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin... |
pendingInlineLayers); | pendingInlineLayers, markerData); | public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin... |
private static void positionVertically(LayoutContext c, Box container, LineBox current) { | private static void positionVertically( LayoutContext c, Box container, LineBox current, MarkerData markerData) { | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... |
if (c.getCurrentMarkerData() != null) { StrutMetrics strutMetrics = c.getCurrentMarkerData().getStructMetrics(); | if (markerData != null) { StrutMetrics strutMetrics = markerData.getStructMetrics(); | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... |
c.getCurrentMarkerData().setReferenceLine(current); c.setCurrentMarkerData(null); | markerData.setReferenceLine(current); | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... |
List pendingInlineLayers) { | List pendingInlineLayers, MarkerData markerData) { | private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ... |
positionVertically(c, block, current); | positionVertically(c, block, current, markerData); | private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ... |
ServerBrowserEndpoint(ServerSessionEndpoint session, int id, Channel destination, String messageSelector) | protected ServerBrowserEndpoint(ServerSessionEndpoint session, int id, Channel destination, String messageSelector) | 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... |
session.producers.remove(new Integer(this.id)); | session.removeBrowserDelegate(id); | public void close() throws JMSException { if (closed) { throw new IllegalStateException("Browser is already closed"); } iterator = null; session.producers.remove(new Integer(this.id)); JMSDispatcher.instance.unregisterTarget(new Integer(id)); closed = true; } |
if (root.layoutInProgress) { if(root.layout_context != null) { root.layout_context.stopRendering(); } while (root.layoutInProgress) { Uu.sleep(100); } | if (root.layout_context != null) { root.layout_context.stopRendering(); | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if(root.layout_context != null) { root.layout_context.stopRendering();... |
root.layoutInProgress = true; | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if(root.layout_context != null) { root.layout_context.stopRendering();... | |
root.layoutInProgress = false; | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); if(root.layout_context != null) { root.layout_context.stopRendering();... | |
root.layoutInProgress = true; | public void run() { // Uu.p("starting up another thread for layout"); root.layoutInProgress = true; root.doActualLayout(root.getGraphics()); root.layoutInProgress = false; // Uu.p("layout thread finished"); } | |
root.layoutInProgress = false; | public void run() { // Uu.p("starting up another thread for layout"); root.layoutInProgress = true; root.doActualLayout(root.getGraphics()); root.layoutInProgress = false; // Uu.p("layout thread finished"); } | |
public void startLayoutLoop() throws InterruptedException { | private void startLayoutLoop() throws InterruptedException { | public void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ... |
this.storeID = channel.getMessageStore().getStoreID(); this.messageStore = channel.getMessageStore(); | public RecoverableState(Channel channel, PersistenceManager pm) { super(channel, true); if (pm == null) { throw new IllegalArgumentException("RecoverableState requires a non-null persistence manager"); } this.pm = pm; // the channel isn't going to change, so cache its id ... | |
super.add(ref, tx); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); } pm.add(channelID, ref, tx); } if (tx != null) { addAddReferenceTask(tx); if (log.isTraceEnabled()) { log.trace("added an Add task to tra... | synchronized (ref) { super.add(ref, tx); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); } pm.add(channelID, ref, tx); } if (tx != null) { addAddReferenceTask(tx); if (log.isTraceEnabled()) { log.trace("add... | public void add(MessageReference ref, Transaction tx) throws Throwable { super.add(ref, tx); if (ref.isReliable()) { //Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : "... |
super.addFirst(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + " to database"); } pm.add(channelID, ref, null); if (log.isTraceEnabled()) { log.trace("added " + ref + " to database"); } | synchronized (ref) { super.addFirst(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + " to database"); } pm.add(channelID, ref, null); if (log.isTraceEnabled()) { log.trace("added " + ref + " to database"); } } | public void addFirst(MessageReference ref) throws Throwable { super.addFirst(ref); if (ref.isReliable()) { //Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + " to database"); } // TODO Q1 - have a method that enf... |
boolean memory = super.remove(ref); if (!memory) | synchronized (ref) | public boolean remove(MessageReference ref) throws Throwable { boolean memory = super.remove(ref); if (!memory) { return false; } if (ref.isReliable()) { boolean database = pm.remove(channelID, ref); if (database && log.isTraceEnabled()) { log.trace("removed " ... |
return false; | boolean memory = super.remove(ref); if (!memory) { return false; } if (ref.isReliable()) { boolean database = pm.remove(channelID, ref); if (database && log.isTraceEnabled()) { log.trace("removed " + ref + " from database"); } return database; } return memory; | public boolean remove(MessageReference ref) throws Throwable { boolean memory = super.remove(ref); if (!memory) { return false; } if (ref.isReliable()) { boolean database = pm.remove(channelID, ref); if (database && log.isTraceEnabled()) { log.trace("removed " ... |
if (ref.isReliable()) { boolean database = pm.remove(channelID, ref); if (database && log.isTraceEnabled()) { log.trace("removed " + ref + " from database"); } return database; } return memory; | public boolean remove(MessageReference ref) throws Throwable { boolean memory = super.remove(ref); if (!memory) { return false; } if (ref.isReliable()) { boolean database = pm.remove(channelID, ref); if (database && log.isTraceEnabled()) { log.trace("removed " ... | |
return ((ConnectionState)state.getParent().getParent()).getClient(); | return ((ConnectionState)state.getParent().getParent()).getRemotingConnection().getInvokingClient(); | protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent().getParent()).getClient(); } |
public BlockFormattingContext(PersistentBFC p) { persistentBFC = p; | public BlockFormattingContext(Box block, LayoutContext c) { persistentBFC = new PersistentBFC(block, c); | public BlockFormattingContext(PersistentBFC p) { persistentBFC = p; } |
Map viewMap = new Hashtable(); String name = JOptionPane.showInputDialog(ResourceManager.getString("step.add.name")); if (name == null || name.trim().length() == 0) return null; StepDescriptor step = DescriptorBuilder.createStep(name, Utils.getNextId(model.getContext())); step.setParent(workflow); workflow.addStep(st... | return createStep(workflow, null, model, location); | public static StepCell createStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { Map viewMap = new Hashtable(); // create new step String name = JOptionPane.showInputDialog(ResourceManager.getString("step.add.name")); if (name == null || name.trim().length() == 0) return nu... |
return createCoreMessage(messageID, false, 0, 0, (byte)4, null, null); | return createCoreMessage(messageID, false, 0, 0, (byte)4, null, null, 0); | public static CoreMessage createCoreMessage(long messageID) { return createCoreMessage(messageID, false, 0, 0, (byte)4, null, null); } |
byte[] payloadAsByteArray, | byte[] payloadAsByteArray, int persistentChannelCount, | public static Message createJBossMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, ... |
payloadAsByteArray, jmsType, correlationID, correlationIDBytes, | payloadAsByteArray, persistentChannelCount, jmsType, correlationID, correlationIDBytes, | public static Message createJBossMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, ... |
if (box.isChildrenExceedBounds()) { | if (!canBeSkipped(c, box)) { BoxRendering.paint(c, box, false, restyle); | public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); //BoxRendering.paint(c, box, false, restyle); //return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", fal... |
if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Shape oldclip = (Shape) c.getGraphics().getClip(); Rectangle box_rect = new Rectangle(box.x, box.y, box.getWidth(), box.height); Rectangle old_clip = c.getGraphics().getClipBounds(); box_rect = box_rect.union(... | public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); //BoxRendering.paint(c, box, false, restyle); //return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", fal... | |
log.info("There is no local queue"); | public Delivery handle(DeliveryObserver observer, MessageReference reference, Transaction tx) { //Favour the local queue log.info("router handling ref, it has " + this.queues.size()); if (localQueue != null) { //The only time the local queue won't accept is if the selec... | |
Relative.untranslateRelative(c); | Relative.untranslateRelative(c, true); | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... |
Relative.translateRelative(c); | Relative.translateRelative(c, true); | private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... |
if (editable) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground); | if (textComponent.getBackground() instanceof ColorUIResource) textComponent.setBackground(editable ? background : inactiveBackground); | protected void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("editable")) { boolean editable = ((Boolean) event.getNewValue()).booleanValue(); if (editable) textComponent.setBackground(background); else textComponent.setBackground(inact... |
throws NotImplementedException | public void requestTopDownLeftRightResend(ImageConsumer consumer) throws NotImplementedException { } | |
throws NotImplementedException | public void run() throws NotImplementedException { } | |
synchronized (consumers) { RenderedImage newImage; if (context == null) newImage = image.createDefaultRendering(); else newImage = image.createRendering(context); Raster newData = newImage.getData(); ColorModel colorModel = newImage.getColorModel(); if (colorModel == null) colorModel = ColorModel.getRGBdefault(); Sampl... | public void run() throws NotImplementedException { } | |
addConsumer(consumer); | public void startProduction(ImageConsumer consumer) { Thread t = new Thread(this, "RenderableImageProducerWorker"); t.start(); } | |
box.setFixedDescendant(true); | public static void positionFixedChild(Context c, Box box) { if (LayoutUtil.isFixed(c.getCss().getCascadedStyle(box.element, false))) {//already restyled by ContentUtil Point origin = c.getOriginOffset(); box.x = 0; box.y = 0; box.x -= origin.x; box.y -= ... | |
box.setFixedDescendant(true); | public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ... | |
String text_align = c.css.getStringProperty(containing_block,"text-align"); | String text_align = c.css.getStringProperty(containing_block,"text-align",true); | private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, BlockBox block) { //line_to_save.x = x; // account for text-align String text_align = c.css.getStringProperty(containing_block,"text-align"); //u.p("text-align = " + text_align); if(t... |
FSDerivedValue cval = dval; if (dval.isDeclaredInherit()) { if (_parent == null) { throw new XRRuntimeException("CalculatedStyle: trying to resolve an inherited property, " + "but have no parent CalculatedStyle (root of document?)--" + "property '" + cssName + "' may not be defined in CSS."); } else { cval = _par... | return dval; | private FSDerivedValue deriveValue(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value) { // Start assuming our computed value is the same as the specified value RGBColor rgb = (value.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR ? value.getRGBColorValue() : null); String s = (value... |
public static Element getDefaultSecurityConfig() throws Exception | public static String getDefaultSecurityConfig() throws Exception | public static Element getDefaultSecurityConfig() throws Exception { insureStarted(); return server.getDefaultSecurityConfig(); } |
public static void setDefaultSecurityConfig(Element config) throws Exception | public static void setDefaultSecurityConfig(String config) throws Exception | public static void setDefaultSecurityConfig(Element config) throws Exception { insureStarted(); server.setDefaultSecurityConfig(config); } |
public static void setSecurityConfig(String destName, Element config) throws Exception | public static void setSecurityConfig(String destName, String config) throws Exception | public static void setSecurityConfig(String destName, Element config) throws Exception { insureStarted(); server.setSecurityConfig(destName, config); } |
c.pushStyle(CascadedStyle.emptyCascadedStyle); | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | |
c.popStyle(); | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | |
} infos.add(info); | } else infos.add(info); | private List getStylesheets() { List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.USER_AGENT); info.setMed... |
prev_line.setParent(box); | public Box layoutChildren( Context c, Box box ) { if ( isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( isBlockLayout( box.getElement(), c ) ) { return super.layoutChildren( c, box ); } } ... | |
ServerManagement.deInit(); | public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); } | |
addImageComponent(e, jb); | public JComponent getCustomComponent(Element e, Context c) { JComponent cc = null; if (e == null) return null; if (e.getNodeName().equals("img")) { JButton jb = null; Image im = null; try { im = ImageUtil.loadImage(c, new URL(c.getRenderingContext... | |
} try { client.removeListener(this); log.debug("Listener removed from server"); callbackServer.stop(); log.debug("Closed callback server " + callbackServer.getInvokerLocator()); } catch(Throwable e) { log.warn("Failed to clean up callback handler/callback server", e); } | } | public synchronized void close() { closed = true; stopReceiver(); //There may still be pending calls to activateConsumer - we wait for them to complete (or fail) while (activationCount.get() != 0) { Thread.yield(); } // TODO Get rid of this (h... |
return state.messageAmount(); | return state.messageCount(); | public int getCurrentMessageCount() { return state.messageAmount(); } |
if (log.isTraceEnabled()) { log.trace("logging " + tx);} | if (trace) { log.trace("logging " + tx);} | protected void addTXRecord(Connection conn, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("logging " + tx);} PreparedStatement ps = null; String statement = "UNDEFINED"; ResultSet rs = null; boolean xa = false; int rows = -1; int formatID = -1; Str... |
if (log.isTraceEnabled()) { log.trace(selectTransactionId + (ltxID == Long.MIN_VALUE ? " failed!" : " returned " + txID)); } | if (trace) { log.trace(selectTransactionId + (ltxID == Long.MIN_VALUE ? " failed!" : " returned " + txID)); } | protected void addTXRecord(Connection conn, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("logging " + tx);} PreparedStatement ps = null; String statement = "UNDEFINED"; ResultSet rs = null; boolean xa = false; int rows = -1; int formatID = -1; Str... |
if (log.isTraceEnabled()) | if (trace) | protected void addTXRecord(Connection conn, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("logging " + tx);} PreparedStatement ps = null; String statement = "UNDEFINED"; ResultSet rs = null; boolean xa = false; int rows = -1; int formatID = -1; Str... |
if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } | if (trace) { log.trace("updating database for committing transaction " + tx); } | public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds... |
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(commitMessageRef1, getTxId(tx)) + " removed " + rows + " row(s)"); } | if (trace) { log.trace(JDBCUtil.statementToString(commitMessageRef1, getTxId(tx)) + " removed " + rows + " row(s)"); } | public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds... |
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(commitMessageRef2, null, getTxId(tx)) + " updated " + rows + " row(s)"); } | if (trace) { log.trace(JDBCUtil.statementToString(commitMessageRef2, null, getTxId(tx)) + " updated " + rows + " row(s)"); } | public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds... |
if (log.isTraceEnabled()) { log.trace(createTransaction + " succeeded"); } | if (trace) { log.trace(createTransaction + " succeeded"); } | protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createTransaction); if (log.isTraceEnable... |
if (log.isTraceEnabled()) { log.trace(createMessageReference + " succeeded"); } | if (trace) { log.trace(createMessageReference + " succeeded"); } | protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createTransaction); if (log.isTraceEnable... |
if (log.isTraceEnabled()) { log.trace(createIdxMessageRefTx + " succeeded"); } | if (trace) { log.trace(createIdxMessageRefTx + " succeeded"); } | protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createTransaction); if (log.isTraceEnable... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.