rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
CoreDestination dest = (CoreDestination)m.get(destName); return dest; | return (CoreDestination)m.get(destName); | protected CoreDestination getCoreDestinationInternal(boolean isQueue, String destName) { Map m = isQueue ? queues : topics; CoreDestination dest = (CoreDestination)m.get(destName); return dest; } |
i--; | protected void detachChildren() { for (int i = 0; i < getInlineChildCount(); i++) { Object object = getInlineChild(i); if (object instanceof Box) { ((Box)object).detach(); } } } | |
File inputFile = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, false, ".xml", ResourceManager.getString("descriptor.files")); | ImportWorkflowDialog dialog = new ImportWorkflowDialog(WorkflowDesigner.INSTANCE, (String)getValue(NAME), true); dialog.pack(); Utils.centerComponent(WorkflowDesigner.INSTANCE, dialog); dialog.show(); URL inputFile = dialog.getImportURL(); | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... |
File ouputFile = new File(currentWorkspace.getLocation().getParentFile(), inputFile.getName()); if(!ouputFile.getCanonicalPath().equals(inputFile.getCanonicalPath())) | File ouputFile = new File(currentWorkspace.getLocation().getParentFile(), fileName); if(!"file".equals(inputFile.getProtocol()) || new File(inputFile.getFile()).getCanonicalPath().indexOf(currentWorkspace.getLocation().getParentFile().getCanonicalPath())==-1) | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... |
FileInputStream in = new FileInputStream(inputFile); | InputStream in = inputFile.openStream(); | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... |
String name = inputFile.getName(); currentWorkspace.importDescriptor(name.substring(0, name.lastIndexOf('.')), new FileInputStream(inputFile)); WorkflowDesigner.INSTANCE.navigator().setWorkspace(currentWorkspace); | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | |
case CANCEL_MESSAGE: | case CANCEL_DELIVERY: | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... |
if (trace) { log.trace("read cancelMessage()"); } return request; } case CANCEL_MESSAGES: | if (trace) { log.trace("read cancelDelivery()"); } return request; } case CANCEL_DELIVERIES: | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... |
if (trace) { log.trace("read cancelMessages()"); } | if (trace) { log.trace("read cancelDeliveries()"); } | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... |
else if ("cancelMessage".equals(methodName)) { oos.writeByte(CANCEL_MESSAGE); | else if ("cancelDelivery".equals(methodName)) { oos.writeByte(CANCEL_DELIVERY); | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... |
if (trace) { log.trace("wrote cancelMessage()"); } } else if ("cancelMessages".equals(methodName)) { oos.writeByte(CANCEL_MESSAGES); | if (trace) { log.trace("wrote cancelDelivery)"); } } else if ("cancelDeliveries".equals(methodName) && mi.getArguments() != null) { oos.writeByte(CANCEL_DELIVERIES); | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... |
if (trace) { log.trace("wrote cancelMessage()"); } | if (trace) { log.trace("wrote cancelDeliveries()"); } | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... |
System.out.println("generated image = " + img); | public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ... | |
private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { | private static void copyHeader(InputStream in, PrintWriter out) throws IOException { | private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... |
BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); | BufferedReader r = new BufferedReader(new InputStreamReader(in)); | private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... |
r.close(); | private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... | |
if (_confMappingOverride != null && attributes.getValue("confmappingoverride") == null) { out.print(" confmappingoverride=\""+_confMappingOverride.toString()+"\""); } | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } _context.push(qName);... | |
} String mappingOverride = substitute(ivy, attributes.getValue("confmappingoverride")); if (mappingOverride != null) { _confMappingOverride = Boolean.valueOf(mappingOverride); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if ("configurations".equals(qName)) { ... | |
public PrintWriter(OutputStream out) | public PrintWriter(Writer wr) | public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } |
super(); this.out = new OutputStreamWriter(out); this.lock = this.out; | super(wr.lock); this.out = wr; | public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } |
public static void parse(URL xmlURL, URL schema, DefaultHandler handler, LexicalHandler lHandler) throws SAXException, IOException, ParserConfigurationException { InputStream xmlStream = null; InputStream schemaStream = null; try { if (schema != null) { schemaStream = URLHandlerRegistry.getDefault().openStream(schema);... | public static void parse(URL xmlURL, URL schema, DefaultHandler handler) throws SAXException, IOException, ParserConfigurationException { parse(xmlURL, schema, handler, null); | public static void parse(URL xmlURL, URL schema, DefaultHandler handler, LexicalHandler lHandler) throws SAXException, IOException, ParserConfigurationException { InputStream xmlStream = null; InputStream schemaStream = null; try { if (schema != null) { schemaStream = ... |
List inlineList = new LinkedList(); | List inlineList = new ArrayList(); | static List getChildContentList(LayoutContext c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element par... |
Component left = splitPane.getLeftComponent(); Component right = splitPane.getRightComponent(); | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JSplitPane.DIVIDER_SIZE_PROPERTY)) { int newSize = splitPane.getDividerSize(); int[] tmpSizes = layoutManager.getSizes(); dividerSize = tmpSizes[2]; Component left = splitPane.getLeftComponent(); Component ri... | |
- tmpSizes[0] - tmpSizes[1]; | - tmpSizes[0]; | public void setDividerLocation(JSplitPane jc, int location) { setLastDragLocation(getDividerLocation(splitPane)); splitPane.setLastDividerLocation(getDividerLocation(splitPane)); int[] tmpSizes = layoutManager.getSizes(); tmpSizes[0] = location - layoutManager.getInitialLocation(splitPan... |
if (location < getMinimumDividerLocation(splitPane)) return getMinimumDividerLocation(splitPane); if (location > getMaximumDividerLocation(splitPane)) return getMaximumDividerLocation(splitPane); | int min = getMinimumDividerLocation(splitPane); int max = getMaximumDividerLocation(splitPane); if (min > 0 && location < min) return min; if (max > 0 && location > max) return max; | private int validLocation(int location) { if (location < getMinimumDividerLocation(splitPane)) return getMinimumDividerLocation(splitPane); if (location > getMaximumDividerLocation(splitPane)) return getMaximumDividerLocation(splitPane); return location; } |
c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), edge.width, textDecoration.getThickness()); | if (getStyle().getCalculatedStyle().isIdent( CSSName.FS_TEXT_DECORATION_EXTENT, IdentValue.BLOCK)) { Box last = getLineBox().getLast(); if (last == this) { Box container = getLineBox().getParent(); c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), container.getAbsX() + container.tx + container.g... | private void paintTextDecoration(RenderingContext c) { Graphics graphics = c.getGraphics(); Color oldColor = graphics.getColor(); graphics.setColor(getStyle().getCalculatedStyle().getColor()); Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), c); c.getGraph... |
public static boolean isDecoratable(Context c, Node node) { if (!LayoutUtil.isReplaced(c, node)) { if (!LayoutUtil.isFloatedBlock(node, c)) { | public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof ReplacedContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { | public static boolean isDecoratable(Context c, Node node) { if (!LayoutUtil.isReplaced(c, node)) { if (!LayoutUtil.isFloatedBlock(node, c)) { return true; } } return false; } |
public Xid[] recover(int arg1) throws XAException | public Xid[] recover(int flags) throws XAException | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } |
log.trace("Recover arg1=" + arg1 + " " + this); | log.trace("Recover flags=" + flags + " " + this); | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } |
return new Xid[0]; | return rm.recover(flags, connection); | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } |
Rectangle box = new Rectangle(block.x + margin.left + border.left - 1, block.y + margin.top + border.top - 1, | Rectangle box = new Rectangle(block.x + margin.left + border.left, block.y + margin.top + border.top, | 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... |
inline.width, | inline.width + 1, | public static void paintBackground(Context c, LineBox line, InlineBox inline, int padX) { //Uu.p("painting border: " + inline.border); // paint the background //int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle())... |
inline.width - inline.margin.left - inline.border.left, | inline.width - inline.margin.left - inline.border.left + 1, | public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... |
inline.width - inline.margin.left, | inline.width - inline.margin.left + 1, | public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... |
Rectangle bounds = new Rectangle(inline.x + padX + inline.margin.right, | Rectangle bounds = new Rectangle(inline.x + inline.margin.right, | public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, i... |
TreePath parent = path.getParentPath(); | protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); doExpandParents(path, state); } | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | |
setTextNonSelectionColor(defaults.getColor("Tree.textForeground")); setTextSelectionColor(defaults.getColor("Tree.selectionForeground")); setBackgroundNonSelectionColor(defaults.getColor("Tree.nonSelectionBackground")); setBackgroundSelectionColor(defaults.getColor("Tree.selectionBackground")); setBorderSelectionColor(... | setTextNonSelectionColor(UIManager.getColor("Tree.textForeground")); setTextSelectionColor(UIManager.getColor("Tree.selectionForeground")); setBackgroundNonSelectionColor(UIManager.getColor("Tree.nonSelectionBackground")); setBackgroundSelectionColor(UIManager.getColor("Tree.selectionBackground")); setBorderSelectionCo... | public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... |
return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); | return UIManager.getIcon("Tree.closedIcon"); | public Icon getDefaultClosedIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } |
return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); | return UIManager.getIcon("Tree.leafIcon"); | public Icon getDefaultLeafIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } |
return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); | return UIManager.getIcon("Tree.openIcon"); | public Icon getDefaultOpenIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } |
super.setFont(UIManager.getLookAndFeelDefaults().getFont("Tree.font")); | super.setFont(UIManager.getFont("Tree.font")); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... |
Border border = UIManager.getLookAndFeelDefaults().getBorder( "Tree.selectionBorder"); | Border border = UIManager.getBorder("Tree.selectionBorder"); | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getLookAndFeelDefaults().getBorder( ... |
InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e); | uri = resolveURI(uri); img = (Image) imageCache.get(uri); if (img == null) { InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); imageCache.put(uri, img); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e); } | public Image getImage(String uri) { Image img = null; InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "... |
String dirlist = new DirectoryLister().list(file); | String dirlist = DirectoryLister.list(file); | public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace... |
return false; | uri = resolveURI(uri); return history.contains(uri); | public boolean isVisited(String uri) { return false; } |
if (uri.trim().equals("")) return baseUrl; | public String resolveURI(String uri) { URL ref = null; if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring(5); if (!short_url.startsWith("/")) { short_url = "/" + short_url; } ref = ... | |
public String list(File file) { | public static String list(File file) { | public String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { background-col... |
Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getComponentCount() > 2 && layeredPane.getComponent(2) instanceof JMenuBar) menuBar = layeredPane.getComponent(2); | Component contentPane = rp.getContentPane(); Component menuBar = rp.getJMenuBar(); | public void layoutContainer(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getCom... |
Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getComponentCount() > 2 && layeredPane.getComponent(2) instanceof JMenuBar) menuBar = layeredPane.getComponent(2); | Component contentPane = rp.getContentPane(); Component menuBar = rp.getJMenuBar(); | public Dimension preferredLayoutSize(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPa... |
iconifyAction = new IconifyAction(); maximizeAction = new MaximizeAction(); | private void createActions() { closeAction = new CloseAction(); } | |
Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint(); } public void windowLostFocus(WindowEvent ev) { repaint(); } }); | MouseInputAdapter mouseHandler = new MouseHandler(); addMouseListener(mouseHandler); addMouseMotionListener(mouseHandler); | private void installListeners() { Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint... |
rp.setLayout(new MetalRootLayout()); | MetalTitlePane titlePane = new MetalTitlePane(rp); rp.setLayout(new MetalRootLayout(titlePane)); | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... |
assert rp.getLayeredPane().getComponentCount() == 1 | assert rp.getLayeredPane().getComponentCount() > 0 | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... |
rp.getLayeredPane().add(new MetalTitlePane(rp), JLayeredPane.FRAME_CONTENT_LAYER); | rp.getLayeredPane().add(titlePane, JLayeredPane.FRAME_CONTENT_LAYER, 1); | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... |
super.propertyChange(ev); | public void propertyChange(PropertyChangeEvent ev) { String propertyName = ev.getPropertyName(); if (propertyName.equals("windowDecorationStyle")) { JRootPane rp = (JRootPane) ev.getSource(); if (rp.getWindowDecorationStyle() != JRootPane.NONE) installWindowDecorations(rp); e... | |
rp.getLayeredPane().remove(1); | JLayeredPane lp = rp.getLayeredPane(); for (int i = lp.getComponentCount() - 1; i >= 0; --i) { if (lp.getComponent(i) instanceof MetalTitlePane) { lp.remove(i); break; } } | private void uninstallWindowDecorations(JRootPane rp) { rp.setBorder(null); rp.getLayeredPane().remove(1); } |
Delivery d = coreDestination.handle(null, r, tx); | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | |
if (d == null || !d.isDone()) | boolean internalTx = false; if (r.isReliable() && tx == null && !coreDestination.isQueue()) | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... |
String msg = "The message was not acknowledged by destination " + coreDestination; log.error(msg); throw new JBossJMSException(msg); | try { tx = tr.createTransaction(); } catch (Exception e) { throw new JBossJMSException("Failed to create internal transaction", e); } internalTx = true; } try { Delivery d = coreDestination.handle(null, r, tx); if (internalTx) { tx.commit(); } if (d == null || !d.isDone()) { String msg = "The message was not acknow... | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... |
protected void dequeueKeyEvents(long after, Component comp) | protected void dequeueKeyEvents (long after, Component untilFocused) | protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | if (after < 0) { int size = delayRequests.size (); if (size > 0) delayRequests.remove (delayRequests.first ()); } else { EventDelayRequest template = new EventDelayRequest (after, untilFocused); if (delayRequests.contains (template)) { EventDelayRequest actual = (EventDelayRequest) delayRequests.tailSet (template).firs... | protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | Iterator i = delayRequests.iterator (); while (i.hasNext ()) { EventDelayRequest request = (EventDelayRequest) i.next (); if (request.focusedComp == comp || (comp instanceof Container && ((Container) comp).isAncestorOf (request.focusedComp))) request.discardEvents (); } | protected void discardKeyEvents(Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (target); else if (e.id != WindowEvent.WINDOW_LOST_FOCUS && e.id != WindowEvent.WINDOW_DEACTIVATED)... | public boolean dispatchEvent(AWTEvent e) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | Component focusOwner = getGlobalPermanentFocusOwner (); focusOwner.dispatchEvent (e); Iterator i = getKeyEventPostProcessors().iterator(); while (i.hasNext ()) { KeyEventPostProcessor processor = (KeyEventPostProcessor) i.next (); if (processor.postProcessKeyEvent ((KeyEvent) e)) return true; | public boolean dispatchKeyEvent(KeyEvent e) { throw new Error("not implemented"); } |
if (postProcessKeyEvent (e)) return true; return true; } | public boolean dispatchKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | if (cont == null) return; if (cont.isFocusCycleRoot (cont)) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (cont); defaultComponent.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (cont); } | public void downFocusCycle(Container cont) { throw new Error("not implemented"); } |
protected void enqueueKeyEvents(long after, Component comp) | protected void enqueueKeyEvents (long after, Component untilFocused) | protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | delayRequests.add (new EventDelayRequest (after, untilFocused)); | protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (focusCycleRoot, focusComp); next.requestFocusInWindow (); | public void focusNextComponent(Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentBefore (focusCycleRoot, focusComp); previous.requestFocusInWindow (); | public void focusPreviousComponent(Component comp) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | int modifiers = e.getModifiers (); if ((modifiers & KeyEvent.CTRL_MASK) != 0 || (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) { Window focusedWindow = getGlobalFocusedWindow (); if (focusedWindow instanceof Frame) { MenuBar menubar = ((Frame) focusedWindow).getMenuBar (); if (menubar != null) { int numMenus = menubar... | public boolean postProcessKeyEvent(KeyEvent e) { throw new Error("not implemented"); } |
} } } } } return false; } | public boolean postProcessKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | AWTKeyStroke eventKeystroke = AWTKeyStroke.getAWTKeyStrokeForEvent (e); AWTKeyStroke oppositeKeystroke = AWTKeyStroke.getAWTKeyStroke (e.getKeyCode (), e.getModifiers (), !(e.id == KeyEvent.KEY_RELEASED)); Set forwardKeystrokes = comp.getFocusTraversalKeys (KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS); Set backwar... | public void processKeyEvent(Component comp, KeyEvent e) { throw new Error("not implemented"); } |
else if (backwardKeystrokes.contains (eventKeystroke)) { focusPreviousComponent (comp); e.consume (); } else if (upKeystrokes.contains (eventKeystroke)) { upFocusCycle (comp); e.consume (); } else if (comp instanceof Container && downKeystrokes.contains (eventKeystroke)) { downFocusCycle ((Container) comp); e.consume (... | public void processKeyEvent(Component comp, KeyEvent e) { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (focusCycleRo... | public void upFocusCycle(Component comp) { throw new Error("not implemented"); } |
else { Container parentFocusCycleRoot = focusCycleRoot.getFocusCycleRootAncestor (); focusCycleRoot.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (parentFocusCycleRoot); } } | public void upFocusCycle(Component comp) { throw new Error("not implemented"); } | |
deleteAllData(); | 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... | |
HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); props.setProperty("server.no_system_exit", "true"); props.setProperty("server.port", 2... | if (hsql) { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); props.setProperty("server.no_system_exit", "true"); props.setProperty("ser... | private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... |
hsqldbServer = new Server(); hsqldbServer.setLogWriter(null); hsqldbServer.setProperties(props); hsqldbServer.start(); log.debug("started the database"); | private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... | |
mcf.setConnectionURL(connectionURL); mcf.setDriverClass(driverClass); mcf.setUserName(userName); | if (hsql) { mcf.setConnectionURL("jdbc:hsqldb:mem:test"); mcf.setDriverClass("org.hsqldb.jdbcDriver"); mcf.setUserName("sa"); } else { mcf.setConnectionURL("jdbc:mysql: mcf.setDriverClass("com.mysql.jdbc.Driver"); mcf.setTransactionIsolation("TRANSACTION_READ_COMMITTED"); mcf.setUserName("root"); } | private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... |
{ | { log.info("********* STARTING MULTIPLEX"); | private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&" + ... |
log.info("********** STARTING SOCKET"); | private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&" + ... | |
log.debug("stopping " + hsqldbServer); Class.forName("org.hsqldb.jdbcDriver" ); Connection conn = DriverManager.getConnection("jdbc:hsqldb:mem:test", "sa", ""); Statement stat = conn.createStatement(); stat.executeUpdate("SHUTDOWN"); conn.close(); | if (hsql) { Class.forName("org.hsqldb.jdbcDriver" ); Connection conn = DriverManager.getConnection("jdbc:hsqldb:mem:test", "sa", ""); Statement stat = conn.createStatement(); stat.executeUpdate("SHUTDOWN"); conn.close(); } | private void stopInVMDatabase() throws Exception { log.debug("stopping " + hsqldbServer); Class.forName("org.hsqldb.jdbcDriver" ); Connection conn = DriverManager.getConnection("jdbc:hsqldb:mem:test", "sa", ""); Statement stat = conn.createStatement(); stat.executeUpdate("SHUTDOWN"); ... |
split.setUI(new BlueButtonUI()); | public static JPanel createToolbar() { JToolBar bar = new JToolBar(); bar.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH); JButton step = new JButton(ResourceManager.getIcon("newstep")); step.setToolTipText(ResourceManager.getString("createstep")); bar.add(step); DragSource ds = new D... | |
putValue(SHORT_DESCRIPTION, "Exit designer"); putValue(NAME, "Exit"); putValue(LONG_DESCRIPTION, "Exit the designer application"); | public Quit() { putValue(SHORT_DESCRIPTION, "Exit designer"); putValue(NAME, "Exit"); putValue(LONG_DESCRIPTION, "Exit the designer application"); } | |
g.setColor(graph.getHighlightColor()); | g.setColor(highlightColor); | public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; if(super.isOpaque()) { g.setColor(super.getBackground()); g.fillOval(b - 1, b - 1, d.width - b, d.height - b); } try { setBorder(null); s... |
if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | |
if (log.isTraceEnabled()) { log.trace("client is null"); } | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | |
if (log.isTraceEnabled()) { log.trace("Locator is:" + locator); } | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | |
if (log.isTraceEnabled()) { log.trace("Subsystem is:" + subsystem); } | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | |
if (log.isTraceEnabled()) { log.trace("Created client"); } | if (log.isTraceEnabled()) { log.trace("created client, locator=" + locator + ", subsystem=" + subsystem); } | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... |
device.addListener(this); | public JNodeFrameBufferDevice(Device device) { this.device = device; try { this.api = (FrameBufferAPI)device.getAPI(FrameBufferAPI.class); } catch (ApiNotFoundException ex) { throw new IllegalArgumentException("Not a FrameBuffer device", ex); } final FrameBufferConfiguration[] fbConfigs = api.getConfiguration... | |
String hmm = value.substring( value.length() - 3 ); if ( "pt".equals( hmm ) ) { | String hmm = value.substring(value.length() - 2); if ("pt".equals(hmm)) { | private static short guessType( String value ) { short type = CSS_STRING; if ( value != null && value.length() > 1 ) { if ( value.endsWith( "%" ) ) { type = CSS_PERCENTAGE; } else if ( value.startsWith( "rgb" ) || value.startsWith( "#" ) ) { type = C... |
attrib.put(BLOCKING, new Boolean(getProperty(BLOCK))); | attrib.put(BLOCKING, Boolean.valueOf(getProperty(BLOCK))); | public static IRandom getSystemInstance() throws ClassNotFoundException, MalformedURLException, NumberFormatException { CSPRNG instance = new CSPRNG(); HashMap attrib = new HashMap(); attrib.put(BLOCKING, new Boolean(getProperty(BLOCK))); String s = null; // Get each file source "gnu.crypto.csprn... |
ib = getDeepestHover(ib); | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | |
if (prev == ib) { | if (hovered_element == panel.hovered_element) { | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... |
if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.element; | Element previousHoveredElement = panel.hovered_element; panel.hovered_element = hovered_element; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... |
boolean restyled = panel.getSharedContext().getCss().isHoverStyled(prev.element); if (restyled) { prev.restyle = true; needRepaint = true; } | needRepaint = true; restyleElementChildBoxes(previousHoveredElement, prev); prev = null; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... |
if (ib != null) { boolean restyled = panel.getSharedContext().getCss().isHoverStyled(ib.element); if (restyled) { ib.restyle = true; needRepaint = true; } | if (hovered_element != null) { needRepaint = true; restyleElementChildBoxes(hovered_element, ib); prev = ib; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.