rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); }
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAExcepti...
tx.clearMessages();
if (tx != null) { tx.clearMessages(); }
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAExcepti...
if (tx.getState() == TxState.TX_PREPARED)
if ((tx == null) || tx.getState() == TxState.TX_PREPARED)
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAExcepti...
if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); }
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAExcepti...
if (trace) { log.trace("adding callback handler " + callbackHandler); }
log.debug("adding callback handler " + callbackHandler);
public void addListener(InvokerCallbackHandler callbackHandler) { if (trace) { log.trace("adding callback handler " + callbackHandler); } if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)callb...
if (trace) { log.trace("Invoking:" + invocation); }
if (trace) { log.trace("invoking " + invocation); }
public Object invoke(InvocationRequest invocation) throws Throwable { if (trace) { log.trace("Invoking:" + invocation); } MessagingMarshallable mm = (MessagingMarshallable)invocation.getParameter(); MethodInvocation i = (MethodInvocation)mm.getLoad(); //Put the ver...
if (trace) { log.trace("found calllback handler for session " + Util.guidToString(s)); }
log.debug("found calllback handler for remoting session " + Util.guidToString(s));
public Object invoke(InvocationRequest invocation) throws Throwable { if (trace) { log.trace("Invoking:" + invocation); } MessagingMarshallable mm = (MessagingMarshallable)invocation.getParameter(); MethodInvocation i = (MethodInvocation)mm.getLoad(); //Put the ver...
if (trace) { log.trace("removing callback handler: " + callbackHandler); }
log.debug("removing callback handler: " + callbackHandler);
public void removeListener(InvokerCallbackHandler callbackHandler) { if (trace) { log.trace("removing callback handler: " + callbackHandler); } synchronized(callbackHandlers) { for(Iterator i = callbackHandlers.keySet().iterator(); i.hasNext();) { Object key = i.next(); ...
if (trace) {log.trace("set ServerInvoker to " + this.invoker); }
log.debug("set ServerInvoker to " + this.invoker);
public void setInvoker(ServerInvoker invoker) { this.invoker = invoker; if (trace) {log.trace("set ServerInvoker to " + this.invoker); } }
if (trace) { log.trace("set MBeanServer to " + this.server); }
log.debug("set MBeanServer to " + this.server);
public void setMBeanServer(MBeanServer server) { this.server = server; if (trace) { log.trace("set MBeanServer to " + this.server); } }
public Object getContent(Context c);
public List getContent(Context c);
public Object getContent(Context c);
if (log.isTraceEnabled()) { log.trace("Creating session delegate"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
boolean transacted = ((Boolean)mi.getArguments()[0]).booleanValue();
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
boolean isXA = ((Boolean)mi.getArguments()[2]).booleanValue(); sessionDelegate.setTransacted(transacted);
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
sessionDelegate.setXA(isXA); if (log.isTraceEnabled()) { log.trace("XA?:" + isXA); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
if (transacted)
if (log.isTraceEnabled()) log.trace("I have " + unacked.size() + " messages in the session to ack"); Iterator iter = unacked.iterator(); try
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
return null;
while (iter.hasNext()) { AckInfo ackInfo = (AckInfo)iter.next(); getDelegate(mi).acknowledge(ackInfo.messageID, ackInfo.receiverID); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
else
finally
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
if (log.isTraceEnabled()) log.trace("I have " + unacked.size() + " messages in the session to ack"); Iterator iter = unacked.iterator(); try { while (iter.hasNext()) { AckInfo ackInfo = (AckInfo)iter.next(); getDelegate(mi).acknowledge(ackInfo.messageID, ackInfo.receiverID); } } finally { unacked.clear(); } return null...
unacked.clear();
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
if (transacted)
if (ackMode == Session.SESSION_TRANSACTED)
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
if (transacted)
if (this.ackMode == Session.SESSION_TRANSACTED)
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
else if ("getTransacted".equals(methodName)) { return new Boolean(transacted); } else if ("getXA".equals(methodName)) { return new Boolean(XA); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
else if ("setTransacted".equals(methodName)) { this.transacted = ((Boolean)mi.getArguments()[0]).booleanValue(); return null; } else if ("setXA".equals(methodName)) { this.XA = ((Boolean)mi.getArguments()[0]).booleanValue(); return null; }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace...
ConnectionDelegate cd = delegate.createConnectionDelegate(username, password);
ConnectionDelegate cd = delegate.createConnectionDelegate(username, password, null);
protected JBossConnection createConnectionInternal(String username, String password, boolean isXA, int type) throws JMSException { ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger(); try { tccc.set(getClass()...
SecurityManager sm = System.getSecurityManager(); if (sm != null)
if (clipboard != null) return clipboard; else
private static Clipboard getClipboard(JComponent component) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { sm.checkSystemClipboardAccess(); // We may access system clipboard. return component.getToolkit().getSystemClipboard(); } catch (Secu...
catch (SecurityException e)
catch (Exception e)
private static Clipboard getClipboard(JComponent component) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { sm.checkSystemClipboardAccess(); // We may access system clipboard. return component.getToolkit().getSystemClipboard(); } catch (Secu...
} } if (clipboard == null)
private static Clipboard getClipboard(JComponent component) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { sm.checkSystemClipboardAccess(); // We may access system clipboard. return component.getToolkit().getSystemClipboard(); } catch (Secu...
} }
private static Clipboard getClipboard(JComponent component) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { sm.checkSystemClipboardAccess(); // We may access system clipboard. return component.getToolkit().getSystemClipboard(); } catch (Secu...
if (obj == null || ! (obj instanceof CompoundName))
if (! (obj instanceof CompoundName))
public int compareTo (Object obj) { if (obj == null || ! (obj instanceof CompoundName)) throw new ClassCastException ("CompoundName.compareTo() expected CompoundName"); CompoundName cn = (CompoundName) obj; int last = Math.min (cn.elts.size (), elts.size ()); for (int i = 0; i < last; ++i) { St...
System.out.println("XXXXX channelID is " + channelID);
public List listMessagesNonDurableSub(long channelID, String selector) throws JMSException { System.out.println("XXXXX channelID is " + channelID); JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getMessagesFromNonDurabl...
children = new View[0];
public View(Element elem) { elt = elem; children = new View[0]; }
replace(getViewCount(), 1, array);
int offset = getViewCount(); replace(offset, 0, array);
public void append(View view) { View[] array = { view }; replace(getViewCount(), 1, array); }
for (int i = 0; i < children.length; i++)
int count = getViewCount(); for (int i = 0; i < count; i++)
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { for (int i = 0; i < children.length; i++) { View child = children[i]; forwardUpdateToView(child, ev, shape, vf); } }
View child = children[i];
View child = getView(i);
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { for (int i = 0; i < children.length; i++) { View child = children[i]; forwardUpdateToView(child, ev, shape, vf); } }
return parent != null ? parent.getContainer() : null;
if (parent == null) throw new AssertionError("The parent of a View must not be null."); return parent.getContainer();
public Container getContainer() { View parent = getParent(); return parent != null ? parent.getContainer() : null; }
else ((JComponent) getContainer()).revalidate();
public void preferenceChanged(View child, boolean width, boolean height) { if (parent != null) parent.preferenceChanged(this, width, height); else ((JComponent) getContainer()).revalidate(); }
replace(0, getViewCount(), null);
replace(0, getViewCount(), new View[0]);
public void removeAll() { replace(0, getViewCount(), null); }
View[] newChildren = new View[children.length + added.length - removed.length];
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); View[] newChildren = new View[children.length + added...
System.arraycopy(children, 0, newChildren, 0, index); System.arraycopy(children, index, added, 0, added.length); int index2 = index + removed.length; int len2 = children.length - index2; System.arraycopy(children, index2, newChildren, index + added.length, len2); children = newChildren;
View[] newChildren = new View[added.length]; for (int i = 0; i < added.length; ++i) newChildren[i] = vf.create(added[i]); replace(index, removed.length, newChildren);
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); View[] newChildren = new View[children.length + added...
public abstract int viewToModel(float x, float y, Shape a, Position.Bias b);
public abstract int viewToModel(float x, float y, Shape a, Position.Bias[] b);
public abstract int viewToModel(float x, float y, Shape a, Position.Bias b);
catch (RuntimeException e) { throw e; }
public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of this throw e; } catch(WrapperException e) { throw e.getPayload(); } catch...
this.workflow = workflow;
this.descriptor = workflow;
public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { super(ResourceManager.getString("step")); this.workflow = workflow; this.model = model; this.location = location; }
CellFactory.createStep(workflow, model, location);
CellFactory.createStep(descriptor, model, location);
public void actionPerformed(ActionEvent e) { CellFactory.createStep(workflow, model, location); }
Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null);
Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor());
public void testNonRecoverableQueueCrash() throws Throwable { //Non recoverable queue - eg temporary queue Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[200]; MessageReference[] refs = new MessageReference[200]...
Queue queue2 = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null);
Queue queue2 = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor());
public void testNonRecoverableQueueCrash() throws Throwable { //Non recoverable queue - eg temporary queue Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[200]; MessageReference[] refs = new MessageReference[200]...
Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null);
Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor());
public void testNonRecoverableQueueRemoveAllReferences() throws Throwable { //Non recoverable queue - eg temporary queue Queue queue = new Queue(1, ms, pm, true, false, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[200]; MessageReference[] refs = new M...
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 testQueueReloadWithSmallerFullSize() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageReference[] refs = new MessageReference[150]; //Send 150 p messages for (int i...
Queue queue2 = new Queue(1, ms, pm, true, false, 50, 20, 10, new QueuedExecutor(), null);
Queue queue2 = new Queue(1, ms, pm, true, false, 50, 20, 10, new QueuedExecutor());
public void testQueueReloadWithSmallerFullSize() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageReference[] refs = new MessageReference[150]; //Send 150 p messages for (int i...
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 testRecoverableQueueCrash() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[200]; MessageReference[] refs = new MessageReference[200]; //Send 150 np mesages for (int i = ...
Queue queue2 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null);
Queue queue2 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor());
public void testRecoverableQueueCrash() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[200]; MessageReference[] refs = new MessageReference[200]; //Send 150 np mesages for (int i = ...
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 testReloadWithLargerFullSize() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageReference[] refs = new MessageReference[150]; //Send 150 p messages for (int i = 0; ...
Queue queue2 = new Queue(1, ms, pm, true, false, 130, 20, 10, new QueuedExecutor(), null);
Queue queue2 = new Queue(1, ms, pm, true, false, 130, 20, 10, new QueuedExecutor());
public void testReloadWithLargerFullSize() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageReference[] refs = new MessageReference[150]; //Send 150 p messages for (int i = 0; ...
log.debug("#free workers: " + getFreeProcessors());
public final synchronized void add(Work work) { workCounter++; queue.add(work); }
conditionsModel.setList(descriptor.getConditions());
conditionsModel.setList(((ConditionsDescriptor)descriptor.getConditions().get(0)).getConditions());
protected void updateView() { JoinCell cell = (JoinCell)getCell(); JoinDescriptor descriptor = cell.getJoinDescriptor(); conditionsModel.setList(descriptor.getConditions()); connector.setSource(descriptor); // if (cell.getJoinDescriptor().getResult() != null) { // List list = new ArrayList(); ...
if (block.repeat.equals("repeat-Xx")) {
if (block.repeat == IdentValue.REPEAT_X) {
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
if (block.repeat.equals("repeat-y")) {
if (block.repeat == IdentValue.REPEAT_Y) {
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
if (block.repeat.equals("repeat")) {
if (block.repeat == IdentValue.REPEAT) {
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
Object o = ScriptVariableParser.translateVariables(owner, transientVars, ps);
Object o = variableResolver.translateVariables(owner, transientVars, ps);
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ...
oldStatus = ScriptVariableParser.translateVariables(oldStatus, transientVars, ps).toString();
oldStatus = variableResolver.translateVariables(oldStatus, transientVars, ps).toString();
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ...
status = ScriptVariableParser.translateVariables(status, transientVars, ps).toString();
status = variableResolver.translateVariables(status, transientVars, ps).toString();
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ...
Object dueDateObject = ScriptVariableParser.translateVariables(theResult.getDueDate(), transientVars, ps);
Object dueDateObject = variableResolver.translateVariables(theResult.getDueDate(), transientVars, ps);
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ...
mapEntry.setValue(ScriptVariableParser.translateVariables((String) mapEntry.getValue(), transientVars, ps));
mapEntry.setValue(getConfiguration().getVariableResolver().translateVariables((String) mapEntry.getValue(), transientVars, ps));
protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato...
if (resolver == null) { resolver = TypeResolver.getResolver();
if (typeResolver == null) { typeResolver = TypeResolver.getResolver();
public TypeResolver getResolver() { if (resolver == null) { resolver = TypeResolver.getResolver(); } return resolver; }
return resolver;
return typeResolver;
public TypeResolver getResolver() { if (resolver == null) { resolver = TypeResolver.getResolver(); } return resolver; }
mapEntry.setValue(ScriptVariableParser.translateVariables((String) mapEntry.getValue(), transientVars, ps));
mapEntry.setValue(getConfiguration().getVariableResolver().translateVariables((String) mapEntry.getValue(), transientVars, ps));
protected boolean passesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { String type = conditionDesc.getType(); Map args = new HashMap(conditionDesc.getArgs()); for (Iterator iterator = args.entrySet().iterator(); ...
this.resolver = resolver;
this.typeResolver = resolver;
public void setResolver(TypeResolver resolver) { this.resolver = resolver; }
mapEntry.setValue(ScriptVariableParser.translateVariables((String) mapEntry.getValue(), transientVars, ps));
mapEntry.setValue(getConfiguration().getVariableResolver().translateVariables((String) mapEntry.getValue(), transientVars, ps));
protected void verifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps) throws WorkflowException { for (Iterator iterator = validators.iterator(); iterator.hasNext();) { ValidatorDescriptor input = (ValidatorDescriptor) iterator.next(); if (input != null) { ...
public ConnectionState(ConnectionDelegate delegate,
public ConnectionState(String serverID, ConnectionDelegate delegate,
public ConnectionState(ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, ResourceManager rm, MessageIdGenerator gen) throws Exception { super(null, delegate); if (log.isTraceEn...
this.serverID = serverID;
public ConnectionState(ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, ResourceManager rm, MessageIdGenerator gen) throws Exception { super(null, delegate); if (log.isTraceEn...
ensureResolved(isHaltonfailure());
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == null) { _cache = iv...
if (_conf.equals("*")) {
if ("*".equals(_conf)) {
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == null) { _cache = iv...
if (_conf == null) { throw new BuildException("no conf provided for ivy retrieve task: It can either be set explicitely via the attribute 'conf' or via 'ivy.resolved.configurations' property or a prior call to <resolve/>"); }
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == null) { _cache = iv...
Color background_color = BoxRendering.getBackgroundColor( c, block ); if ( background_color != null ) {
Color background_color = BoxRendering.getBackgroundColor(c); if (background_color != null) {
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get...
this.subsystemToHandler = new HashMap();
public RemotingJMXWrapper(InvokerLocator locator) { this.locator = locator; }
public ServerInvocationHandler addInvocationHandler(String s, ServerInvocationHandler h)
public ServerInvocationHandler addInvocationHandler(String subsystem, ServerInvocationHandler h)
public ServerInvocationHandler addInvocationHandler(String s, ServerInvocationHandler h) throws Exception { if (connector != null) { return connector.addInvocationHandler(s, h); } return null; }
return connector.addInvocationHandler(s, h);
subsystemToHandler.put(subsystem, h); return connector.addInvocationHandler(subsystem, h);
public ServerInvocationHandler addInvocationHandler(String s, ServerInvocationHandler h) throws Exception { if (connector != null) { return connector.addInvocationHandler(s, h); } return null; }
public void removeInvocationHandler(String s) throws Exception
public void removeInvocationHandler(String subsystem) throws Exception
public void removeInvocationHandler(String s) throws Exception { connector.removeInvocationHandler(s); }
connector.removeInvocationHandler(s);
subsystemToHandler.remove(subsystem); connector.removeInvocationHandler(subsystem);
public void removeInvocationHandler(String s) throws Exception { connector.removeInvocationHandler(s); }
subsystemToHandler.clear();
public void stop() throws Exception { if (connector == null) { return; } connector.stop(); connector = null; }
block.width = img.getWidth(null); block.height = img.getHeight(null);
if(img != null) { block.width = img.getWidth(null); block.height = img.getHeight(null); } else { block.width = 50; block.height = 50; }
public Box layout(Context c, Element elem) { BlockBox block = (BlockBox)createBox(c,elem); // load the image Border border = getBorder(c, block); Border padding = getPadding(c, block); Border margin = getMargin(c, block); Image img = getImage(c,elem); ...
c.getGraphics().drawImage(img,box.x,box.y,null);
if(img != null) { c.getGraphics().drawImage(img,box.x,box.y,null); }
public void paintComponent(Context c, Box box) { Image img = getImage(c,box.node); c.getGraphics().drawImage(img,box.x,box.y,null); }
return new ImageIcon(new URL(src)).getImage();
img = new ImageIcon(new URL(src)).getImage();
public static Image loadImage(Context c, String src) throws MalformedURLException { if(src.startsWith("http")) { return new ImageIcon(new URL(src)).getImage(); } else { //u.p("src = " + src); URL base = c.getBaseURL(); if(base != null) { URL i...
return new ImageIcon(image_url).getImage();
img = new ImageIcon(image_url).getImage(); } else { img = new ImageIcon(src).getImage();
public static Image loadImage(Context c, String src) throws MalformedURLException { if(src.startsWith("http")) { return new ImageIcon(new URL(src)).getImage(); } else { //u.p("src = " + src); URL base = c.getBaseURL(); if(base != null) { URL i...
return new ImageIcon(src).getImage();
public static Image loadImage(Context c, String src) throws MalformedURLException { if(src.startsWith("http")) { return new ImageIcon(new URL(src)).getImage(); } else { //u.p("src = " + src); URL base = c.getBaseURL(); if(base != null) { URL i...
if(img != null && img.getWidth(null) == -1) { return null; } return img;
public static Image loadImage(Context c, String src) throws MalformedURLException { if(src.startsWith("http")) { return new ImageIcon(new URL(src)).getImage(); } else { //u.p("src = " + src); URL base = c.getBaseURL(); if(base != null) { URL i...
public ClientBrowserDelegate(String objectID)
public ClientBrowserDelegate(int objectID)
public ClientBrowserDelegate(String objectID) { super(objectID); }
return "BrowserDelegate[" + Util.guidToString(id) + "]";
return "BrowserDelegate[" + id + "]";
public String toString() { return "BrowserDelegate[" + Util.guidToString(id) + "]"; }
if (fixed) {
if (style.isFixed()) {
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s...
if (absolute) {
if (style.isAbsolute()) {
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s...
if (floated) {
if (style.isFloated()) {
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s...
sb.append("-" + repeat); sb.append("-" + attachment);
sb.append("-" + style.getBackgroundRepeat()); sb.append("-" + style.getBackgroundAttachment());
public String getTestString() { StringBuffer sb = new StringBuffer(); // type sb.append(" " + this.hashCode() + " "); if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { s...
public CalculatedStyle getStyle() {
public CascadedStyle getStyle() {
public CalculatedStyle getStyle() { return _style; }
sb.append("<title>Directory listing of ");
sb.append("<title>Directory listing for ");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<p>the contents of ");
sb.append("<h2>Index of ");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append(" are:</p>");
sb.append("</h2>"); sb.append("<hr />");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<ul>");
String loc = null; try { File parent = file.getParentFile(); if ( parent != null ) { loc = GeneralUtil.htmlEscapeSpace(file.getParentFile().toURL().toExternalForm()).toString(); sb.append("<a class='dir' href='" + loc + "'>Up to higher level directory</a>"); } } catch (MalformedURLException e) { } sb.append("<table st...
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<li>");
File f = files[i]; if ( f.isHidden() ) continue; long len = f.length(); String lenDesc = ( len > 1024 ? new DecimalFormat("#,###KB").format(len / 1024) : ""); String lastMod = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a").format(new Date(f.lastModified())); sb.append("<tr>");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<a class='dir' href='" + files[i].getAbsolutePath() + "'>" + files[i].getName() + "</a>");
cls = "dir";
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<a class='file' href='" + files[i].getAbsolutePath() + "'>" + files[i].getName() + "</a>");
cls = "file";
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("</li>");
try { loc = GeneralUtil.htmlEscapeSpace(files[i].toURL().toExternalForm()).toString(); sb.append("<td><a class='" + cls + "' href='" + loc + "'>" + files[i].getName() + "</a></td>" + "<td>" + lenDesc + "</td>" + "<td>" + lastMod + "</td>" ); } catch (MalformedURLException e) { sb.append(files[i].getAbsolutePath()); } s...
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...