rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
os.writeMOV(INTSIZE, S0, SP, argSlotCount * slotSize); os.writeMOV(INTSIZE, S0, S0, ObjectLayout.TIB_SLOT * slotSize); os.writeMOV(INTSIZE, EAX, S0, (VmArray.DATA_OFFSET + tibOffset) * slotSize); helper.invokeJavaMethod(methodRef.getSignature());
methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod();
public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); final int nofArgs = mts.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check parameter type Item...
pushReturnValue(methodRef.getSignature());
final int nofArgs = mts.getNoArguments(); for (int i = 0; i < nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } if (mts.isStatic()) { throw new IncompatibleClassChangeError( "Static method in invokevirtual"); } final VmInstanceMethod method = (VmInstanceMethod) mts; final int tibOffset = method.getTib...
public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); final int nofArgs = mts.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check parameter type Item...
int disp = stackFrame.getEbpOffset(index); IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.CONSTANT); if (i.getKind() == Item.CONSTANT) { os.writeMOV_Const(FP, disp, 0); } else { os.writeMOV(INTSIZE, FP, disp, i.getRegister()); i.release(eContext); }
int disp = stackFrame.getEbpOffset(index); IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.CONSTANT);
public final void visit_istore(int index) { int disp = stackFrame.getEbpOffset(index); IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.CONSTANT); if (i.getKind() == Item.CONSTANT) { //TODO: check whether constant is different from NULL (loaded with ldc) os.writeMOV_Const(FP, disp, 0); } else { os.wr...
}
if (i.getKind() == Item.CONSTANT) { os.writeMOV_Const(FP, disp, 0); } else { os.writeMOV(INTSIZE, FP, disp, i.getRegister()); i.release(eContext); } }
public final void visit_istore(int index) { int disp = stackFrame.getEbpOffset(index); IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.CONSTANT); if (i.getKind() == Item.CONSTANT) { //TODO: check whether constant is different from NULL (loaded with ldc) os.writeMOV_Const(FP, disp, 0); } else { os.wr...
vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(IntItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); helper.writePOP64(Register.EAX, Register.EDX);
vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(IntItem.createStack());
public final void visit_lcmp() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(IntItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wri...
Label ltLabel = new Label(curInstrLabel + "lt"); Label endLabel = new Label(curInstrLabel + "end");
helper.writePOP64(Register.EBX, Register.ECX); helper.writePOP64(Register.EAX, Register.EDX);
public final void visit_lcmp() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(IntItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wri...
os.writeXOR(Register.ESI, Register.ESI); os.writeSUB(Register.EAX, Register.EBX); os.writeSBB(Register.EDX, Register.ECX); os.writeJCC(ltLabel, X86Constants.JL); os.writeOR(Register.EAX, Register.EDX); os.writeJCC(endLabel, X86Constants.JZ); os.writeINC(Register.ESI); os.writeJMP(endLabel); os.setObjectRef(ltLabel); ...
Label ltLabel = new Label(curInstrLabel + "lt"); Label endLabel = new Label(curInstrLabel + "end"); os.writeXOR(Register.ESI, Register.ESI); os.writeSUB(Register.EAX, Register.EBX); os.writeSBB(Register.EDX, Register.ECX); os.writeJCC(ltLabel, X86Constants.JL); os.writeOR(Register.EAX, Register.EDX); os.writeJCC(endLa...
public final void visit_lcmp() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(IntItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wri...
vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); helper.writePOP64(Register.ESI, Register.EDI);
vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack());
public final void visit_lmul() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wr...
Label tmp1 = new Label(curInstrLabel + "$tmp1"); Label tmp2 = new Label(curInstrLabel + "$tmp2");
helper.writePOP64(Register.EBX, Register.ECX); helper.writePOP64(Register.ESI, Register.EDI);
public final void visit_lmul() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wr...
os.writeMOV(INTSIZE, Register.EAX, Register.EDI); os.writeOR(Register.EAX, Register.ECX); os.writeJCC(tmp1, X86Constants.JNZ); os.writeMOV(INTSIZE, Register.EAX, Register.ESI); os.writeMUL_EAX(Register.EBX); os.writeJMP(tmp2); os.setObjectRef(tmp1); os.writeMOV(INTSIZE, Register.EAX, Register.ESI); os.writeMUL_EAX(Regi...
Label tmp1 = new Label(curInstrLabel + "$tmp1"); Label tmp2 = new Label(curInstrLabel + "$tmp2"); os.writeMOV(INTSIZE, Register.EAX, Register.EDI); os.writeOR(Register.EAX, Register.ECX); os.writeJCC(tmp1, X86Constants.JNZ); os.writeMOV(INTSIZE, Register.EAX, Register.ESI); os.writeMUL_EAX(Register.EBX); os.writeJMP(t...
public final void visit_lmul() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP64(Register.EBX, Register.ECX); // Value 2 helper.wr...
IntItem key = vstack.popInt(); Register r = key.getRegister(); vstack.push(eContext); key.release(eContext); for (int i = 0; i < n; i++) { os.writeCMP(r, matchValues[i]); os.writeJCC(helper.getInstrLabel(addresses[i]), X86Constants.JE); } os.writeJMP(helper.getInstrLabel(defAddress));
IntItem key = vstack.popInt(); Register r = key.getRegister(); vstack.push(eContext); key.release(eContext);
public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eContext); key.release(eC...
}
for (int i = 0; i < n; i++) { os.writeCMP(r, matchValues[ i]); os.writeJCC(helper.getInstrLabel(addresses[ i]), X86Constants.JE); } os.writeJMP(helper.getInstrLabel(defAddress)); }
public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eContext); key.release(eC...
vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField();
vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext);
public final void visit_putstatic(VmConstFieldRef fieldRef) { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!sf.getDeclaringClass().isInitialized()) { ...
if (!sf.getDeclaringClass().isInitialized()) { writeInitializeClass(fieldRef, S0); } if (!fieldRef.isWide()) { helper.writePOP(T0); helper.writePutStaticsEntry(curInstrLabel, T0, sf); helper.writePutstaticWriteBarrier(sf, T0, S1); } else { helper.writePOP64(T0, T1); helper.writePutStaticsEntry64(curInstrLabel, T0, T1,...
fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!sf.getDeclaringClass().isInitialized()) { writeInitializeClass(fieldRef, S0); } if (!fieldRef.isWide()) { helper.writePOP(T0); helper.writePutStaticsEntry(curInstrLabel, T0, sf); helper.writePutstaticWriteBarrier(sf...
public final void visit_putstatic(VmConstFieldRef fieldRef) { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!sf.getDeclaringClass().isInitialized()) { ...
if (! isReplaced()) { calcMinMaxCSSMinMaxWidth(c, margin, border, padding); }
public void calcMinMaxWidth(LayoutContext c) { if (! minMaxCalculated) { RectPropertySet margin = getMargin(c); BorderPropertySet border = getStyle().getBorder(c); RectPropertySet padding = getPadding(c); int width = getCSSWidth(c); ...
if (! (child instanceof AnonymousBlockBox || child.getStyle().isAbsolute() || child.getStyle().isFixed() || child.getStyle().isFloated())) {
if (! (child instanceof AnonymousBlockBox)) {
private void calcMinMaxWidthBlockChildren(LayoutContext c) { int childMinWidth = 0; int childMaxWidth = 0; for (Iterator i = getChildIterator(); i.hasNext(); ) { BlockBox child = (BlockBox)i.next(); if (! (child instanceof AnonymousBlockBox || ...
iB.calcMinMaxWidth(c, lineWidth == 0);
iB.calcMinMaxWidth(c, getContentWidth(), lineWidth == 0);
private void calcMinMaxWidthInlineChildren(LayoutContext c) { int textIndent = (int)getStyle().getFloatPropertyProportionalWidth( CSSName.TEXT_INDENT, getContentWidth(), c); int childMinWidth = 0; int childMaxWidth = 0; int lineWidth = 0; Inl...
public int getCSSHeight(LayoutContext c) {
private int getCSSHeight(LayoutContext c) {
public int getCSSHeight(LayoutContext c) { if (! (this instanceof AnonymousBlockBox)) { if (! isAutoHeight()) { if (! getContainingBlock().getStyle().isAutoHeight()) { return (int)getStyle().getFloatPropertyProportionalHeight( CSSName.HE...
public int getCSSWidth(LayoutContext c) {
private int getCSSWidth(LayoutContext c) {
public int getCSSWidth(LayoutContext c) { if (! (this instanceof AnonymousBlockBox)) { if (! getStyle().isAutoWidth()) { return (int) getStyle().getFloatPropertyProportionalWidth( CSSName.WIDTH, getContainingBlock().getContentWidth(), c); } }...
if (! isReplaced()) { applyCSSMinMaxWidth(c); }
private void layoutBlock(LayoutContext c) { CalculatedStyle style = getStyle(); if (style.isFixedBackground()) { c.getRootLayer().setFixedBackground(true); } boolean pushedLayer = false; if (isRoot() || style.requiresLayer()) { pushedLayer = t...
public Layer(Box master) {
public Layer(Box master, boolean pseudoLayer) {
public Layer(Box master) { this(null, master); setStackingContext(true); }
setStackingContext(true);
setStackingContext(false);
public Layer(Box master) { this(null, master); setStackingContext(true); }
public void paint(RenderingContext c) {
public void paint(RenderingContext c, int originX, int originY) {
public void paint(RenderingContext c) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } updateAbsoluteLocations(); List blocks = new ArrayList(); List lines = new ArrayList(); collectBoxes(c, getMaster(), blocks, lines); // TODO root layer...
updateAbsoluteLocations();
updateAbsoluteLocations(originX, originY);
public void paint(RenderingContext c) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } updateAbsoluteLocations(); List blocks = new ArrayList(); List lines = new ArrayList(); collectBoxes(c, getMaster(), blocks, lines); // TODO root layer...
floater.paint(c, (int) floater.getAbsX(), (int) floater.getAbsY());
makePseudoLayer(floater).paint(c, floater.getAbsX(), floater.getAbsY());
private void paintFloats(RenderingContext c) { if (floats != null) { for (int i = floats.size() - 1; i >= 0; i--) { FloatedBlockBox floater = (FloatedBlockBox) floats.get(i); floater.paint(c, (int) floater.getAbsX(), (int) floater.getAbsY()); } } ...
layer.paint(c);
layer.paint(c, 0, 0);
private void paintLayers(RenderingContext c, List layers) { for (int i = 0; i < layers.size(); i++) { Layer layer = (Layer) layers.get(i); layer.paint(c); } }
private void updateAbsoluteLocations() { updateAbsoluteLocationsHelper(getMaster(), 0, 0);
private void updateAbsoluteLocations(int originX, int originY) { updateAbsoluteLocationsHelper(getMaster(), originX, originY);
private void updateAbsoluteLocations() { updateAbsoluteLocationsHelper(getMaster(), 0, 0); }
public static Color getBackgroundColor( Context c, Box box ) { return Boxing.getBackgroundColor( c, box );
public static Color getBackgroundColor(Context c) { return Boxing.getBackgroundColor(c);
public static Color getBackgroundColor( Context c, Box box ) { return Boxing.getBackgroundColor( c, box ); }
getBackgroundColor( c, block );
getBackgroundColor(c);
public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I...
ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate); initDelegate(); ConnectionDelegate cd = delegate.createConnectionDelegate(username, password); return new JBossConnection(cd, type);
ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger(); try { tccc.set(getClass().getClassLoader()); ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate); initDelegate(); ConnectionDelegate cd = delegate.createConnectionDelegate(username, password); return new JBossConnection(cd, ty...
protected JBossConnection createConnectionInternal(String username, String password, boolean isXA, int type) throws JMSException { ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate); initDelegate(); ConnectionDelegat...
return new TreePath(this.getPath(), path.length - 1);
if (parentPath == null) parentPath = new TreePath(this.getPath(), path.length - 1); return parentPath;
public TreePath getParentPath() { // If this path has only one element, then we return null. That // is what the JDK does. if (path.length <= 1) return null; return new TreePath(this.getPath(), path.length - 1); }
if (state != NOT_CLOSED)
if (state == IN_CLOSE || state == CLOSED)
protected synchronized void inuse() throws Throwable { if (state != NOT_CLOSED) { throw new IllegalStateException("The object is closed"); } ++inuseCount; }
activationCount.decrement();
synchronized (activationLock) { activationCount.decrement(); activationLock.notifyAll(); }
public void run() { try { if (log.isTraceEnabled()) { log.trace("activating consumer endpoint"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer endpoint activation failed", t); if (t.getCause() != n...
activationLock = new Object();
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); this.ackMode = ackMode; this.onMessageExecutor = executor; ...
while (activationCount.get() != 0)
synchronized (activationLock)
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(); } }
Thread.yield(); }
while (activationCount.get() != 0) { try { activationLock.wait(); } catch (InterruptedException e) { log.error("Thread interrupted", 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(); } }
waiting = false;
m = getMessageNow();
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { // ...
m = getMessageNow();
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { // ...
waiting = true;
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { // ...
waiting = false;
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { // ...
boolean handled = false; while (waiting) { handled = buffer.offer(processMessage(md), 0); if (handled) { break; } Thread.yield(); }
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); // Note -...
boolean handled = buffer.offer(processMessage(md), 500);
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); // Note -...
assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0);
assertTrue("Finished workflow should have no current steps", workflow.getCurrentSteps(id).size() == 0);
public void testSimpleFinish() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/finish1.xml").toString(), 100, null); workflow.doAction(id, 1, null); assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0); ...
assertEquals("Unexpected status of last history step", "LastFinished", ((Step) historySteps.get(0)).getStatus());
assertEquals("Unexpected number of history steps", 1, historySteps.size());
public void testSimpleFinish() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/finish1.xml").toString(), 100, null); workflow.doAction(id, 1, null); assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0); ...
((JComboBox)comp).setSelectedIndex(Integer.parseInt(value.toString()));
((JComboBox)comp).setSelectedItem(value);
public void getProperty(Component comp) { try { String name = (String)mappings.get(comp); if(name == null) return; Object value; if(source instanceof Map) { value = ((Map)source).get(name); } else { //if we try to index into a non-existent property, ...
value = new Integer(((JComboBox)comp).getSelectedIndex());
value = ((JComboBox)comp).getSelectedItem();
public void setProperty(Component comp) { String name = (String)mappings.get(comp); Object value = null; if(comp instanceof JFormattedTextField) { try { value = ((JFormattedTextField)comp).getFormatter().stringToValue(((JFormattedTextField)comp).getText()); } catch(ParseExcepti...
LogFactory.getLog(this.getClass()).info("Set " + name + "=" + value);
LogFactory.getLog(this.getClass()).debug("Set " + name + "=" + value);
public void setProperty(Component comp) { String name = (String)mappings.get(comp); Object value = null; if(comp instanceof JFormattedTextField) { try { value = ((JFormattedTextField)comp).getFormatter().stringToValue(((JFormattedTextField)comp).getText()); } catch(ParseExcepti...
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null);
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor());
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 = tr.createTransa...
public void cancelDeliveries(String asfReceiverID) throws JMSException
public void cancelDeliveries() throws JMSException
public void cancelDeliveries(String asfReceiverID) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (log.isTraceEnabled()) { log.trace("Cancelling messages"); } if (asfReceiverID != null) { //This means the session ...
if (asfReceiverID != null) { if (log.isTraceEnabled()) { log.trace("Cancelling the connectionconsumer's messages"); } this.connectionEndpoint.cancelDeliveriesForConnectionConsumer(asfReceiverID); }
public void cancelDeliveries(String asfReceiverID) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (log.isTraceEnabled()) { log.trace("Cancelling messages"); } if (asfReceiverID != null) { //This means the session ...
return ContentElementName;
String name = super.getName(); if (name == null) name = ContentElementName; return name;
public String getName() { return ContentElementName; }
Element root = getDefaultRootElement(); int start = root.getElementIndex(offset); int end = root.getElementIndex(offset + length); Element[] removed = new Element[end - start + 1]; for (int i = start; i <= end; i++) removed[i - start] = root.getElement(i);
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); // Here we set up the parameters for an ElementChange, if one // needs to be added to the DocumentEvent later E...
Element[] added = new Element[1]; added[0] = root.getElement(start);
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); // Here we set up the parameters for an ElementChange, if one // needs to be added to the DocumentEvent later E...
GapContent.UndoRemove changes = null; if (content instanceof GapContent) changes = (GapContent.UndoRemove) temp; if (changes != null && !(start == end)) { ElementEdit edit = new ElementEdit (root, start, removed, added); event.addEdit(edit); }
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); // Here we set up the parameters for an ElementChange, if one // needs to be added to the DocumentEvent later E...
String sql = "INSERT INTO " + entryTable + " (" + entryId + ", " + entryName + ", " + entryState + ") VALUES (?,?,?)";
String sql = "INSERT INTO " + entryTable + " (" + (generatedKeys ? "" : (entryId + ", ")) + entryName + ", " + entryState + ") VALUES (" + (generatedKeys ? "" : "?,") + "?,?)";
public WorkflowEntry createEntry(String workflowName) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (" + entryId + ", " + entryName + ", " + entryState + ") VALUES (...
stmt = conn.prepareStatement(sql);
stmt = prepareStatementWithKeys(conn, sql, entryId);
public WorkflowEntry createEntry(String workflowName) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (" + entryId + ", " + entryName + ", " + entryState + ") VALUES (...
long id = getNextEntrySequence(conn); stmt.setLong(1, id); stmt.setString(2, workflowName); stmt.setInt(3, WorkflowEntry.CREATED);
long id = 0; if (!generatedKeys) { id = getNextEntrySequence(conn); stmt.setLong(1, id); stmt.setString(2, workflowName); stmt.setInt(3, WorkflowEntry.CREATED); } else { stmt.setString(1, workflowName); stmt.setInt(2, WorkflowEntry.CREATED); }
public WorkflowEntry createEntry(String workflowName) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (" + entryId + ", " + entryName + ", " + entryState + ") VALUES (...
if (generatedKeys) { id = getGeneratedKey(stmt, entryId); }
public WorkflowEntry createEntry(String workflowName) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (" + entryId + ", " + entryName + ", " + entryState + ") VALUES (...
ServerManagement.deInit();
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployTopic("Topic"); ServerManagement.deInit(); super.tearDown(); }
Message.warn("impossible to copy ivy file to cache : "+ivyRef.getResource());
if (ivyRef == null) { Message.warn("impossible to create ivy file in cache for module : " + resolvedMrid); } else { Message.warn("impossible to copy ivy file to cache : "+ivyRef.getResource()); }
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
InitialContext ic = new InitialContext(); tr = new TransactionRepository(null); ic.close(); ms = new TransactionalMessageStore("message-store");
public void setUp() throws Exception { super.setUp(); }
ms = null; tr = null;
public void tearDown() throws Exception { super.tearDown(); }
ClassAdvisor[] advisors = new ClassAdvisor[6];
ClassAdvisor[] advisors = new ClassAdvisor[7];
private void initializeAdvisors() throws Exception { ClassAdvisor[] advisors = new ClassAdvisor[6]; for(int i = 0; i < domainNames.length; i++) { DomainDefinition domainDefinition = AspectManager.instance().getContainer(domainNames[i]); if (domainDefinition == null) { ...
consumerAdvisor = advisors[4]; genericAdvisor = advisors[5];
consumerAdvisor = advisors[4]; browserAdvisor = advisors[5]; genericAdvisor = advisors[6];
private void initializeAdvisors() throws Exception { ClassAdvisor[] advisors = new ClassAdvisor[6]; for(int i = 0; i < domainNames.length; i++) { DomainDefinition domainDefinition = AspectManager.instance().getContainer(domainNames[i]); if (domainDefinition == null) { ...
browserAdvisor = null;
private void tearDownAdvisors() throws Exception { for(int i = 0; i < domainNames.length; i++) { Dispatcher.singleton.unregisterTarget(domainNames[i]); } connFactoryAdvisor = null; connAdvisor = null; sessionAdvisor = null; producerAdvisor = null; }
offset_map = new HashMap();
public BlockFormattingContext(Box master) { this.master = master; left_floats = new ArrayList(); right_floats = new ArrayList(); }
offset_map.put(block,getOffset());
public void addLeftFloat(Box block) { left_floats.add(block); }
return 0;
Point fpt = (Point)offset_map.get(last_float); u.p("float origin = " + fpt); Point lpt = new Point(this.x,this.y); u.p("line origin = " + lpt); u.p("line = " + line); lpt.y-=line.y; u.p("line origin = " + lpt); u.p("float bottom = " + (fpt.y-last_float.height)); if(lpt.y > fpt.y-last_float.height) { u.p("returning; "...
public int getLeftFloatDistance(LineBox line) { //u.p("doing get left float dist. line = " + line); //u.p("line y = " + line.y); int xoff = 0; int yoff = 0; if(left_floats.size() == 0) { return 0; } // we only handle floats inside the same ...
u.p("returning: " + xoff);
public int getRightFloatDistance(LineBox line) { //u.p("doing get left float dist. line = " + line); //u.p("line y = " + line.y); int xoff = 0; int yoff = 0; if(left_floats.size() == 0) { return 0; } // we only handle floats inside the same...
URL url = this.getClass().getClassLoader().getResource("messaging-server-aop.xml");
URL url = this.getClass().getClassLoader().getResource("aop-messaging-server.xml");
private void loadAspects() throws Exception { URL url = this.getClass().getClassLoader().getResource("messaging-server-aop.xml"); AspectXmlLoader.deployXML(url); }
URL url = this.getClass().getClassLoader().getResource("messaging-server-aop.xml");
URL url = this.getClass().getClassLoader().getResource("aop-messaging-server.xml");
private void unloadAspects() throws Exception { URL url = this.getClass().getClassLoader().getResource("messaging-server-aop.xml"); AspectXmlLoader.undeployXML(url); }
public int getPriority()
public byte getPriority()
public int getPriority() { return priority; }
messageID = (Serializable)in.readObject();
messageID = (Serializable)in.readUTF();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = (Serializable)in.readObject(); reliable = in.readBoolean(); expiration = in.readLong(); timestamp = in.readLong(); headers = readMap(in); redelivered = in.readBoolean(); priorit...
priority = in.readInt();
priority = in.readByte();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = (Serializable)in.readObject(); reliable = in.readBoolean(); expiration = in.readLong(); timestamp = in.readLong(); headers = readMap(in); redelivered = in.readBoolean(); priorit...
int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++)
byte b = in.readByte(); if (b == NULL)
protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) ...
String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type)
return new HashMap(); } else { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++)
protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) ...
case BYTE : value = new Byte(in.readByte()); break; case SHORT : value = new Short(in.readShort()); break; case INT : value = new Integer(in.readInt()); break; case LONG : value = new Long(in.readLong()); break; case FLOAT : value = new Float(in.readFloat()); break; case DOUBLE : value = new Double(in.readDouble()); br...
String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) { case BYTE : value = new Byte(in.readByte()); break; case SHORT : value = new Short(in.readShort()); break; case INT : value = new Integer(in.readInt()); break; case LONG : value = new Long(in.readLong()); break; case FLOAT : valu...
protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) ...
m.put(key, value);
return m;
protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) ...
return m;
protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) ...
public void setPriority(int priority)
public void setPriority(byte priority)
public void setPriority(int priority) { this.priority = priority; }
out.writeObject(messageID);
out.writeUTF((String)messageID);
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(messageID); out.writeBoolean(reliable); out.writeLong(expiration); out.writeLong(timestamp); writeMap(out, headers); out.writeBoolean(redelivered); out.writeInt(priority); out.writeInt(del...
out.writeInt(priority);
out.writeByte(priority);
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(messageID); out.writeBoolean(reliable); out.writeLong(expiration); out.writeLong(timestamp); writeMap(out, headers); out.writeBoolean(redelivered); out.writeInt(priority); out.writeInt(del...
{ Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iterator it = entrySet.iterator(); it.hasNext(); )
{ if (map.isEmpty())
protected void writeMap(ObjectOutput out, Map map) throws IOException { Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iterator it = entrySet.iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry)it.next(); out.writeUTF((String)me.getKey()); Object ...
Map.Entry me = (Map.Entry)it.next(); out.writeUTF((String)me.getKey()); Object value = me.getValue(); if (value == null)
out.writeByte(NULL); } else { out.writeByte(MAP); Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iterator it = entrySet.iterator(); it.hasNext(); )
protected void writeMap(ObjectOutput out, Map map) throws IOException { Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iterator it = entrySet.iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry)it.next(); out.writeUTF((String)me.getKey()); Object ...
out.writeByte(OBJECT); out.writeObject(value); } else if (value instanceof String) { out.writeByte(STRING); out.writeUTF((String) value); } else if (value instanceof Integer) { out.writeByte(INT); out.writeInt(((Integer) value).intValue()); } else if (value instanceof Boolean) { out.writeByte(BOOLEAN); out.writeBoolean...
Map.Entry me = (Map.Entry)it.next(); out.writeUTF((String)me.getKey()); Object value = me.getValue(); if (value == null) { out.writeByte(NULL); } else if (value instanceof String) { out.writeByte(STRING); out.writeUTF((String) value); } else if (value instanceof Integer) { out.writeByte(INT); out.writeInt(((Integer) va...
protected void writeMap(ObjectOutput out, Map map) throws IOException { Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iterator it = entrySet.iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry)it.next(); out.writeUTF((String)me.getKey()); Object ...
log.debug("setup done");
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
designer.deleteWorkflow(name); }
try { designer.deleteWorkflow(name); } catch(FactoryException e1) { e1.printStackTrace(); } }
public void actionPerformed(ActionEvent e) { designer.deleteWorkflow(name); }
java.util.List contentList = box.getContent().getContent(c);
java.util.List contentList = box.getContent().getChildContent(c);
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get...
public static void layoutContent(final LayoutContext c, final Box block,
public static void layoutContent(final LayoutContext c, final BlockBox block,
public static void layoutContent(final LayoutContext c, final Box block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle().isR...
c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, listIndex, resetMargins, true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach();
if (o instanceof AnonymousBlockContent && relayoutData.isHasPendingInlines()) { XRLog.layout(Level.WARNING, "Unable to relayout anonymous block with pending inlines. Dropping rule.");
public static void layoutContent(final LayoutContext c, final Box block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle().isR...
childBox.detach(); childBox = secondTry;
c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, listIndex, resetMargins, true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach(); } else { childBox.detach(); childBox = secondTry; }
public static void layoutContent(final LayoutContext c, final Box block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle().isR...
private static void processPageBreakAvoidRun(final LayoutContext c, final Box block,
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block,
private static void processPageBreakAvoidRun(final LayoutContext c, final Box block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { bool...
boolean fits = relayoutOnNewPage(c, contentList, block,
RelayoutResult result = relayoutOnNewPage(c, contentList, block,
private static void processPageBreakAvoidRun(final LayoutContext c, final Box block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { bool...
if (fits) { block.detachChildren(runStart, offset); } else { block.detachChildren(offset+1, block.getChildCount()-1); block.height = heightBeforeRelayout;
if (! result.isCanceled()) { if (result.isFits()) { block.detachChildren(runStart, offset); } else { block.detachChildren(offset+1, block.getChildCount()-1); block.height = heightBeforeRelayout; }
private static void processPageBreakAvoidRun(final LayoutContext c, final Box block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { bool...
private static boolean relayoutOnNewPage( LayoutContext c, List contentList, Box block,
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block,
private static boolean relayoutOnNewPage( LayoutContext c, List contentList, Box block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPage...
return ! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY);
RelayoutResult result = new RelayoutResult(); result.setFits(! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY)); return result;
private static boolean relayoutOnNewPage( LayoutContext c, List contentList, Box block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPage...
return "JSlider";
String superParamStr = super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(",isInverted=").append(getInverted()); sb.append(",majorTickSpacing=").append(getMajorTickSpacing()); sb.append(",minorTickSpacing=").append(getMinorTickSpacing()); sb.append(",orientation="); if (orientation == HORIZONTAL) sb.a...
protected String paramString() { return "JSlider"; }
restriction.getConditions().add(conditions);
restriction.setConditionsDescriptor(conditions);
protected void updateView() { descriptor = (ActionDescriptor)getDescriptor(); RestrictionDescriptor restriction = descriptor.getRestriction(); if(restriction == null) { restriction = new RestrictionDescriptor(); restriction.setParent(descriptor); ConditionsDescriptor conditions = Descripto...
conditionsModel.setList(((ConditionsDescriptor)restriction.getConditions().get(0)).getConditions());
conditionsModel.setList(restriction.getConditionsDescriptor().getConditions());
protected void updateView() { descriptor = (ActionDescriptor)getDescriptor(); RestrictionDescriptor restriction = descriptor.getRestriction(); if(restriction == null) { restriction = new RestrictionDescriptor(); restriction.setParent(descriptor); ConditionsDescriptor conditions = Descripto...
logCause(e); throw new JBossJMSException(e.getMessage(), e);
logCause(e); throw new JBossJMSException("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 ...