rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
}
for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); } graphics.setColor(color); graphics.drawChars(data,...
public void drawChars(char[] data, int offset, int value2, int x, int y) { // TODO } // drawChars()
return false;
return graphics.drawImage(image, x, y, observer);
public boolean drawImage(Image image, int x, int y, ImageObserver observer) { return false; // TODO }
graphics.drawLine(x1, y1, x2, y2);
public void drawLine(int x1, int y1, int x2, int y2) { // TODO }
public void drawOval(int x, int y, int w, int h)
public void drawOval(int x, int y, int width, int height)
public void drawOval(int x, int y, int w, int h) { // TODO }
graphics.drawOval(x, y, width, height);
public void drawOval(int x, int y, int w, int h) { // TODO }
graphics.drawPolygon(xpoints, ypoints, npoints);
public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) { // TODO }
graphics.drawPolyline(xpoints, ypoints, npoints);
public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) { // TODO }
public void drawRect(int x, int y, int w, int h)
public void drawRect(int x, int y, int width, int height)
public void drawRect(int x, int y, int w, int h) { // TODO } // drawRect()
}
for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.drawRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawRect(x, y, width, height); sleep(debugFlashTime); } graphics.setColor(color); graphics.drawRect(x, y, width, height); ...
public void drawRect(int x, int y, int w, int h) { // TODO } // drawRect()
public void drawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void drawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) { // TODO }
graphics.drawRoundRect(x, y, width, height, arcWidth, arcHeight);
public void drawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) { // TODO }
public void drawString(String string, int s, int y)
public void drawString(String string, int x, int y)
public void drawString(String string, int s, int y) { // TODO }
graphics.drawString(string, x, y);
public void drawString(String string, int s, int y) { // TODO }
public void fill3DRect(int x, int y, int w, int h, boolean raised)
public void fill3DRect(int x, int y, int width, int height, boolean raised)
public void fill3DRect(int x, int y, int w, int h, boolean raised) { // TODO }
graphics.fill3DRect(x, y, width, height, raised);
public void fill3DRect(int x, int y, int w, int h, boolean raised) { // TODO }
public void fillArc(int x, int y, int w, int h, int startAngle, int arcAngle)
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void fillArc(int x, int y, int w, int h, int startAngle, int arcAngle) { // TODO }
graphics.fillArc(x, y, width, height, startAngle, arcAngle);
public void fillArc(int x, int y, int w, int h, int startAngle, int arcAngle) { // TODO }
public void fillOval(int x, int y, int w, int h)
public void fillOval(int x, int y, int width, int height)
public void fillOval(int x, int y, int w, int h) { // TODO }
graphics.fillOval(x, y, width, height);
public void fillOval(int x, int y, int w, int h) { // TODO }
graphics.fillPolygon(xpoints, ypoints, npoints);
public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) { // TODO }
public void fillRect(int x, int y, int w, int h)
public void fillRect(int x, int y, int width, int height)
public void fillRect(int x, int y, int w, int h) { // TODO } // fillRect()
}
for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.fillRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.fillRect(x, y, width, height); sleep(debugFlashTime); } graphics.setColor(color); graphics.fillRect(x, y, width, height); ...
public void fillRect(int x, int y, int w, int h) { // TODO } // fillRect()
public void fillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void fillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) { // TODO }
graphics.fillRoundRect(x, y, width, height, arcWidth, arcHeight);
public void fillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) { // TODO }
return null;
return debugFlashColor;
public static Color flashColor() { return null; // TODO }
return 0;
return debugFlashCount;
public static int flashCount() { return 0; // TODO }
return 0;
return debugFlashTime;
public static int flashTime() { return 0; // TODO }
return null;
return graphics.getClip();
public Shape getClip() { return null; // TODO }
return null;
return graphics.getClipBounds();
public Rectangle getClipBounds() { return null; // TODO }
return null;
return color;
public Color getColor() { return null; // TODO }
return null;
return graphics.getFont();
public Font getFont() { return null; // TODO }
return null;
return graphics.getFontMetrics();
public FontMetrics getFontMetrics() { return null; // TODO }
return null;
return debugLogStream;
public static PrintStream logStream() { return null; // TODO }
public void setClip(int x, int y, int w, int h)
public void setClip(int x, int y, int width, int height)
public void setClip(int x, int y, int w, int h) { // TODO }
graphics.setClip(x, y, width, height);
public void setClip(int x, int y, int w, int h) { // TODO }
this.color = color;
public void setColor(Color color) { // TODO }
debugFlashColor = color;
public static void setFlashColor(Color color) { // TODO }
debugFlashCount = count;
public static void setFlashCount(int count) { // TODO }
debugFlashTime = time;
public static void setFlashTime(int time) { // TODO }
graphics.setFont(font);
public void setFont(Font font) { // TODO }
debugLogStream = stream;
public static void setLogStream(PrintStream stream) { // TODO }
graphics.setPaintMode();
public void setPaintMode() { // TODO }
graphics.setXORMode(color);
public void setXORMode(Color color) { // TODO }
graphics.translate(x, y);
public void translate(int x, int y) { // TODO }
switch (checkType.type) { case CheckType.TYPE_READ: { readCache.add(dest); break; } case CheckType.TYPE_WRITE: { writeCache.add(dest); break; } case CheckType.TYPE_CREATE: { createCache.add(dest); break; } default: { throw new IllegalArgumentException("Invalid checkType:" + checkType); } }
private void check(Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { if (trace) { log.trace("checking access permissions to " + dest); } JBossDestination jbd = (JBossDestination)dest; boolean isQueue = jbd.isQueue(); String name = jbd.getNa...
if (dest != null) { check(dest, CheckType.WRITE, conn); }
check(dest, CheckType.WRITE, conn);
public Object handleSend(Invocation invocation) throws Throwable { // anonymous producer - if destination is not null then write permissions required MethodInvocation mi = (MethodInvocation)invocation; Message m = (Message)mi.getArguments()[0]; Destination dest = m.getJMSDestination...
c.setCurrentPage(i);
c.setPage(i, page);
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa...
"InternalFrame.border", new MetalBorders.InternalFrameBorder(), "InternalFrame.icon", MetalIconFactory.getInternalFrameDefaultMenuIcon(), "InternalFrame.closeIcon", MetalIconFactory.getInternalFrameCloseIcon(16), "InternalFrame.maximizeIcon", MetalIconFactory.getInternalFrameMaximizeIcon(16), "InternalFrame.iconifyIcon...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark...
"control", new ColorUIResource(getControl())
"control", new ColorUIResource(getControl()), "desktop", new ColorUIResource(getDesktopColor())
protected void initSystemColorDefaults(UIDefaults defaults) { super.initSystemColorDefaults(defaults); Object[] uiDefaults; uiDefaults = new Object[] { "control", new ColorUIResource(getControl()) }; defaults.putDefaults(uiDefaults); }
WorkflowContext workflowContext = (WorkflowContext) loadObject(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext"));
WorkflowContext workflowContext = null; try { workflowContext = (WorkflowContext) ClassLoaderUtil.loadClass(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext"), getClass()).newInstance(); } catch (Exception e) { e.printStackTrace(); }
public void setSessionContext(SessionContext context) { WorkflowContext workflowContext = (WorkflowContext) loadObject(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext")); if (workflowContext instanceof EJBWorkflowContext) { ((EJBWo...
int pageCount = (int) (c.getMaxHeight() / c.getPageInfo().getContentHeight() + 1);
int pageCount = getPageCount(c);
private void renderPagedView(Context c, Box box) { int pageCount = (int) (c.getMaxHeight() / c.getPageInfo().getContentHeight() + 1); setPreferredSize(new Dimension(c.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMar...
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException { return endpoint.createConnectionDelegate(username, password, clientConnectionID); }
return endpoint.createConnectionDelegate(username, password, clientConnectionID);
return endpoint.createConnectionDelegate(username, password);
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException { return endpoint.createConnectionDelegate(username, password, clientConnectionID); }
ServerManagement.start("all", 3);
ServerManagement.start(4, "all");
public void testJoin() throws Exception { // By this time, after running setUp(), we should have an already formed cluster of three // nodes (0, 1, 2). // TODO - verify this assertion // We start programatically the fourth node. ServerManagement.start("all", 3); // TODO - verify that ...
ServerManagement.start("all", 0);
ServerManagement.start(0, "all");
public void testLeaveAndJoin() throws Exception { // By this time, after running setUp(), we should have an already formed cluster of three // nodes (0, 1, 2). // TODO - verify this assertion // We get the first node to programatically leave the cluster ServerManagement.stop(0); // TO...
callbackHandler, this, selector, noLocal, subscription);
callbackHandler, this, selector, noLocal);
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if ("".e...
if (this.connectionEndpoint.started) { scd.setStarted(true); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if ("".e...
try { this.serverPeer.getPersistenceManager().removeAllMessageData(subscription.getQueue().getChannelID()); } catch (Exception e) { final String msg = "Failed to remove message data for durable subscription"; log.error(msg, e); throw new JMSException(msg); }
public void unsubscribe(String subscriptionName) throws JMSException { if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.c...
int index; View v = null; switch (direction) { case EAST: index = getViewIndex(pos + 1, b); if (index == -1) return pos; v = getView(index); break; case WEST: index = getViewIndex(pos - 1, b); if (index == -1)
protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) throws BadLocationException { // FIXME: Implement this correctly. return pos; }
v = getView(index); break; default: throw new IllegalArgumentException(); } return v.getNextVisualPositionFrom(pos, b, a, direction, biasRet);
protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) throws BadLocationException { // FIXME: Implement this correctly. return pos; }
int index = getViewIndex(pos, b); View v = null; if (index == -1)
protected int getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) throws BadLocationException { // FIXME: Implement this correctly. return pos; }
switch (direction) { case NORTH: if (index <= 0) return pos; v = getView(index - 1); break; case SOUTH: if (index >= getViewCount() - 1) return pos; v = getView(index + 1); break; default: throw new IllegalArgumentException(); } return v.getNextVisualPositionFrom(pos, b, a, direction, biasRet);
protected int getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) throws BadLocationException { // FIXME: Implement this correctly. return pos; }
children = new View[count];
View[] newChildren = new View[count];
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); children = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); children[i] = view; } }
children[i] = view;
newChildren[i] = view;
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); children = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); children[i] = view; } }
replace(0, getViewCount(), newChildren);
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); children = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); children[i] = view; } }
View child = children[childIndex]; return child.modelToView(pos, a, bias);
if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new AssertionError("" + child.getClass().getName() + ".modelToView() must not return null"); return result; } else { throw new AssertionError("No child views found where child views are ...
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); View child = children[childIndex]; return child.modelToView(pos, a, bias); }
for (int i = 0; i < views.length; ++i) views[i].setParent(this);
public void replace(int offset, int length, View[] views) { View[] newChildren = new View[children.length - length + views.length]; System.arraycopy(children, 0, newChildren, 0, offset); System.arraycopy(views, 0, newChildren, offset, views.length); System.arraycopy(children, offset + length, newChildren...
if ((children == null) || children.length == 0)
if (parent != null && ((children == null) || children.length == 0))
public void setParent(View parent) { super.setParent(parent); if ((children == null) || children.length == 0) loadChildren(getViewFactory()); }
public int viewToModel(float x, float y, Shape a, Position.Bias b)
public int viewToModel(float x, float y, Shape a, Position.Bias[] b)
public int viewToModel(float x, float y, Shape a, Position.Bias b) { Rectangle r = getInsideAllocation(a); View view = getViewAtPoint((int) x, (int) y, r); return view.viewToModel(x, y, a, b); }
Unsafe.debug("desktop-frame shown\n");
protected void onInitialize() { log.debug("onInitialize"); desktopFrame = new DesktopFrame(getScreenSize()); desktopFrame.show(); }
final JList jList = (JList)jComponent; SwingToolkit.add(list, jList); SwingToolkit.copyAwtProperties(list, jList); final ListModel model = new AbstractListModel() {
SwingToolkit.add(list, jComponent); SwingToolkit.copyAwtProperties(list, jComponent); jComponent.setModel(new AbstractListModel() {
public SwingListPeer(SwingToolkit toolkit, final List list) { super(toolkit, list, new SwingList(list)); final JList jList = (JList)jComponent; SwingToolkit.add(list, jList); SwingToolkit.copyAwtProperties(list, jList); final ListModel model = new AbstractListModel() { public Object getElementAt(int...
};
});
public SwingListPeer(SwingToolkit toolkit, final List list) { super(toolkit, list, new SwingList(list)); final JList jList = (JList)jComponent; SwingToolkit.add(list, jList); SwingToolkit.copyAwtProperties(list, jList); final ListModel model = new AbstractListModel() { public Object getElementAt(int...
private void configureAddress()
private void configureAddress() throws Exception
private void configureAddress() { String s = System.getProperty("test.bind.address"); if (s == null) { ipAddressOrHostName = "localhost"; } else { ipAddressOrHostName = s; } log.debug("all server sockets will be open on address: " + ipAddressOrHostName); }
remoting = true;
remotingSocket = true;
private void parseConfig(String config) { config = config.toLowerCase(); for (StringTokenizer st = new StringTokenizer(config, ", "); st.hasMoreTokens(); ) { String tok = st.nextToken(); boolean minus = false; if (tok.startsWith("-")) { tok = tok.substring(...
remoting = false;
remotingSocket = false; } } else if ("remoting-multiplex".equals(tok)) { remotingMultiplex = true; if (minus) { remotingMultiplex = false;
private void parseConfig(String config) { config = config.toLowerCase(); for (StringTokenizer st = new StringTokenizer(config, ", "); st.hasMoreTokens(); ) { String tok = st.nextToken(); boolean minus = false; if (tok.startsWith("-")) { tok = tok.substring(...
if (remoting)
if (remotingSocket)
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
startRemoting();
startRemoting(false);
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
if (remotingMultiplex) { startRemoting(true); }
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
private void startRemoting() throws Exception
private void startRemoting(boolean multiplex) throws Exception
private void startRemoting() throws Exception { RemotingJMXWrapper mbean = new RemotingJMXWrapper(new InvokerLocator("socket://" + ipAddressOrHostName + ":19895")); mbeanServer.registerMBean(mbean, REMOTING_OBJECT_NAME); mbeanServer.invoke(REMOTING_OBJECT_NAME, "start", new Object[0], new...
RemotingJMXWrapper mbean = new RemotingJMXWrapper(new InvokerLocator("socket:
RemotingJMXWrapper mbean; String locatorURI; if (multiplex) { locatorURI = "multiplex: } else { locatorURI = "socket: } log.debug("Using the following locator uri:" + locatorURI); InvokerLocator locator = new InvokerLocator(locatorURI); log.debug("Started remoting connector on uri:" + locator.getLocatorURI()); mbe...
private void startRemoting() throws Exception { RemotingJMXWrapper mbean = new RemotingJMXWrapper(new InvokerLocator("socket://" + ipAddressOrHostName + ":19895")); mbeanServer.registerMBean(mbean, REMOTING_OBJECT_NAME); mbeanServer.invoke(REMOTING_OBJECT_NAME, "start", new Object[0], new...
if (sel.equals(oldSel) == false) fireValueChanged(lo, hi, valueIsAdjusting);
fireDifference(sel, (BitSet) oldSel);
public void addSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) setSelectionInterval(index0, index1); // COMPAT: Lik...
oldSel = sel.clone(); int sz = sel.size(); sel.clear(); if (sel.equals(oldSel) == false) fireValueChanged(0, sz, valueIsAdjusting);
int from = sel.nextSetBit(0); if (from < 0) return; int to = from; int i; Up: for (i = from; i>=0; i=sel.nextSetBit(i+1)) to = i; fireValueChanged(from, to, valueIsAdjusting);
public void clearSelection() { oldSel = sel.clone(); int sz = sel.size(); sel.clear(); if (sel.equals(oldSel) == false) fireValueChanged(0, sz, valueIsAdjusting); }
if (sel.equals(oldSel) == false) fireValueChanged(lo, hi, valueIsAdjusting);
fireDifference(sel, (BitSet) oldSel);
public void removeSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; oldSel = sel.clone(); int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); // if selectionMode is SINGLE_INTERVAL_SELECTION and rem...
if (sel.equals(oldSel) == false) fireValueChanged(beg, end, valueIsAdjusting);
BitSet old = (BitSet) oldSel; old.set(oldLeadIndex, !sel.get(oldLeadIndex)); old.set(leadSelectionIndex, !sel.get(leadSelectionIndex)); fireDifference(sel, old);
public void setLeadSelectionIndex(int leadIndex) { // Only set the lead selection index to < 0 if anchorSelectionIndex < 0. if (leadIndex < 0) { if (anchorSelectionIndex < 0) leadSelectionIndex = -1; else return; } // Only touch the lead selection index if the ancho...
oldSel = sel.clone();
BitSet oldSel = (BitSet) sel.clone();
public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; oldSel = sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); ...
if (sel.equals(oldSel) == false) fireValueChanged(lo, hi, valueIsAdjusting);
fireDifference(sel, oldSel);
public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; oldSel = sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); ...
} String confMappingOverride = _ivy.substitute(attributes.getValue("confmappingoverride")); if (confMappingOverride != null) { _md.setMappingOverride(Boolean.valueOf(confMappingOverride).booleanValue());
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
block.getChild(runEnd).getAbsY() + childBox.getHeight()) &&
runEndChild.getAbsY() + runEndChild.getHeight()) &&
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
connector = new ObjectName("jboss.remoting:service=Connector,transport=socket");
connectorName = new ObjectName("jboss.remoting:service=Connector,transport=socket");
public ServerPeer(String serverPeerID) throws Exception { this.serverPeerID = serverPeerID; this.connFactoryDelegates = new HashMap(); // the default value to use, unless the JMX attribute is modified connector = new ObjectName("jboss.remoting:service=Connector,transport=socket"); ...
return connector;
return connectorName;
public ObjectName getConnector() { return connector; }
String s = (String)mbeanServer.invoke(connector, "getInvokerLocator",
String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator",
private void initializeRemoting() throws Exception { String s = (String)mbeanServer.invoke(connector, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (feature?) in JBoss Remoting wh...
mbeanServer.invoke(connector, "addInvocationHandler",
mbeanServer.invoke(connectorName, "addInvocationHandler",
private void initializeRemoting() throws Exception { String s = (String)mbeanServer.invoke(connector, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (feature?) in JBoss Remoting wh...
connector = on;
connectorName = on;
public void setConnector(ObjectName on) { connector = on; }
delegate = new ClientConnectionFactoryDelegate(id, locator);
delegate = new ClientConnectionFactoryDelegate(id, getLocatorURI());
private ConnectionFactory setupConnectionFactory(String clientID) throws Exception { String id = genConnFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, this, clientID); Dispatcher.singleton.registerTarget(id, endpoint); connFactoryDelegate...
mbeanServer.invoke(connector, "removeInvocationHandler",
mbeanServer.invoke(connectorName, "removeInvocationHandler",
public synchronized void stop() throws Exception { if (!started) { return; } unloadServerAOPConfig(); log.debug(this + " stopping"); tearDownConnectionFactories(); destinationManager.destroyAllDestinations(); pm = null; txRepository...
int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) textComponent.setCaretPosition(caretPos + ev.getLength());
public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()...
int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) textComponent.setCaretPosition(ev.getOffset());
public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()...
return (crossFeedResolution + units) / units;
return crossFeedResolution / units;
public int getCrossFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); return (crossFeedResolution + units) / units; }
return (crossFeedResolution + units) / units;
return feedResolution / units;
public int getFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); return (crossFeedResolution + units) / units; }
rendererPane = new CellRendererPane();
public void installUI(JComponent c) { header = (JTableHeader) c; installDefaults(); installKeyboardActions(); installListeners(); }