rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
dataModel = model; dataModel.addTableModelListener(this); | revalidate(); repaint(); | public void setModel (TableModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? dataModel = model; dataModel.addTableModelListener(this); } |
public void setRowSelectionAllowed(boolean flag) | public void setRowSelectionAllowed(boolean r) | public void setRowSelectionAllowed(boolean flag) { rowSelectionAllowed = flag; } |
rowSelectionAllowed = flag; | rowSelectionAllowed = r; repaint(); | public void setRowSelectionAllowed(boolean flag) { rowSelectionAllowed = flag; } |
public void setSelectionMode (int selectionMode) | public void setSelectionMode(int s) | public void setSelectionMode (int selectionMode) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | selectionModel.setSelectionMode(s); repaint(); | public void setSelectionMode (int selectionMode) { throw new Error ("Not implemented"); } |
public void setSelectionModel (ListSelectionModel model) | public void setSelectionModel(ListSelectionModel s) | public void setSelectionModel (ListSelectionModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? selectionModel = model; selectionModel.addListSelectionListener(this); } |
if (model == null) | if (s == null) | public void setSelectionModel (ListSelectionModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? selectionModel = model; selectionModel.addListSelectionListener(this); } |
selectionModel = model; selectionModel.addListSelectionListener(this); | ListSelectionModel tmp = selectionModel; if (tmp != null) tmp.removeListSelectionListener(this); if (s != null) s.addListSelectionListener(this); selectionModel = s; | public void setSelectionModel (ListSelectionModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? selectionModel = model; selectionModel.addListSelectionListener(this); } |
public void setShowGrid (boolean showGrid) | public void setShowGrid(boolean s) | public void setShowGrid (boolean showGrid) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | setShowVerticalLines(s); setShowHorizontalLines(s); | public void setShowGrid (boolean showGrid) { throw new Error ("Not implemented"); } |
public void setTableHeader(JTableHeader newHeader) | public void setTableHeader(JTableHeader t) | public void setTableHeader(JTableHeader newHeader) { tableHeader = newHeader; } |
tableHeader = newHeader; | if (tableHeader != null) tableHeader.setTable(null); tableHeader = t; if (tableHeader != null) tableHeader.setTable(this); revalidate(); repaint(); | public void setTableHeader(JTableHeader newHeader) { tableHeader = newHeader; } |
throw new Error ("Not implemented"); | repaint(); | public void tableChanged (TableModelEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | repaint(); | public void valueChanged (ListSelectionEvent event) { throw new Error ("Not implemented"); } |
context.dropComplete(success); | public void dropComplete(boolean success) throws NotImplementedException { // FIXME: implement this } | |
if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(); Icon icon = StyleConsta... | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PrinterIsAcceptingJobs.class; } |
public final String getName() | public String getName() | public final String getName() { return "printer-is-accepting-jobs"; } |
singleton = new Provider (); | singleton = (Provider) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return new Provider(); } }); | public static synchronized Provider provider () { if (singleton == null) singleton = new Provider (); return singleton; } |
throws NotImplementedException | protected void installKeyboardActions() { // FIXME: Implement. } | |
textRect.y + metrics.getAscent()); | textRect.y + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
g.drawString(title, textRect.x, textRect.y + metrics.getAscent()); | g.drawString(title, textRect.x, textRect.y + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
textRect.x, textRect.y); | textRect.x, textRect.y + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
g.drawString(title, textRect.x, textRect.y); | g.drawString(title, textRect.x, textRect.y + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
textRect.y + 1); | textRect.y + 1 + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
g.drawString(title, textRect.x + 1, textRect.y + 1); | g.drawString(title, textRect.x + 1, textRect.y + 1 + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { t... |
throws NotImplementedException | protected void uninstallKeyboardActions() { // FIXME: Implement. } | |
public void stateChanged(ChangeEvent event); | void stateChanged(ChangeEvent event); | public void stateChanged(ChangeEvent event); |
void setView(Component c) { if (this.c != null) remove(c); this.c = c; add(c); } | public void setView(Component v) { add(v); fireStateChanged(); } | void setView(Component c) { if (this.c != null) remove(c); this.c = c; add(c); } |
{ Exception e = new Exception("createUI from ComponentUI should never be called"); e.printStackTrace(); System.exit(1); return null; } | { throw new Error( "javax.swing.plaf.ComponentUI does not implement createUI; call " + "createUI on a subclass."); } | public static ComponentUI createUI(JComponent c) { Exception e = new Exception("createUI from ComponentUI should never be called"); e.printStackTrace(); System.exit(1); return null; } |
if (peer != null) return peer.getGraphics().getFont(); | public Font getFont() { Font f = font; if (f != null) return f; Component p = parent; if (p != null) return p.getFont(); if (peer != null) return peer.getGraphics().getFont(); return null; } | |
public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } | public abstract Rectangle getTabBounds(JTabbedPane pane, int index); | public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } |
public int getTabRunCount(JTabbedPane pane) { return 0; } | public abstract int getTabRunCount(JTabbedPane pane); | public int getTabRunCount(JTabbedPane pane) { return 0; } |
listenerList.add(PropertyChangeListener.class, listener); | if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); | public void addPropertyChangeListener(PropertyChangeListener listener) { listenerList.add(PropertyChangeListener.class, listener); } |
{ String id = c.getUIClassID() + ".border"; Border s = UIManager.getBorder( id ); if (s != null) { c.setBorder( s ); } else { } } | { } | public void installUI(JComponent c) { String id = c.getUIClassID() + ".border"; Border s = UIManager.getBorder( id ); if (s != null) { c.setBorder( s ); //System.out.println("OK-INSTALL: " + this + ", ID=" + id + ",B="+s); } else { ///System.out.println("FAIL-INSTALL: " + this + ", " + id); }... |
public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, | public static String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
if (icon == null) | if (horizontalTextPosition == LEADING) | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
textIconGap = 0; iconR.width = 0; iconR.height = 0; | if (c.getComponentOrientation() == ComponentOrientation.RIGHT_TO_LEFT) horizontalTextPosition = RIGHT; else horizontalTextPosition = LEFT; | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
else | else if (horizontalTextPosition == TRAILING) | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
iconR.width = icon.getIconWidth(); iconR.height = icon.getIconWidth(); } textR.width = fm.stringWidth(text); textR.height = fm.getHeight(); switch (horizontalTextPosition) { case LEFT: textR.x = 0; iconR.x = textR.width + textIconGap; break; case RIGHT: iconR.x = 0; textR.x = iconR.width + textIconGap; break; case... | if (c.getComponentOrientation() == ComponentOrientation.RIGHT_TO_LEFT) horizontalTextPosition = LEFT; else horizontalTextPosition = RIGHT; | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
switch (verticalTextPosition) | if (horizontalAlignment == LEADING) | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
case TOP: textR.y = 0; iconR.y = textR.height + textIconGap; break; case BOTTOM: iconR.y = 0; textR.y = iconR.height + textIconGap; break; case CENTER: int centerLine = Math.max(textR.height, iconR.height) / 2; textR.y = centerLine - textR.height/2; iconR.y = centerLine - iconR.height/2; break; | if (c.getComponentOrientation() == ComponentOrientation.RIGHT_TO_LEFT) horizontalAlignment = RIGHT; else horizontalAlignment = LEFT; | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
Rectangle u = textR.union(iconR); int horizontalAdjustment = viewR.x; int verticalAdjustment = viewR.y; switch (verticalAlignment) | else if (horizontalAlignment == TRAILING) | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
case TOP: break; case BOTTOM: verticalAdjustment += (viewR.height - u.height); break; case CENTER: verticalAdjustment += ((viewR.height/2) - (u.height/2)); break; | if (c.getComponentOrientation() == ComponentOrientation.RIGHT_TO_LEFT) horizontalAlignment = LEFT; else horizontalAlignment = RIGHT; | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
switch (horizontalAlignment) { case LEFT: break; case RIGHT: horizontalAdjustment += (viewR.width - u.width); break; case CENTER: horizontalAdjustment += ((viewR.width/2) - (u.width/2)); break; } iconR.x += horizontalAdjustment; iconR.y += verticalAdjustment; textR.x += horizontalAdjustment; textR.y += verticalAdjust... | return layoutCompoundLabel(fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap); | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, ... |
public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; } | public abstract int tabForCoordinate(JTabbedPane pane, int x, int y); | public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; } |
listenerList.remove(PropertyChangeListener.class, listener); | if (changeSupport != null) changeSupport.removePropertyChangeListener(listener); | public void removePropertyChangeListener(PropertyChangeListener listener) { listenerList.remove(PropertyChangeListener.class, listener); } |
if (!stylePushed && block.element != null) { | if (!stylePushed) { | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... |
if (style.isIdent(CSSName.TOP, IdentValue.AUTO)) { | /*if (style.isIdent(CSSName.TOP, IdentValue.AUTO)) { | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... |
} | }*/ | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... |
int tp = (int) style.getFloatPropertyProportionalHeight(CSSName.TOP, c.getBlockFormattingContext().getHeight(), c.getCtx()); yoff += tp; | yoff += (int) style.getFloatPropertyProportionalHeight(CSSName.TOP, c.getBlockFormattingContext().getHeight(), c.getCtx()); } else { yoff = 0; | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... |
c.getGraphics().translate(-xoff, -yoff); | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... | |
c.getGraphics().translate(-xoff, -yoff); | public static void paintFixed(Context c, Box block, boolean restyle) { //Uu.p("painting fixed"); Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); // the offset is equal to the bfc origin m... | |
block.width - margin.left - margin.right, block.height - margin.top - margin.bottom); | width - margin.left - margin.right, height - margin.top - margin.bottom); | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = block.getMarginWidth(c, width); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, ... |
c.translateInsets(block); | c.translate(block.tx, block.ty); c.getGraphics().translate(block.tx, block.ty); | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = block.getMarginWidth(c, width); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, ... |
c.untranslateInsets(block); | c.getGraphics().translate(-block.tx, -block.ty); c.translate(-block.tx, -block.ty); | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = block.getMarginWidth(c, width); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, ... |
Color background_color = BoxRendering.getBackgroundColor(c); | Color background_color = c.getCurrentStyle().getBackgroundColor(); | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... |
if (block.attachment != null && block.attachment.equals("fixed")) { tileFill(c.getGraphics(), block.background_image, new Rectangle(left_insets, top_insets, back_width, back_height), xoff, -yoff, horiz, vert); } else { tileFill(c.getGraphics(), block.background_image, new Rectangle(left_insets, top_insets, back_width,... | tileFill(c.getGraphics(), block.background_image, new Rectangle(left_insets, top_insets, back_width, back_height), xoff, -yoff, horiz, vert); | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... |
if (_marginTopOverrideSet) { result.top = (int) _marginTopOverride; | if (this.marginTopOverrideSet) { result.top = (int) this.marginTopOverride; | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (_marginTopOverrideSet) { result.top = (int) _marginTopOverride; } if (_marginBottomOverrideSet) { result.bottom... |
if (_marginBottomOverrideSet) { result.bottom = (int) _marginBottomOverride; | if (this.marginBottomOverrideSet) { result.bottom = (int) this.marginBottomOverride; | public Border getMarginWidth(Context c, float parentWidth) { Border result = c.getCurrentStyle().getMarginWidth(parentWidth, parentWidth, c.getCtx()); if (_marginTopOverrideSet) { result.top = (int) _marginTopOverride; } if (_marginBottomOverrideSet) { result.bottom... |
if ((sides & TOP) == TOP) | if ((sides & TOP) == TOP) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((si... |
if ((sides & LEFT) == LEFT) | } if ((sides & LEFT) == LEFT) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((si... |
if ((sides & BOTTOM) == BOTTOM) | } if ((sides & BOTTOM) == BOTTOM) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((si... |
if ((sides & RIGHT) == RIGHT) | } if ((sides & RIGHT) == RIGHT) { | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((si... |
} | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((si... | |
public static void translateRelative(Context c) { | public static void translateRelative(Context c, boolean rendering) { | public static void translateRelative(Context c) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(left, top); } } |
if (rendering) { c.getGraphics().translate(left, top); } | public static void translateRelative(Context c) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(left, top); } } | |
public static void untranslateRelative(Context c) { | public static void untranslateRelative(Context c, boolean rendering) { | public static void untranslateRelative(Context c) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(-left, -top); } } |
if (rendering) { c.getGraphics().translate(-left, -top); } | public static void untranslateRelative(Context c) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(-left, -top); } } | |
String clientConnectionID = (String)client.getConfiguration().get(MetaDataConstants.CLIENT_CONNECTION_ID); if (clientConnectionID == null) { log.error("Can't find client connection id in meta-data for " + client); } else { if (t instanceof ClientDisconnectedException) { if (log.isTraceEnabled()) { log.trace("Client " ... | public void handleConnectionException(Throwable t, Client client) { } | |
this.connections = new ConcurrentHashMap(); | public ServerPeer(String serverPeerID) throws Exception { this.serverPeerID = serverPeerID; this.connFactoryDelegates = new HashMap(); // the default value to use, unless the JMX attribute is modified connectorName = new ObjectName("jboss.remoting:service=Connector,transport=socket"); ... | |
public InitialContext() { init(null); } | public InitialContext (Hashtable environment) throws NamingException { init (environment); } | public InitialContext() { init(null); } |
public Object lookup(String name) throws NamingException { return getURLOrDefaultInitCtx(name).lookup(name); } | public Object lookup (Name name) throws NamingException { try { return getURLOrDefaultInitCtx (name).lookup (name); } catch (CannotProceedException cpe) { Context ctx = NamingManager.getContinuationContext (cpe); return ctx.lookup (cpe.getRemainingName()); } } | public Object lookup(String name) throws NamingException { return getURLOrDefaultInitCtx(name).lookup(name); } |
public Context createSubcontext(String name) throws NamingException { return getURLOrDefaultInitCtx(name).createSubcontext(name); } | public Context createSubcontext (Name name) throws NamingException { return getURLOrDefaultInitCtx (name).createSubcontext (name); } | public Context createSubcontext(String name) throws NamingException { return getURLOrDefaultInitCtx(name).createSubcontext(name); } |
public void rebind (String name, Object obj) throws NamingException; | void rebind (Name name, Object obj) throws NamingException; | public void rebind (String name, Object obj) throws NamingException; |
public void setSecurityConfig(String destName, Element conf) throws JMSException | public void setSecurityConfig(boolean isQueue, String destName, Element conf) throws JMSException | public void setSecurityConfig(String destName, Element conf) throws JMSException { if (log.isTraceEnabled()) { log.trace("adding security configuration for destination " + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } catch(Exception e) {... |
if (log.isTraceEnabled()) { log.trace("adding security configuration for destination " + destName); } | if (log.isTraceEnabled()) { log.trace("adding security configuration for " + (isQueue ? "queue " : "topic ") + destName); } | public void setSecurityConfig(String destName, Element conf) throws JMSException { if (log.isTraceEnabled()) { log.trace("adding security configuration for destination " + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } catch(Exception e) {... |
securityConf.put(destName, m); | if (isQueue) { queueSecurityConf.put(destName, m); } else { topicSecurityConf.put(destName, m); } | public void setSecurityConfig(String destName, Element conf) throws JMSException { if (log.isTraceEnabled()) { log.trace("adding security configuration for destination " + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } catch(Exception e) {... |
public void unbind (String name) throws NamingException; | void unbind (Name name) throws NamingException; | public void unbind (String name) throws NamingException; |
public void rebind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).rebind(name, obj); } | public void rebind (Name name, Object obj) throws NamingException { getURLOrDefaultInitCtx (name).rebind (name, obj); } | public void rebind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).rebind(name, obj); } |
public void close() throws NamingException { throw new OperationNotSupportedException(); } | public void close () throws NamingException { myProps = null; defaultInitCtx = null; } | public void close() throws NamingException { throw new OperationNotSupportedException(); } |
if (log.isTraceEnabled()) { log.trace("Creating SecurityManager"); } | if (log.isTraceEnabled()) { log.trace("initializing SecurityManager"); } | public void init() throws NamingException { if (log.isTraceEnabled()) { log.trace("Creating SecurityManager"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEnabled()) { l... |
if (log.isTraceEnabled()) { log.trace("JaasSecurityManager is: " + mgr); } | if (log.isTraceEnabled()) { log.trace("JaasSecurityManager is " + mgr); } | public void init() throws NamingException { if (log.isTraceEnabled()) { log.trace("Creating SecurityManager"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEnabled()) { l... |
log.trace("JMS SecurityManager initialized"); | log.trace("SecurityManager initialized"); | public void init() throws NamingException { if (log.isTraceEnabled()) { log.trace("Creating SecurityManager"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEnabled()) { l... |
log.warn("Failed to lookup securityDomain=" + securityDomain, e); | log.warn("Failed to lookup securityDomain " + securityDomain, e); | public void init() throws NamingException { if (log.isTraceEnabled()) { log.trace("Creating SecurityManager"); } // Get the JBoss security manager from JNDI InitialContext ic = new InitialContext(); try { Object mgr = ic.lookup(securityDomain); if (log.isTraceEnabled()) { l... |
public void destroyAllDestinations() throws Exception | void destroyAllDestinations() throws Exception | public void destroyAllDestinations() throws Exception { Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) { String queueName = (String)iter.next(); unregisterDestination(true, queueName); } iter = topicNameToJNDI.keySet().iterator(); while (it... |
Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) | for(Iterator i = queueNameToJNDI.keySet().iterator(); i.hasNext(); ) | public void destroyAllDestinations() throws Exception { Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) { String queueName = (String)iter.next(); unregisterDestination(true, queueName); } iter = topicNameToJNDI.keySet().iterator(); while (it... |
String queueName = (String)iter.next(); unregisterDestination(true, queueName); | unregisterDestination(true, (String)i.next()); | public void destroyAllDestinations() throws Exception { Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) { String queueName = (String)iter.next(); unregisterDestination(true, queueName); } iter = topicNameToJNDI.keySet().iterator(); while (it... |
iter = topicNameToJNDI.keySet().iterator(); while (iter.hasNext()) | for(Iterator i = topicNameToJNDI.keySet().iterator(); i.hasNext(); ) | public void destroyAllDestinations() throws Exception { Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) { String queueName = (String)iter.next(); unregisterDestination(true, queueName); } iter = topicNameToJNDI.keySet().iterator(); while (it... |
String topicName = (String)iter.next(); unregisterDestination(false, topicName); | unregisterDestination(false, (String)i.next()); | public void destroyAllDestinations() throws Exception { Iterator iter = queueNameToJNDI.keySet().iterator(); while (iter.hasNext()) { String queueName = (String)iter.next(); unregisterDestination(true, queueName); } iter = topicNameToJNDI.keySet().iterator(); while (it... |
public void unbind(String name) throws NamingException { getURLOrDefaultInitCtx(name).unbind(name); } | public void unbind (Name name) throws NamingException { getURLOrDefaultInitCtx (name).unbind (name); } | public void unbind(String name) throws NamingException { getURLOrDefaultInitCtx(name).unbind(name); } |
public void clearSecurityConfig(String name) throws JMSException | public void clearSecurityConfig(boolean isQueue, String name) throws JMSException | public void clearSecurityConfig(String name) throws JMSException { if (log.isTraceEnabled()) { log.trace("clearing security configuration for destination " + name); } securityConf.remove(name); } |
if (log.isTraceEnabled()) { log.trace("clearing security configuration for destination " + name); } securityConf.remove(name); | if (log.isTraceEnabled()) { log.trace("clearing security configuration for " + (isQueue ? "queue " : "topic ") + name); } if (isQueue) { queueSecurityConf.remove(name); } else { topicSecurityConf.remove(name); } | public void clearSecurityConfig(String name) throws JMSException { if (log.isTraceEnabled()) { log.trace("clearing security configuration for destination " + name); } securityConf.remove(name); } |
getAttributes().put("descriptor", userObject); | public StepCell(StepDescriptor userObject) { super(userObject); setAttributes(new WorkflowAttributeMap(getAttributes())); GraphConstants.setEditable(attributes, true); descriptor = userObject; id = descriptor.getId(); name = descriptor.getName(); } | |
public boolean addReference(MessageReference ref) throws Throwable | public void addReference(MessageReference ref, Transaction tx) throws Throwable | public boolean addReference(MessageReference ref) throws Throwable { boolean first; synchronized (refLock) { ref.setOrdering(getNextReferenceOrdering()); if (ref.isReliable() && recoverable) { //Reliable message in a recoverable... |
boolean first; | if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { if (trace) { log.trace(this + " cannot handle reliable messages, dooming the transaction"); } tx.setRollbackOnly(); } else { synchronized (refLock) { ref.setOrdering(getNex... | public boolean addReference(MessageReference ref) throws Throwable { boolean first; synchronized (refLock) { ref.setOrdering(getNextReferenceOrdering()); if (ref.isReliable() && recoverable) { //Reliable message in a recoverable... |
synchronized (refLock) { ref.setOrdering(getNextReferenceOrdering()); if (ref.isReliable() && recoverable) { if (trace) { log.trace("adding " + ref + " to database non-transactionally"); } pm.addReference(channel.getChannelID(), ref, null); } first = addReferenceInMemory(ref); } return first; | public boolean addReference(MessageReference ref) throws Throwable { boolean first; synchronized (refLock) { ref.setOrdering(getNextReferenceOrdering()); if (ref.isReliable() && recoverable) { //Reliable message in a recoverable... | |
public JDBCPersistenceManager(DataSource ds, TransactionManager tm) throws Exception | public JDBCPersistenceManager() throws Exception | public JDBCPersistenceManager(DataSource ds, TransactionManager tm) throws Exception { this(ds, tm, null); } |
this(ds, tm, null); | this(null, null, null); | public JDBCPersistenceManager(DataSource ds, TransactionManager tm) throws Exception { this(ds, tm, null); } |
public SimpleStep(long id, long entryId, int stepId, int actionId, String owner, Date startDate, Date dueDate, Date finishDate, String status, long[] previousStepIds, String caller) { this.id = id; this.entryId = entryId; this.stepId = stepId; this.actionId = actionId; this.owner = owner; this.startDate = startDate; th... | public SimpleStep() { | public SimpleStep(long id, long entryId, int stepId, int actionId, String owner, Date startDate, Date dueDate, Date finishDate, String status, long[] previousStepIds, String caller) { this.id = id; this.entryId = entryId; this.stepId = stepId; this.actionId = actionId; this.owner ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.