rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
prev = ib; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | |
public static boolean isJustified(Context c, Element containing_block) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); | public static boolean isJustified(CalculatedStyle style) { String text_align = style.getStringProperty(CSSName.TEXT_ALIGN); | public static boolean isJustified(Context c, Element containing_block) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align != null && text_align.equals("justify")) { return true; } return false; } |
inspectorFrame.setSize( text_width, 600 ); | inspectorFrame.setSize( 400, 600 ); | public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); inspector = new D... |
panel.setPreferredSize( new Dimension( text_width, text_width ) ); | int width = 360; int height = 500; panel.setPreferredSize( new Dimension( width, height ) ); | public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_... |
scroll.setPreferredSize( new Dimension( text_width, text_width ) ); | scroll.setPreferredSize( new Dimension( width, height ) ); | public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_... |
*/ | public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_... | |
/* | public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_... | |
frame.setSize( text_width, 300 ); | public static void main( String[] args ) throws Exception { final JFrame frame = new HTMLTest( args ); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); frame.pack(); frame.setSize( text_width, 300 ); frame.show(); } | |
ms = new PagingMessageStore("shared-in-memory-store"); | ms = new SimpleMessageStore("shared-in-memory-store"); | public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("shared-in-memory-store"); jchannel = new JChannel(JGroupsUtil.generateProperties(50, 1)); jchannel2 = new JChannel(JGroupsUtil.generateProperties(900000, 1)); jchannel3 = new JChannel(JGroupsUtil.generatePro... |
public RpcServer(String name) | public RpcServer() | public RpcServer(String name) { this.name = name; servers = new HashMap(); } |
this.name = name; servers = new HashMap(); | this(""); | public RpcServer(String name) { this.name = name; servers = new HashMap(); } |
MessageReference ref = messageStore.getReference(messageID); | MessageReference ref = messageStore.reference(messageID); | public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer... |
ref.acquireReference(); | public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer... | |
messageRefs.addFirst(ref, ref.getPriority()); ref.acquireReference(); | messageRefs.addFirst(ref, ref.getPriority()); | public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer... |
AddReferenceTask task = addAddReferenceTask(tx); | AddReferenceCallback task = addAddReferenceTask(tx); | public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " non-transactionally" : " in transaction: " + tx)); } if (tx == null) { if (ref.isReliable() && !acceptReliableMessages) { throw ... |
init("", null); | actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); horizontalAlignment = CENTER; horizontalTextPosition = TRAILING; verticalAlignment = CENTER; verticalTextPosition = CENTER; borderPainted = true; contentAreaFilled = true; focusPainted = true; setFocu... | public AbstractButton() { init("", null); updateUI(); } |
return getModel().getMnemonic(); | ButtonModel mod = getModel(); if (mod != null) return mod.getMnemonic(); return -1; | public int getMnemonic() { return getModel().getMnemonic(); } |
actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); horizontalAlignment = CENTER; horizontalTextPosition = TRAILING; verticalAlignment = CENTER; verticalTextPosition = CENTER; borderPainted = true; contentAreaFilled = true; focusPainted = true; setFoc... | protected void init(String text, Icon icon) { // If text is null, we fall back to the empty // string (which is set using AbstractButton's // constructor). // This way the behavior of the JDK is matched. if(text != null) this.text = text; if (icon != null) default_icon = icon; actionListene... | |
return getModel().isSelected(); | ButtonModel mod = getModel(); if (mod != null) return mod.isSelected(); return false; | public boolean isSelected() { return getModel().isSelected(); } |
if (model != null) | public void setActionCommand(String actionCommand) { model.setActionCommand(actionCommand); } | |
getModel().setEnabled(b); | ButtonModel mod = getModel(); if (mod != null) mod.setEnabled(b); | public void setEnabled(boolean b) { super.setEnabled(b); getModel().setEnabled(b); } |
getModel().setSelected(s); | ButtonModel mod = getModel(); if (mod != null) mod.setSelected(s); | public void setSelected(boolean s) { getModel().setSelected(s); } |
public Node addFirst(Object object) | public boolean addFirst(Object object) | public Node addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return node; } |
return node; | return tail == node; | public Node addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return node; } |
public Node addLast(Object object) | public boolean addLast(Object object) | public Node addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return node; } |
return node; | return head == node; | public Node addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return node; } |
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) | public InMemoryMessageStore(Serializable storeID) | public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); } |
this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); | this(storeID, false); | public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); } |
if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } | if (trace) { log.trace(this + " referencing " + m); } | public MessageReference reference(Message m) { if (m.isReliable() && !acceptReliableMessages) { throw new IllegalStateException(this + " does not accept reliable messages (" + m + ")"); } if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } MessageHolder... |
new InvocationRequest(null, JMSRemotingConnection.JMS_CALLBACK_SUBSYSTEM, | new InvocationRequest(null, CallbackServerFactory.JMS_CALLBACK_SUBSYSTEM, | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { // Sanity check if (!(in instanceof ObjectInputStream)) { log.error("in is a " + in.getClass()); throw new IllegalStateException("InputStream must be an ObjectInputStream"); } ObjectInp... |
return true; } if (content instanceof AbsoluteBlockContent) { | private static boolean isEndOfBlock(InlineBox prev_inline, Content content) { // replaced elements aren't split, so done with this one if (content instanceof InlineBlockContent) { return true; } if (content instanceof FloatedBlockContent) { return true; } ... | |
BlockBox block = (BlockBox) box; | Box block = box; | public Box layoutChildren(Context c, Box box) { /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, ri... |
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { | public static void layoutContent(Context c, Box box, List contentList, Box block) { | public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg... |
if (new_inline.getSubstring().equals("")) break; | if (!(currentContent instanceof AbsoluteBlockContent)) { if (new_inline.getSubstring().equals("")) break; } | public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg... |
adjustLineHeight(curr_line, new_inline); | if (!(currentContent instanceof AbsoluteBlockContent)) { adjustLineHeight(curr_line, new_inline); } | public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg... |
prev_align_inline = new_inline; | if (!(currentContent instanceof AbsoluteBlockContent)) { prev_align_inline = new_inline; } | public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg... |
labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); | EdgeView view = (EdgeView)graph.getGraphLayoutCache().getMapping(edge, false); labelPos = view.getLabelPosition(); | public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE... |
CustomEdgeView view = (CustomEdgeView)(graph.getGraphLayoutCache().getMapping(edge, false)); if(view != null) | for(int i = 0; i < (view.getPointCount() - 2); i++) | public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE... |
for(int i = 0; i < (view.getPointCount() - 2); i++) { routingPoints.add(new Point((int)view.getPoint(i + 1).getX(), (int)view.getPoint(i + 1).getY())); } | routingPoints.add(new Point((int)view.getPoint(i + 1).getX(), (int)view.getPoint(i + 1).getY())); | public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE... |
public Point getLabelPosition() | public Point2D getLabelPosition() | public Point getLabelPosition() { return labelPos; } |
buf.append(" labelx=\"").append(labelPos.x).append('\"'); buf.append(" labely=\"").append(labelPos.y).append('\"'); | buf.append(" labelx=\"").append(labelPos.getX()).append('\"'); buf.append(" labely=\"").append(labelPos.getY()).append('\"'); | public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color... |
ref = ms.getReference(m.getMessageID()); ref.acquireReference(); | public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non... | |
ref.releaseReference(); | ref.release(); | public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non... |
ref = ms.getReference(m.getMessageID()); | ref = ms.reference((String)m.getMessageID()); | public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non... |
assertTrue(ref == ref2); | assertCorrectReference(ref2, ms.getStoreID(), m); | public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, n... |
{ MessageReference ref = ms.getReference(m[i].getMessageID()); ref.acquireReference(); assertCorrectReference(ref, ms.getStoreID(), m[i]); ref.releaseReference(); | { assertCorrectReference(refs[i], ms.getStoreID(), m[i]); refs[i].release(); | public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i... |
assertNull(ms.getReference(m[i].getMessageID())); | assertNull(ms.reference((String)m[i].getMessageID())); | public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i... |
ref = ms.getReference(m.getMessageID()); assertCorrectReference(ref, ms.getStoreID(), m); WeakReference control = new WeakReference(ref); ref = null; System.gc(); assertNull(control.get()); | public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | |
ref = ms.getReference(m.getMessageID()); | ref = ms.reference((String)m.getMessageID()); | public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... |
{ MessageReference ref = ms.getReference(m[i].getMessageID()); assertCorrectReference(ref, ms.getStoreID(), m[i]); | { assertCorrectReference(refs[i], ms.getStoreID(), m[i]); refs[i].release(); | public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... |
refs = null; System.gc(); | public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | |
assertNull(ms.getReference(m[i].getMessageID())); | assertNull(ms.reference((String)m[i].getMessageID())); | public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... |
ref = ms.getReference(m.getMessageID()); ref.acquireReference(); assertCorrectReference(ref, ms.getStoreID(), m); ref.releaseReference(); ref = ms.getReference(m.getMessageID()); | ref = ms.reference((String)m.getMessageID()); | public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ... |
assertTrue(ref == ref2); | assertCorrectReference(ref2, ms.getStoreID(), m); | public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl... |
{ MessageReference ref = ms.getReference(m[i].getMessageID()); ref.acquireReference(); assertCorrectReference(ref, ms.getStoreID(), m[i]); ref.releaseReference(); | { assertCorrectReference(refs[i], ms.getStoreID(), m[i]); refs[i].release(); | public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... |
assertNull(ms.getReference(m[i].getMessageID())); | assertNull(ms.reference((String)m[i].getMessageID())); | public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... |
ref = ms.getReference(m.getMessageID()); ref.acquireReference(); assertCorrectReference(ref, ms.getStoreID(), m); ref.releaseReference(); | ref.release(); | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... |
ref = ms.getReference(m.getMessageID()); | ref = ms.reference((String)m.getMessageID()); | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... |
assertTrue(ref2 == ref); | assertCorrectReference(ref2, ms.getStoreID(), m); | public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable... |
{ MessageReference ref = ms.getReference(m[i].getMessageID()); ref.acquireReference(); assertCorrectReference(ref, ms.getStoreID(), m[i]); ref.releaseReference(); | { refs[i].release(); | public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... |
assertNull(ms.getReference(m[i].getMessageID())); | assertNull(ms.reference((String)m[i].getMessageID())); | public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... |
log.info("storing message"); | protected void storeMessage(Message m, PreparedStatement ps) throws Exception { /* Reference counting code commented out until 1.2 // get the reference count from the database // TODO Probably this can be done smarter than that incrementing directly in the database ps ... | |
if(id_map == null) { id_map = new HashMap(); } | public Box getIDBox(String id) { return (Box)id_map.get(id); } | |
Thread.sleep(1000); | Thread.sleep(3000); | public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG... |
TextMessage m2 = (TextMessage)c.receive(5000); | TextMessage m2 = (TextMessage)c.receive(8000); | public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG... |
Thread.sleep(1000); | Thread.sleep(3000); | public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); p.send(m1); } catch(Exception e) { log.er... |
public boolean canInitialize(String workflowName, int initialAction) throws WorkflowException { | public boolean canInitialize(String workflowName, int initialAction) { | public boolean canInitialize(String workflowName, int initialAction) throws WorkflowException { return canInitialize(workflowName, initialAction, null); } |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; | public boolean canModifyEntryState(long id, int newState) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE... |
if ((currentState == WorkflowEntry.CREATED) || (currentState == WorkflowEntry.SUSPENDED)) { result = true; | if ((currentState == WorkflowEntry.CREATED) || (currentState == WorkflowEntry.SUSPENDED)) { result = true; } break; case WorkflowEntry.SUSPENDED: if (currentState == WorkflowEntry.ACTIVATED) { result = true; } break; case WorkflowEntry.KILLED: if ((currentState == WorkflowEntry.CREATED) || (currentState == Workfl... | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE... |
break; case WorkflowEntry.SUSPENDED: if (currentState == WorkflowEntry.ACTIVATED) { result = true; } break; case WorkflowEntry.KILLED: if ((currentState == WorkflowEntry.CREATED) || (currentState == WorkflowEntry.ACTIVATED) || (currentState == WorkflowEntry.SUSPENDED)) { result = true; } break; default: result =... | return result; } catch (StoreException e) { log.error("Error checking state modifiable for instance #" + id, e); | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE... |
return result; | return false; | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE... |
public int[] getAvailableActions(long id) throws WorkflowException { | public int[] getAvailableActions(long id) { | public int[] getAvailableActions(long id) throws WorkflowException { return getAvailableActions(id, new HashMap()); } |
public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); | public List getCurrentSteps(long id) { try { WorkflowStore store = getPersistence(); | public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); } |
return store.findCurrentSteps(id); | return store.findCurrentSteps(id); } catch (StoreException e) { log.error("Error checking current steps for instance #" + id, e); return Collections.EMPTY_LIST; } | public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); } |
public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); | public int getEntryState(long id) { try { WorkflowStore store = getPersistence(); | public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); } |
return store.findEntry(id).getState(); | return store.findEntry(id).getState(); } catch (StoreException e) { log.error("Error checking instance state for instance #" + id, e); } return WorkflowEntry.UNKNOWN; | public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); } |
public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); | public List getHistorySteps(long id) { try { WorkflowStore store = getPersistence(); | public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); } |
return store.findHistorySteps(id); | return store.findHistorySteps(id); } catch (StoreException e) { log.error("Error getting history steps for instance #" + id, e); } return Collections.EMPTY_LIST; | public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); } |
public PropertySet getPropertySet(long id) throws StoreException { PropertySet ps = getPersistence().getPropertySet(id); | public PropertySet getPropertySet(long id) { PropertySet ps = null; try { ps = getPersistence().getPropertySet(id); } catch (StoreException e) { log.error("Error getting propertyset for instance #" + id, e); } | public PropertySet getPropertySet(long id) throws StoreException { PropertySet ps = getPersistence().getPropertySet(id); return ps; } |
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); | public List getSecurityPermissions(long id) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); | public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne... |
if (passesConditions(security.getRestriction().getConditionType(), security.getRestriction().getConditions(), transientVars, ps)) { s.add(security.getName()); | if (passesConditions(security.getRestriction().getConditionType(), security.getRestriction().getConditions(), transientVars, ps)) { s.add(security.getName()); } | public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne... |
return s; | return Collections.EMPTY_LIST; | public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne... |
protected synchronized WorkflowDescriptor getWorkflow(String name) throws FactoryException { return ConfigLoader.getWorkflow(name); | protected synchronized WorkflowDescriptor getWorkflow(String name) { try { return ConfigLoader.getWorkflow(name); } catch (FactoryException e) { log.error("Error loading workflow " + name, e); } return null; | protected synchronized WorkflowDescriptor getWorkflow(String name) throws FactoryException { return ConfigLoader.getWorkflow(name); } |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return getWorkflow(workflowName); } |
public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); | public String getWorkflowName(long id) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); | public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } } |
if (entry != null) { return entry.getWorkflowName(); } else { return null; | if (entry != null) { return entry.getWorkflowName(); } } catch (StoreException e) { log.error("Error getting instance name for instance #" + id, e); | public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } } |
return null; | public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } } | |
public String[] getWorkflowNames() throws FactoryException { return ConfigLoader.getWorkflowNames(); | public String[] getWorkflowNames() { try { return ConfigLoader.getWorkflowNames(); } catch (FactoryException e) { log.error("Error getting workflow names", e); } return new String[0]; | public String[] getWorkflowNames() throws FactoryException { return ConfigLoader.getWorkflowNames(); } |
GraphicsEnvironment g = GraphicsEnvironment.getLocalGraphicsEnvironment(); graphicsConfiguration = g.getDefaultScreenDevice().getDefaultConfiguration(); | Window() { visible = false; // Windows are the only Containers that default to being focus // cycle roots. focusCycleRoot = true; setLayout(new BorderLayout()); addWindowFocusListener (new WindowAdapter () { public void windowGainedFocus (WindowEvent event) { if (windowF... | |
else if (e.id == ComponentEvent.COMPONENT_RESIZED) validate (); | void dispatchEventImpl(AWTEvent e) { // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || windowFocusListener != null || windowStateListener != null || (eventMask &... | |
return windowFocusOwner; | return null; | public Component getFocusOwner () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window activeWindow = manager.getActiveWindow (); // The currently-focused Component belongs to the active Window. if (activeWindow == this) return manager.getFocusOwner (); ... |
public void cancelDeliveries(String receiverID) throws JMSException | public void cancelDeliveries() throws JMSException | public void cancelDeliveries(String receiverID) throws JMSException { del.cancelDeliveries(receiverID); } |
del.cancelDeliveries(receiverID); | del.cancelDeliveries(); | public void cancelDeliveries(String receiverID) throws JMSException { del.cancelDeliveries(receiverID); } |
if ((content instanceof DomToplevelNode || block.getStyle().requiresLayer()) && block.getLayer() == null) { | if ((content instanceof DomToplevelNode || block.getStyle().requiresLayer())) { | private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o... |
c.pushLayer(block); if (c.isPrint() && content instanceof DomToplevelNode) { c.getLayer().addPage(c); | if (block.getLayer() == null) { c.pushLayer(block); if (c.isPrint() && content instanceof DomToplevelNode) { c.getLayer().addPage(c); } } else { c.pushLayer(block.getLayer()); | private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o... |
log.debug("theResult=" + theResults[0].getStep() + " " + theResults[0].getStatus()); | log.debug("theResult=" + theResults[0].getStep() + ' ' + theResults[0].getStatus()); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
for (int j = 0; j < availableAutoActions.length; j++) { int actionId = availableAutoActions[j]; doAction(entry.getId(), actionId, inputs); break; | if (availableAutoActions.length > 0) { doAction(entry.getId(), availableAutoActions[0], inputs); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); | public void testMultipleConcurrentConsumers() throws Exception { consumerConnection.start(); Session sess1 = consumerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sess2 = consumerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sess3 = consumerConnection.c... | |
final int count = 100; | final int count = 1000; | public void testStressReceiveOnTopic() throws Exception { if (log.isTraceEnabled()) log.trace("testStressReceiveOnTopic"); final int count = 100; consumerConnection.start(); new Thread(new Runnable() { public void run() { try { // this is... |
state.getMessageCallbackHandler().close(); | public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState state = getState(invocation); ConnectionState cState = (ConnectionState)state.getParent().getParent(); cState.getRemotingConnection().getCallbackManager().unregisterHandler(state.getConsumerID()); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.