rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
addRow(c, row, row_count ); | added_cells = addRow(c, row, row_count ); | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... |
row_count++; | if(added_cells) { row_count++; } | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... |
if (uri.startsWith("file:")) { | if (uri != null && uri.startsWith("file:")) { | public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change body of catch s... |
if (xr == null) { String notFound = "<h1>Document not found</h1>"; xr = XMLResource.load(new StringReader(notFound)); } | public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change body of catch s... | |
if (baseUrl == null) baseUrl = "error:FileNotFound"; | public void setBaseURL(String url) { baseUrl = resolveURI(url); //setBaseURL is called by view when document is loaded if (index >= 0) { String historic = (String) history.get(index); if (historic.equals(baseUrl)) return;//moved in history } index++; f... | |
return builder.parse( url.openStream() ); | Document doc = builder.parse( url.openStream() ); return doc; | protected Document loadDocument( final URL url ) throws Exception { /* CLEAN * XRDocument xrDoc = XRDocumentFactory.loadDocument(null, url); * return xrDoc.getDOMDocument(); */ DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); DocumentBuilder bui... |
JBossMessage mess = (JBossMessage)routable; | Message mess = (Message)routable; | public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... |
Object find = mess.getJMSProperties().get(id.name); | Object find = mess.getObjectProperty(id.name); | public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... |
private Object getHeaderFieldReferences(JBossMessage mess, String idName) | private Object getHeaderFieldReferences(Message mess, String idName) | private Object getHeaderFieldReferences(JBossMessage mess, String idName) throws JMSException { // JMS 3.8.1.1 -- Message header field references are restricted to: // JMSDeliveryMode, JMSPriority, JMSMessageID, // JMSTimeStamp, JMSCorrelationID and JMSType //... |
if (ip != null) | public synchronized void imageComplete(int status) { consumerStatus = status; setObserverStatus (); grabbing = false; ip.removeConsumer (this); notifyAll (); } | |
} catch (Exception ex) { ex.printStackTrace(); imageComplete(ImageConsumer.IMAGEABORTED); } | public synchronized void startGrabbing() { // Make sure we're not already grabbing. if (grabbing == false) { grabbing = true; grabberThread = new Thread () { public void run () { ip.startProduction (PixelGrabber.this); } }; grabberThread.start (); } } | |
catch (Exception ex) { ex.printStackTrace(); imageComplete(ImageConsumer.IMAGEABORTED); } } | public void run () { ip.startProduction (PixelGrabber.this); } | |
public ConnectionState(String serverID, ConnectionDelegate delegate, | public ConnectionState(int serverID, ConnectionDelegate delegate, | public ConnectionState(String serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, ResourceManager rm, MessageIdGenerator gen) throws Exception { super(null, delegate); if (log.isTraceEnabled())... |
drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement.depl... | |
ActionEvent event = new ActionEvent(this, 0, notifyAction); | ActionEvent event = new ActionEvent(this, 0, getText()); | protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, notifyAction); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); } |
return scrollOffset; | return horizontalVisibility.getValue(); | public int getScrollOffset() { //FIXME: this should return horizontalVisibility's value return scrollOffset; } |
scrollOffset = offset; | horizontalVisibility.setValue( Math.min(horizontalVisibility.getMaximum() - horizontalVisibility.getExtent(), offset)); | public void setScrollOffset(int offset) { //FIXME: this should actualy scroll the field if needed scrollOffset = offset; } |
if (log.isTraceEnabled()) { log.trace("Creating session, transacted: " + transacted + " ackMode: " + acknowledgmentMode + " Xa:" + isXA); } | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) { // create the dynamic proxy that implements SessionDelegate SessionDelegate sd = null; Serializable oid = serverPeer.getSessionAdvisor().getName(); String stackName = "Sessio... | |
super.drainDestination(cf, queue); super.drainDestination(cf, queue2); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.depl... | |
if (c.isPrint()) { root.getLayer().trimEmptyPages(c, intrinsic_size.height); } | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; } LayoutContext c = newLayoutContext((Graphics2D) g); synchronized (this) { ... | |
consumerID = in.readUTF(); | consumerID = in.readInt(); | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = in.readUTF(); consumerID = in.readUTF(); } |
out.writeUTF(consumerID); | out.writeInt(consumerID); | public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(messageID); out.writeUTF(consumerID); } |
case FieldExpression.DUE_DATE: Date dueDate = (Date) value; for (Iterator iterator = steps.iterator(); iterator.hasNext();) { SimpleStep step = (SimpleStep) iterator.next(); if (this.compareDate(step.getDueDate(), dueDate, operator)) { expressionResult = true; break; } } break; | private boolean checkExpression(long entryId, FieldExpression expression) throws StoreException { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); ... | |
ServerManagement.deInit(); | public void tearDown() throws Exception { // TODO uncomment these //Drain the queue while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; } producerConnection.close(); consumerConnection.close(); ServerManagement.unde... | |
return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); | return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id, null); | public List getSecurityPermissions(long id) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); } |
return new DefaultEditorKit(); | return new PlainEditorKit(); | public static EditorKit createEditorKitForContentType(String type) { return new DefaultEditorKit(); } |
public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, | public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, | public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; |
throws BadLocationException; | throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; case EAST: ret = pos + 1; break; case NORTH: break; case SOUTH: break; default: throw new IllegalArgumentException("Illegal value for d"); } return ret; } | public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; |
super.drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)ic.lookup("/Conne... | |
public ConnectionState(ConnectionDelegate delegate, String serverId) | public ConnectionState(ConnectionDelegate delegate, String serverId, String serverLocatorURI) throws Exception | public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be configurable ... |
String callbackServerURI = "socket: InvokerLocator callbackServerLocator = new InvokerLocator(callbackServerURI); serverURI = serverLocatorURI; InvokerLocator serverLocator = new InvokerLocator(serverLocatorURI); if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + server... | public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be configurable ... | |
c.untranslateInsets(box); | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate the x if (... | |
if (filter == null || filter.accept(r)) | if (filter == null || filter.accept(r.getMessage())) | public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); Routable r = d.getReference(); if (filter == null || filte... |
Routable r = (Routable)i.next(); if (filter == null || filter.accept(r)) | MessageReference r = (MessageReference)i.next(); if (filter == null || filter.accept(r.getMessage())) | public List undelivered(Filter filter) { if (log.isTraceEnabled()) { log.trace("Getting undelivered unreliable messages"); } List undelivered = new ArrayList(); synchronized(messageRefs) { for(Iterator i = messageRefs.iterator(); i.hasNext(); ) { Rou... |
registerConnectionFactory(this.getName(), clientID, jndiBindings, locatorURI, | registerConnectionFactory(getServiceName().toString(), clientID, jndiBindings, locatorURI, | public synchronized void startService() throws Exception { try { started = true; if (connectorObjectName == null) { throw new IllegalArgumentException("A Connector must be specified for each Connection Factory"); } if (serverPeerObjectN... |
connectionFactoryManager.unregisterConnectionFactory(this.getName(), clustered); | connectionFactoryManager.unregisterConnectionFactory(getServiceName().toString(), clustered); | public synchronized void stopService() throws Exception { try { started = false; connectionFactoryManager.unregisterConnectionFactory(this.getName(), clustered); connectorManager.unregisterConnector(connectorObjectName.getCanonicalName()); log.in... |
void unregisterConnectionFactory(String connectionFactoryID) throws Exception; | void unregisterConnectionFactory(int connectionFactoryID) throws Exception; | void unregisterConnectionFactory(String connectionFactoryID) throws Exception; |
private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { | private void calcMaxWidthFromLineLength(LayoutContext c, int cbWidth, boolean trim) { | private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... |
if (_firstLineWidth == 0 && length > 0) { | if (last == 0) { | private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... |
length += getStyle().getMarginBorderPadding(c, cbWidth, CalculatedStyle.RIGHT); | private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... | |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { | public void calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace) { | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
_minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); | _minWidth = _maxWidth = getInlineMBP(c, cbWidth) + getTextWidth(c, getText(trimLeadingSpace)); | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
calcMaxWidthFromLineLength(c, false); | calcMaxWidthFromLineLength(c, cbWidth, false); | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
calcMinWidthFromWordLength(c, false, true); calcMaxWidthFromLineLength(c, false); | calcMinWidthFromWordLength(c, cbWidth, false, true); calcMaxWidthFromLineLength(c, cbWidth, false); | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
calcMinWidthFromWordLength(c, trimLeadingSpace, false); calcMaxWidthFromLineLength(c, true); | calcMinWidthFromWordLength(c, cbWidth, trimLeadingSpace, false); calcMaxWidthFromLineLength(c, cbWidth, true); | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
_maxWidth = calcMinWidthFromWordLength(c, trimLeadingSpace, false); | _maxWidth = calcMinWidthFromWordLength(c, cbWidth, trimLeadingSpace, false); | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... |
LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { | LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS) { | private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... |
maxWidth += spaceWidth; | if (! includeWS) { maxWidth += spaceWidth; } | private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... |
int leftMBP = getStyle().getMarginBorderPadding(c, cbWidth, CalculatedStyle.LEFT); int rightMBP = getStyle().getMarginBorderPadding(c, cbWidth, CalculatedStyle.RIGHT); if (firstWord + leftMBP > _minWidth) { _minWidth = firstWord + leftMBP; } if (lastWord + rightMBP > _minWidth) { _minWidth = lastWord + rightMBP; } ma... | private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... | |
if (UIManager.get("CheckBox.gradient") != null) MetalUtils.paintGradient(g, x, y, getIconWidth(), getIconHeight(), SwingConstants.VERTICAL, "CheckBox.gradient"); | public void paintIcon(Component c, Graphics g, int x, int y) { border.paintBorder(c, g, x, y, getIconWidth(), getIconHeight()); JCheckBox cb = (JCheckBox) c; if (cb.isSelected()) drawCheck(c, g, x, y); } | |
else if (value < members[index][1]) | else if (value <= members[index][1]) | public boolean contains(int value) { // This only works on a normalized member array. for (int index = 0; index < members.length; index++) { if (value < members[index][0]) return false; else if (value < members[index][1]) return true; } return false; } |
throw new Error("not implemented"); | SetOfIntegerSyntax other = (SetOfIntegerSyntax) obj; if (other.members.length != members.length) return false; for (int i = 0; i < members.length; ++i) { if (members[i][0] != other.members[i][0] || members[i][1] != other.members[i][1]) return false; } return true; | public boolean equals(Object obj) { if (! (obj instanceof SetOfIntegerSyntax)) return false; throw new Error("not implemented"); } |
throw new Error("not implemented"); | return (int[][]) members.clone(); | public int[][] getMembers() { throw new Error("not implemented"); } |
throw new Error("not implemented"); | int result = 0; for (int i = 0; i < members.length; ++i) result += members[i][0] + members[i][1]; return result; | public int hashCode() { throw new Error("not implemented"); } |
throw new Error("not implemented"); | for (int i = 0; i < members.length; ++i) { if (x >= members[i][1]) continue; if (x < members[i][0]) return members[i][0]; return x + 1; } return -1; | public int next(int x) { throw new Error("not implemented"); } |
private static int[][] normalize(Vector vecMembers) | private static int[][] normalize(int[][] values, int size) | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
int current = 0; int[][] members = new int[vecMembers.size()][]; | Arrays.sort(values, 0, size, new Comparator() { public int compare(Object o1, Object o2) { int[] v1 = (int[]) o1; int[] v2 = (int[]) o2; if (v1[0] == v2[0]) return v1[1] - v2[1]; return v1[0] - v2[0]; } }); | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
while (vecMembers.size() > 0) | int outIndex = 0; for (int i = 0; i < size; ++i) | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
int[] range = (int[]) vecMembers.elementAt(0); for (int index = 1; index < vecMembers.size(); index++) | int save = i; while (i + 1 < size && values[i + 1][0] <= values[i][1] + 1) | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
int[] tmp = (int[]) vecMembers.elementAt(index); if (range[0] > tmp[0] || (range[0] == tmp[0] && range[0] > tmp[0])) range = tmp; | values[i][1] = Math.max(values[i][1], values[i + 1][1]); ++i; | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
members[current] = range; current++; | values[outIndex++] = values[save]; | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
return members; | int[][] result = new int[outIndex][]; System.arraycopy(values, 0, result, 0, outIndex); return result; | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... |
throw new Error("not implemented"); | StringBuilder sb = new StringBuilder(); for (int i = 0; i < members.length; ++i) { if (i > 0) sb.append(','); sb.append(members[i][0]); if (members[i][0] != members[i][1]) { sb.append('-'); sb.append(members[i][1]); } } return sb.toString(); | public String toString() { throw new Error("not implemented"); } |
conditions.add( c ); | if (_pe != null) { conditions.add(Condition.createUnsupportedCondition()); XRLog.match(Level.WARNING, "Trying to append conditions to pseudoElement " + _pe); } conditions.add(c); | private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); } |
public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, ... | public Selector appendChainedSelector(int axis, String elementName) { checkPseudoElement(); if (chainedSelector == null) { return (chainedSelector = new Selector(_pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName)); | public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), ... |
public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); | public Selector appendSiblingSelector(int axis, String elementName) { checkPseudoElement(); if (siblingSelector == null) { return (siblingSelector = new Selector(_pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName)); | public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); } else { return siblingSelector.appendS... |
XRLog.exception( "Trying to set more than one pseudo-element" ); | XRLog.match(Level.WARNING, "Trying to set more than one pseudo-element"); | public void setPseudoElement( String pseudoElement ) { if ( _pe != null ) { addUnsupportedCondition(); XRLog.exception( "Trying to set more than one pseudo-element" ); } else { _specificityD++; _pe = pseudoElement; } } |
url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { | url = this.getClass().getClassLoader().getResource("images/process-stop.png"); stop = new AbstractAction("Stop", new ImageIcon(url)) { | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { String url = new File(fd.getDirectory(), fd.getFile()).toURI().toURL().toString(); root.panel.loadPage(url); } } catch (Exception ex) { logger.info("error:" + ex); } | openAndShowFile(); | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
url = this.getClass().getClassLoader().getResource("images/StepBack24.gif"); backward = new AbstractAction("", new ImageIcon(url)) { | url = this.getClass().getClassLoader().getResource("images/go-previous.png"); backward = new EmptyAction("Back", "Go back one page", new ImageIcon(url)) { | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
url = this.getClass().getClassLoader().getResource("images/StepForward24.gif"); forward = new AbstractAction("", new ImageIcon(url)) { | url = this.getClass().getClassLoader().getResource("images/go-next.png"); forward = new EmptyAction("Forward", "Go forward one page", new ImageIcon(url)) { | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
url = this.getClass().getClassLoader().getResource("images/Refresh24.gif"); refresh = new EmptyAction("", new ImageIcon(url)) { | url = this.getClass().getClassLoader().getResource("images/view-refresh.png"); refresh = new EmptyAction("Refresh", "Refresh page", new ImageIcon(url)) { | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
url = this.getClass().getClassLoader().getResource("images/Refresh24.gif"); reload = new EmptyAction("", new ImageIcon(url)) { | url = this.getClass().getClassLoader().getResource("images/view-refresh.png"); reload = new EmptyAction("Reload", "Reload page", new ImageIcon(url)) { | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
print_preview = new EmptyAction("Print Preview") { public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive(true); } else { sharedContext.setPrint(true); sharedContext... | url = this.getClass().getClassLoader().getResource("images/document-print-preview.png"); print_preview = new EmptyAction("Print Preview", "Print preview", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { togglePrintPreview(); | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... |
} catch (Exception ex) { Uu.p(ex); } } }; url = this.getClass().getClassLoader().getResource("images/media-playback-start_16x16.png"); goToPage = new EmptyAction("Go", "Go to URL in address bar", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | |
try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { String url = new File(fd.getDirectory(), fd.getFile()).toURI().toURL().toString(); root.panel.loadPage(url); } } catch (Exception ex) { logger.info("error:" + ex); } | openAndShowFile(); | public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { ... |
try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive(true); } else { sharedContext.setPrint(true); sharedContext.setInteractive(false); } print_preview.putValue(Action.NAME, ! sharedContext.isPrint() ? "Print P... | togglePrintPreview(); | public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive... |
document.setCheckingCharacters(false); | public HTMLDocument parseDocument(Reader input) throws IOException { try { document = new DomHTMLDocument(); document.setCheckWellformedness(false); cursor = document; parse(input); DomHTMLDocument h = document; document = null; return h; ... | |
if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } | if (trace) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (log.i... |
if (log.isTraceEnabled()) { log.trace(messageId + " removed (or reference count decremented) on disk"); } | if (trace) { log.trace(messageId + " removed (or reference count decremented) on disk"); } | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (log.i... |
return new PortView(cell); | return new OutsidePortView(cell); | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { WorkflowPort port = (WorkflowPort)cell; if(port.getIndex() == 0) return new CustomPortView(cell); return new PortView(cell); } else if(model.isEdge(cell)) { //return new CustomEdgeView(cell)... |
if (me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0 | if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0 | Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candid... |
Destination topic = (Destination)ic.lookup("/messaging/topics/Topic"); | topic = (Destination)ic.lookup("/messaging/topics/Topic"); topic2 = (Destination)ic.lookup("/messaging/topics/Topic2"); | public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); ServerManagement.deployTopic("Topic"); InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/messaging/Connectio... |
consumer2 = consumerSession.createConsumer(topic2); | public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); ServerManagement.deployTopic("Topic"); InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/messaging/Connectio... | |
producerConnection.close(); consumerConnection.close(); | public void tearDown() throws Exception { // TODO uncomment these// producerConnection.close();// consumerConnection.close(); ServerManagement.undeployTopic("Topic"); ServerManagement.stopInVMServer(); super.tearDown(); } | |
inlineList.add(new InlineBlockContent((Element) curr, style)); | inlineList.add(new AbsoluteBlockContent((Element) curr, style)); | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getSty... |
*/ | static List resolveRunInContent(List pendingInlines, Element parentElement, Context c) { List inline = new LinkedList(); List block = new LinkedList(); for (Iterator i = pendingInlines.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof RunInContent) { ... | |
private int getFloatDistance(Box line, List floatsList) { int xoff = 0; if (floatsList.size() == 0) { return 0; } for (int i = 0; i < floatsList.size(); i++) { Box floater = (Box) floatsList.get(i); Point fpt = (Point) offset_map.get(floater); Point lpt = new Point(this.x, this.y); lpt.y -= line.y; if (lpt.y > fpt.y ... | private int getFloatDistance(Box line, List float_list) { return this._float_manager.getFloatDistance(line,float_list, this); } | private int getFloatDistance(Box line, List floatsList) { int xoff = 0; if (floatsList.size() == 0) { return 0; } for (int i = 0; i < floatsList.size(); i++) { Box floater = (Box) floatsList.get(i); Point fpt = (Point) offset_map.get(floater); ... |
public Point getOffset() { return new Point(x, y); } | public Point getOffset(Box box) { return (Point) offset_map.get(box); } | public Point getOffset() { //return new Point(x, y); return new Point(x, y); } |
valid = new Boolean(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); | valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); | public boolean selfTest() { if (valid == null) valid = new Boolean(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); return valid.booleanValue(); } |
List refInfos = pm.getReferenceInfos(channel.getChannelID(), 0); | List refInfos = pm.getReferenceInfos(channel.getChannelID(), 0, 0); | public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2... |
refInfos = pm.getReferenceInfos(channel.getChannelID(), 3); | refInfos = pm.getReferenceInfos(channel.getChannelID(), 0, 3); | public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2... |
refInfos = pm.getReferenceInfos(channel.getChannelID(), 10); | refInfos = pm.getReferenceInfos(channel.getChannelID(), 0, 10); | public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2... |
refInfos = pm.getReferenceInfos(channel.getChannelID(), 19); | refInfos = pm.getReferenceInfos(channel.getChannelID(), 2, 6); | public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2... |
assertEquals(10, refInfos.size()); assertEquals(ref1.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.get(0)).getMessageId()); assertEquals(ref2.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.get(1)).getMessageId()); assertEquals(ref3.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.g... | assertEquals(6, refInfos.size()); assertEquals(ref3.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.get(0)).getMessageId()); assertEquals(ref4.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.get(1)).getMessageId()); assertEquals(ref5.getMessageID(), ((PersistenceManager.ReferenceInfo)refInfos.ge... | public void testGetReferenceInfos() throws Exception { doSetup(false); Channel channel = new SimpleChannel(0, ms); Message[] m = createMessages(10); MessageReference ref1 = ms.reference(m[0]); ref1.setOrdering(0); MessageReference ref2 = ms.reference(m[1]); ref2... |
super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManagement.deployTopic("Topic"); topic = (Destination)initialContext.lookup("/messaging/topic... | super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManagement.deployQueue("Queue"); queue = (Destination)initialContext.lookup("/messaging/queue... | public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManageme... |
getGraphLayoutCache().setSelectsAllInsertedCells(false); | getGraphLayoutCache().setSelectsAllInsertedCells(false); getGraphLayoutCache().setSelectsLocalInsertedCells(false); | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); Tool... |
g.add(new SetGridSize(this, menuLocation, 1)); g.add(new SetGridSize(this, menuLocation, 2)); g.add(new SetGridSize(this, menuLocation, 4)); g.add(new SetGridSize(this, menuLocation, 8)); g.add(new SetGridSize(this, menuLocation, 12)); g.add(new SetGridSize(this, menuLocation, 16)); | g.add(new SetGridSize(this, 1)); g.add(new SetGridSize(this, 2)); g.add(new SetGridSize(this, 4)); g.add(new SetGridSize(this, 8)); g.add(new SetGridSize(this, 12)); g.add(new SetGridSize(this, 16)); | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); setMarqueeHandler(new WorkflowMarqueeHandler(this)); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); Tool... |
if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } | public void addChild( Box child ) { child.setParent( this ); boxes.add( child ); //u.p("added child: " + child + " to " + this); } | |
public ServerPeer(String serverPeerID, | public ServerPeer(int serverPeerID, | public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.