bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void route(EdgeView edge, java.util.List points) { PortView sourceView = (PortView)edge.getSource(); PortView targetView = (PortView)edge.getTarget(); if(sourceView==null || targetView==null) return; WorkflowPort sourcePort = (WorkflowPort)sourceView.getCell(); WorkflowPort targetPort = (Workfl...
public void route(EdgeView edge, java.util.List points) { PortView sourceView = (PortView)edge.getSource(); PortView targetView = (PortView)edge.getTarget(); if(sourceView==null || targetView==null) return; WorkflowPort sourcePort = (WorkflowPort)sourceView.getCell(); WorkflowPort targetPort = (Workfl...
30,618
public abstract boolean isFocusTraversable(JComboBox combobox);
public abstract boolean isFocusTraversable(JComboBox c);
30,619
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calcula...
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calcula...
30,620
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { JobDataMap data = jobExecutionContext.getJobDetail().getJobDataMap(); long id = data.getLong("entryId"); int triggerId = data.getInt("triggerId"); String username = data.getString("username"); ...
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { JobDataMap data = jobExecutionContext.getJobDetail().getJobDataMap(); long id = data.getLong("entryId"); int triggerId = data.getInt("triggerId"); String username = data.getString("username"); ...
30,621
public Object getResult() { return null; }
public Object getResult() { return new JobTimings(0, 0); }
30,622
public static LineMetrics getLineMetrics(Context c, InlineBox box) { String sample = "Test"; if ((box instanceof InlineTextBox) && !((InlineTextBox) box).getSubstring().equals("")) { sample = ((InlineTextBox) box).getSubstring(); } return c.getTextRenderer().getLineMetrics(c.g...
public static LineMetrics getLineMetrics(Context c, InlineBox box) { String sample = "Test"; if ((box instanceof InlineTextBox) && !((InlineTextBox) box).getSubstring().equals("")) { sample = ((InlineTextBox) box).getSubstring(); } return c.getTextRenderer().getLineMetrics(c.g...
30,625
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { return c.getTextRenderer().getLogicalBounds(c.getGraphics(), c.getCurrentFont(), box.getSubstring()); }
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { return c.getTextRenderer().getLogicalBounds(c.getGraphics(), box.getStyle().getFont(c.getCtx()), box.getSubstring()); }
30,626
public static int lineHeight(Context c) { CalculatedStyle style = c.getCurrentStyle(); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), c.getCurrentFont(), "Test").getHeight()); if (!style.isIdent(CSSName.LINE_HEIGHT, IdentValue.NORMAL)) { val = (int) s...
public static int lineHeight(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), c.getCurrentFont(), "Test").getHeight()); if (!style.isIdent(CSSName.LINE_HEIGHT, IdentValue.NORMAL)) { val ...
30,627
public static int lineHeight(Context c) { CalculatedStyle style = c.getCurrentStyle(); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), c.getCurrentFont(), "Test").getHeight()); if (!style.isIdent(CSSName.LINE_HEIGHT, IdentValue.NORMAL)) { val = (int) s...
public static int lineHeight(Context c) { CalculatedStyle style = c.getCurrentStyle(); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), box.getStyle().getFont(c.getCtx()), "Test").getHeight()); if (!style.isIdent(CSSName.LINE_HEIGHT, IdentValue.NORMAL)) { ...
30,628
protected void init(Element conditionalResult) { super.init(conditionalResult); Element conditions = XMLUtil.getChildElement(conditionalResult, "conditions"); conditionType = conditions.getAttribute("type"); NodeList conditionNodes = conditions.getElementsByTagName("condition"); i...
protected void init(Element conditionalResult) { super.init(conditionalResult); Element conditions = XMLUtil.getChildElement(conditionalResult, "conditions"); conditionType = conditions.getAttribute("type"); NodeList conditionNodes = conditions.getElementsByTagName("condition"); i...
30,629
protected void init(Element conditionalResult) { super.init(conditionalResult); Element conditions = XMLUtil.getChildElement(conditionalResult, "conditions"); conditionType = conditions.getAttribute("type"); NodeList conditionNodes = conditions.getElementsByTagName("condition"); i...
protected void init(Element conditionalResult) { super.init(conditionalResult); Element conditions = XMLUtil.getChildElement(conditionalResult, "conditions"); conditionType = conditions.getAttribute("type"); NodeList conditionNodes = conditions.getElementsByTagName("condition"); i...
30,630
public ConnectionStub(String objectID, InvokerLocator locator) { super(objectID, locator); }
public ConnectionStub(String objectID, InvokerLocator locator, String serverId) { super(objectID, locator); }
30,632
public Content getNextInFlowSibling(LayoutContext c, Content which) { for (Iterator i = getChildContent(c).iterator(); i.hasNext();) { Object obj = i.next(); if (obj == which) { while (i.hasNext()) { Object result = i.next(); if (Cont...
public Content getNextInFlowSibling(LayoutContext c, Content which) { for (Iterator i = getChildContent(c).iterator(); i.hasNext();) { Object obj = i.next(); if (obj == which) { while (i.hasNext()) { Object result = i.next(); if (Cont...
30,634
public Content getPreviousInFlowSibling(LayoutContext c, Content which) { List children = getChildContent(c); for (int i = 0; i < children.size(); i++) { Object obj = children.get(i); if (obj == which) { for (int j = i - 1; j >= 0; j--) { Object ...
public Content getPreviousInFlowSibling(LayoutContext c, Content which) { List children = getChildContent(c); for (int i = 0; i < children.size(); i++) { Object obj = children.get(i); if (obj == which) { for (int j = i - 1; j >= 0; j--) { Object ...
30,635
ServerProducerEndpoint(int id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
ServerProducerEndpoint(int id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
30,636
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (trace) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(new Integer(this.id)); JMSDis...
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (trace) { log.trace("close (noop)"); } this.sessionEndpoint.removeProducerDelegate(this.id); JMSDispatcher...
30,637
public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (trace) { log.trace("Sending message: " + m); } sessionEndpoint.connectionEndpoint.sendMessage(m, null); }
public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (trace) { log.trace("Sending message: " + m); } sessionEndpoint.getConnectionEndpoint().sendMessage(m, null); }
30,638
public void testDoneIsSetWithTransaction() throws Throwable { //Calling acknowledge on a SimpleDelivery //Should always result in done being set to true, //even if there is a transaction present. //Otherwise we can end up with a race condition where //the message is acked when still in fli...
public void testDoneIsSetWithTransaction() throws Throwable { //Calling acknowledge on a SimpleDelivery //Should always result in done being set to true, //even if there is a transaction present. //Otherwise we can end up with a race condition where //the message is acked when still in fli...
30,643
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); // stop the Messaging server and re-start it after I register an extra remoting invocation // handler with the connector ServerManage...
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); // stop the Messaging server and re-start it after I register an extra remoting invocation // handler with the connector ServerManage...
30,644
protected void tearDown() throws Exception { // remove the test invocation handler ServerManagement.removeServerInvocationHandler("DEFAULT_INVOCATION_HANDLER"); ServerManagement.undeployQueue("Queue"); ic.close(); super.tearDown(); }
protected void tearDown() throws Exception { // remove the test invocation handler ServerManagement.removeServerInvocationHandler("DEFAULT_INVOCATION_HANDLER"); ServerManagement.undeployQueue("MultipleServerInvocationHandlerTestQueue"); ic.close(); super.tearDown(); }
30,645
public void testMessageRoundTrip() throws Exception { Set subsystems = ServerManagement.getConnectorSubsystems(); assertEquals(2, subsystems.size()); assertTrue(subsystems.contains("DEFAULT_INVOCATION_HANDLER")); assertTrue(subsystems.contains(ServerPeer.REMOTING_JMS_SUBSYSTEM)); Connectio...
public void testMessageRoundTrip() throws Exception { Set subsystems = ServerManagement.getConnectorSubsystems(); assertEquals(2, subsystems.size()); assertTrue(subsystems.contains("DEFAULT_INVOCATION_HANDLER")); assertTrue(subsystems.contains(ServerPeer.REMOTING_JMS_SUBSYSTEM)); Connectio...
30,646
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
30,647
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
30,648
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
30,649
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
30,650
protected void setUp() throws Exception { TestWorkflow.configFile = "osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
protected void setUp() throws Exception { TestWorkflow.configFile = "/osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
30,651
public void testDoubleFunctionExecution() throws Exception { long id = workflow.initialize("file:double.xml", 1, new HashMap()); Map inputs = new HashMap(); inputs.put("test", this); workflow.doAction(id, 3, inputs); assertEquals("function executed unexpected number of times", 2, counter); ...
public void testDoubleFunctionExecution() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/double.xml").toString(), 1, new HashMap()); Map inputs = new HashMap(); inputs.put("test", this); workflow.doAction(id, 3, inputs); assertEquals("function exec...
30,652
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); if (! e.hasMoreElements()...
30,653
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
30,654
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
30,655
public void setCallbackClient(Client client) { callbackClient = client; // TODO not sure if this is the best way to do this, but the callbackClient needs to have // its "subsystem" set, otherwise remoting cannot find the associated // ServerInvocationHandler on the callback server ...
public void setCallbackClient(Client client) { callbackClient = client; // TODO not sure if this is the best way to do this, but the callbackClient needs to have // its "subsystem" set, otherwise remoting cannot find the associated // ServerInvocationHandler on the callback server ...
30,656
protected final CompiledMethod doCompileAbstract(VmMethod method, NativeStream nos, int level, boolean isBootstrap) { if (isBootstrap) { //System.out.println("Abstraxct method " + method); final CompiledMethod cm = new CompiledMethod(level); final AbstractX86Stream os = (AbstractX86Stream) nos; // Create the ...
protected final CompiledMethod doCompileAbstract(VmMethod method, NativeStream nos, int level, boolean isBootstrap) { if (isBootstrap) { //System.out.println("Abstraxct method " + method); final CompiledMethod cm = new CompiledMethod(level); final AbstractX86Stream os = (AbstractX86Stream) nos; // Create the ...
30,657
public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader, Vm.getVm().getHeapManager()); } }
public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader, Vm.getVm().getHeapManager(), getMagic()); } }
30,658
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx...
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx); } if (recoverable && d.getReference().isReliable()...
30,659
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx...
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); this.getCallback(tx).addDelivery(d); if (trace) { log.trace(this + " added " + d + " to memory on transac...
30,660
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes...
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes...
30,661
public long getCompressedSize() { return (known & KNOWN_CSIZE) != 0 ? compressedSize & 0xffffffffL : -1L; }
public long getCompressedSize() { return compressedSize; }
30,664
public void setCompressedSize(long csize) { if ((csize & 0xffffffff00000000L) != 0) throw new IllegalArgumentException(); this.compressedSize = (int) csize; this.known |= KNOWN_CSIZE; }
public void setCompressedSize(long csize) { if ((csize & 0xffffffff00000000L) != 0) throw new IllegalArgumentException(); this.compressedSize = (int) csize; this.known |= KNOWN_CSIZE; }
30,665
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argum...
30,667
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
30,668
public boolean cancel(Delivery d) throws Throwable { throw new NotYetImplementedException(); }
public void cancel(Delivery d) throws Throwable { throw new NotYetImplementedException(); }
30,669
void registerConnection(String clientConnectionID, ServerConnectionEndpoint endpoint);
void registerConnection(String clientSessionId, ServerConnectionEndpoint endpoint);
30,670
ServerConnectionEndpoint unregisterConnection(String clientConnectionID);
ServerConnectionEndpoint unregisterConnection(String clientSessionId);
30,671
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { Rectangle bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLoc...
30,672
public Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) { return null; }
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { return null; }
30,674
public void treeStructureChanged(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); }
public void treeStructureChanged(TreeModelEvent e) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); }
30,677
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
30,678
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
30,681
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { int size = treeModel.getChildCount(root); for (int j = 0; j < size; j++) { Object child = treeModel.getChild(root, j); if (no...
30,682
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(child, node); if (n ...
30,683
protected Color getHashColor() { return UIManager.getLookAndFeelDefaults().getColor("Tree.hash"); }
protected Color getHashColor() { return UIManager.getColor("Tree.hash"); }
30,685
int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(treeModel.getRoot(), current); count++; } while (current != null); return count; }
int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(root, current); count++; } while (current != null); return count; }
30,686
Object getParent(Object root, Object node) { if (root == null || node == null) return null; if (node instanceof TreeNode) return ((TreeNode) node).getParent(); return findNode(root, node); }
Object getParent(Object root, Object node) { if (root == null || node == null || root.equals(node)) return null; if (node instanceof TreeNode) return ((TreeNode) node).getParent(); return findNode(root, node); }
30,688
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
30,689
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
30,690
Object getPreviousVisibleNode(Object node) { updateCurrentVisiblePath(); if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 >= 0)...
Object getPreviousVisibleNode(Object node) { if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 >= 0) return nodes[i-1]...
30,691
public int getRowCount(JTree tree) { updateCurrentVisiblePath(); if (currentVisiblePath != null) return currentVisiblePath.getPathCount(); return 0; }
public int getRowCount(JTree tree) { if (currentVisiblePath != null) return currentVisiblePath.getPathCount(); return 0; }
30,692
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
30,693
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
30,694
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new ...
30,695
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (!isLeaf(row)) { bounds = getPathBounds(tree, path); if (hasControlIcons() && (mouseX ...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (!isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() &...
30,696
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null && currentVisiblePath != null) { Object root = treeM...
30,697
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
30,698
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
30,699
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean ...
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean ...
30,700
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
30,703
protected void setHashColor(Color color) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.put("Tree.hash", color); }
protected void setHashColor(Color color) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.put("Tree.hash", color); }
30,706
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); if (tr...
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); if (tr...
30,708
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); TreeCellEdit...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
30,709
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,711
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,712
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,713
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,714
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,715
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,716
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the nex...
30,717
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start) { if (c.isFirstLine...
30,720
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
30,721
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
30,722
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
30,723
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
30,724
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta...
30,725
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
30,726
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
30,727
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
30,728
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
30,729
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();...
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();...
30,731
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();...
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();...
30,732
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();...
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();...
30,733
private static void splitInlineBox(Context c, InlineBox ibox, List temp_list) { if (!(ibox instanceof InlineTextBox)) { temp_list.add(ibox.copy()); return; } InlineTextBox box = (InlineTextBox) ibox; String[] words = words(box); // don't split if only one wor...
private static void splitInlineBox(Context c, InlineBox ibox, List temp_list) { if (!(ibox instanceof InlineTextBox)) { temp_list.add(ibox.copy()); return; } InlineTextBox box = (InlineTextBox) ibox; String[] words = words(box); // don't split if only one wor...
30,734
public void testNonRecoverableState_1() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_1() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,735
public void testNonRecoverableState_10() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_10() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,736
public void testNonRecoverableState_10() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_10() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,737
public void testNonRecoverableState_11() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_11() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,738
public void testNonRecoverableState_11() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_11() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,739
public void testNonRecoverableState_12() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_12() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,740
public void testNonRecoverableState_12() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_12() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,741
public void testNonRecoverableState_13() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_13() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,742
public void testNonRecoverableState_13() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_13() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,743
public void testNonRecoverableState_14() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
public void testNonRecoverableState_14() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (state.acceptReliableMessages()) { // only state that does not accept reliable messages is tested now return; ...
30,744