bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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... | 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... | 44,937 |
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())... | 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())... | 44,938 |
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())... | 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())... | 44,939 |
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... | 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... | 44,940 |
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... | 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... | 44,941 |
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... | 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... | 44,942 |
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); doExpandParents(path, state); } | protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; doExpandParents(path, state); } | 44,943 |
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | public DefaultTreeCellRenderer() { setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForeground")); setTextSelectionColor(defaults.getColor("T... | 44,944 |
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | 44,945 |
public Icon getDefaultClosedIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } | public Icon getDefaultClosedIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } | 44,946 |
public Icon getDefaultLeafIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } | public Icon getDefaultLeafIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } | 44,947 |
public Icon getDefaultOpenIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } | public Icon getDefaultOpenIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } | 44,948 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | 44,949 |
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( ... | 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( ... | 44,950 |
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 + "... | 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 + "... | 44,951 |
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... | 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... | 44,952 |
public boolean isVisited(String uri) { return false; } | public boolean isVisited(String uri) { uri = resolveURI(uri); return history.contains(uri); } | 44,953 |
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 = ... | if (uri.trim().equals("")) return baseUrl; if (uri.trim().equals("")) return baseUrl; if (uri.trim().equals("")) return baseUrl; if (uri.trim().equals("")) return baseUrl; publicif (uri.trim().equals("")) return baseUrl; Stringif (uri.trim().equals("")) return baseUrl; resolveURI(Stringif (uri.trim().equals("")) return... | 44,954 |
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... | public static 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 { backgro... | 44,955 |
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... | 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... | 44,956 |
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... | 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... | 44,957 |
private void installListeners() { Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint... | private void installListeners() { Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint... | 44,959 |
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 ... | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); MetalTitlePane titlePane = new MetalTitlePane(rp); rp.setLayout(new MetalRootLayout(titlePane)); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should ... | 44,960 |
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 ... | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() > 0 : "We should have a contentPane already"; rp.getLayeredPane().add(new M... | 44,961 |
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 ... | 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 ... | 44,962 |
private void uninstallWindowDecorations(JRootPane rp) { rp.setBorder(null); rp.getLayeredPane().remove(1); } | private void uninstallWindowDecorations(JRootPane rp) { rp.setBorder(null); JLayeredPane lp = rp.getLayeredPane(); for (int i = lp.getComponentCount() - 1; i >= 0; --i) { if (lp.getComponent(i) instanceof MetalTitlePane) { lp.remove(i); break; } } } | 44,964 |
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 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... | 44,965 |
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 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... | 44,966 |
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 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... | 44,967 |
public DefaultKeyboardFocusManager() { } | public DefaultKeyboardFocusManager () { } | 44,968 |
protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void dequeueKeyEvents (long after, Component untilFocused) { throw new Error("not implemented"); } | 44,969 |
protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void dequeueKeyEvents(long after, Component comp) { 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)) { EventDelayRe... | 44,970 |
protected void discardKeyEvents(Component comp) { throw new Error("not implemented"); } | protected void discardKeyEvents (Component comp) { throw new Error("not implemented"); } | 44,971 |
protected void discardKeyEvents(Component comp) { throw new Error("not implemented"); } | protected void discardKeyEvents(Component comp) { 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.discardEv... | 44,972 |
public boolean dispatchEvent(AWTEvent e) { throw new Error("not implemented"); } | public boolean dispatchEvent (AWTEvent e) { throw new Error("not implemented"); } | 44,973 |
public boolean dispatchEvent(AWTEvent e) { throw new Error("not implemented"); } | public boolean dispatchEvent(AWTEvent e) { 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... | 44,974 |
public boolean dispatchKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean dispatchKeyEvent (KeyEvent e) { throw new Error("not implemented"); } | 44,975 |
public boolean dispatchKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean dispatchKeyEvent(KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); focusOwner.dispatchEvent (e); Iterator i = getKeyEventPostProcessors().iterator(); while (i.hasNext ()) { KeyEventPostProcessor processor = (KeyEventPostProcessor) i.next (); if (processor.postProcessKeyEven... | 44,976 |
public void downFocusCycle(Container cont) { throw new Error("not implemented"); } | public void downFocusCycle (Container cont) { throw new Error("not implemented"); } | 44,978 |
public void downFocusCycle(Container cont) { throw new Error("not implemented"); } | public void downFocusCycle(Container cont) { if (cont == null) return; if (cont.isFocusCycleRoot (cont)) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (cont); defaultComponent.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (cont)... | 44,979 |
protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void enqueueKeyEvents (long after, Component untilFocused) { throw new Error("not implemented"); } | 44,980 |
protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void enqueueKeyEvents(long after, Component comp) { delayRequests.add (new EventDelayRequest (after, untilFocused)); } | 44,981 |
public void focusNextComponent(Component comp) { throw new Error("not implemented"); } | public void focusNextComponent (Component comp) { throw new Error("not implemented"); } | 44,982 |
public void focusNextComponent(Component comp) { throw new Error("not implemented"); } | public void focusNextComponent(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (focusCycleR... | 44,983 |
public void focusPreviousComponent(Component comp) { throw new Error("not implemented"); } | public void focusPreviousComponent (Component comp) { throw new Error("not implemented"); } | 44,984 |
public void focusPreviousComponent(Component comp) { throw new Error("not implemented"); } | public void focusPreviousComponent(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentBefore (fo... | 44,985 |
public boolean postProcessKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean postProcessKeyEvent (KeyEvent e) { throw new Error("not implemented"); } | 44,986 |
public boolean postProcessKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean postProcessKeyEvent(KeyEvent e) { 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).getMen... | 44,987 |
public void processKeyEvent(Component comp, KeyEvent e) { throw new Error("not implemented"); } | public void processKeyEvent (Component comp, KeyEvent e) { throw new Error("not implemented"); } | 44,989 |
public void processKeyEvent(Component comp, KeyEvent e) { throw new Error("not implemented"); } | public void processKeyEvent(Component comp, KeyEvent e) { AWTKeyStroke eventKeystroke = AWTKeyStroke.getAWTKeyStrokeForEvent (e); AWTKeyStroke oppositeKeystroke = AWTKeyStroke.getAWTKeyStroke (e.getKeyCode (), e.getModifiers (), !(e.id == KeyEvent.KEY_RELEASED)); Set forwardKeystrokes = comp.getFocusTraversa... | 44,990 |
public void upFocusCycle(Component comp) { throw new Error("not implemented"); } | public void upFocusCycle (Component comp) { throw new Error("not implemented"); } | 44,992 |
public void upFocusCycle(Component comp) { throw new Error("not implemented"); } | public void upFocusCycle(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component defaultCom... | 44,993 |
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... | publicvoidstart()throwsException{try{configureAddress();toUnbindAtExit.clear();jndiNamingFactory=System.getProperty("java.naming.factory.initial");//TODO:needtothinkmoreaboutthis;ifIdon'tdoit,though,bind()failsbecauseittriestouse"java.naming.provider.url"try{NamingManager.setInitialContextFactoryBuilder(newInVMInitialC... | 44,995 |
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"); ... | 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"); ... | 44,997 |
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"); ... | 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"); ... | 44,998 |
private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | 44,999 |
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&" + ... | private void startRemoting(boolean multiplex) throws Exception { log.info("********* STARTING MULTIPLEX"); RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + ... | 45,000 |
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"); ... | 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"); ... | 45,002 |
public Quit() { 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"); } | 45,004 |
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... | 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... | 45,005 |
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... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (client == null) { //We shouldn't have to do this programmatically - it should pick it up from the params //on the locator uri, but that doesn... | 45,006 |
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... | 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... | 45,007 |
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... | 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... | 45,008 |
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... | 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... | 45,009 |
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... | 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... | 45,010 |
ColorValue( int color ) { this._color = new Float( color ).floatValue(); } | ColorValue( int color ) { this._color = new Float( color ).floatValue(); } | 45,012 |
public Counter getCounterValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public Counter getCounterValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,013 |
public float getFloatValue( short unitType ) throws DOMException { return _color; } | public float getFloatValue( short unitType ) throws DOMException { return _color; } | 45,014 |
public RGBColor getRGBColorValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public RGBColor getRGBColorValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,015 |
public Rect getRectValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public Rect getRectValue() throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,016 |
public String getStringValue() throws DOMException { return "" + _color; } | public String getStringValue() throws DOMException { return "" + _color; } | 45,017 |
public void setCssText( String cssText ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public void setCssText( String cssText ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,018 |
public void setFloatValue( short unitType, float floatValue ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public void setFloatValue( short unitType, float floatValue ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,019 |
public void setStringValue( short stringType, String stringValue ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | public void setStringValue( short stringType, String stringValue ) throws DOMException { throw new DOMException( DOMException.INVALID_ACCESS_ERR, "This is a color" ); } | 45,020 |
_RGBColor( String hex ) { int red = Integer.parseInt( hex.substring( 1, 3 ), 16 ); redCV = new ColorValue( red ); int green = Integer.parseInt( hex.substring( 3, 5 ), 16 ); greenCV = new ColorValue( green ); int blue = Integer.parseInt( hex.substring( 5, 7 ... | _RGBColor( String hex ) { int red = Integer.parseInt( hex.substring( 1, 3 ), 16 ); redCV = new ColorValue( red ); int green = Integer.parseInt( hex.substring( 3, 5 ), 16 ); greenCV = new ColorValue( green ); int blue = Integer.parseInt( hex.substring( 5, 7 ... | 45,021 |
public DefaultCSSPrimitiveValue( String value ) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType( value ); } | public DefaultCSSPrimitiveValue(String value) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType( value ); } | 45,022 |
public DefaultCSSPrimitiveValue( String value ) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType( value ); } | public DefaultCSSPrimitiveValue( String value ) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType(value); } | 45,023 |
public Counter getCounterValue() throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Counter value." ); } | public Counter getCounterValue() throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Counter value." ); } | 45,024 |
public float getFloatValue( short unitType ) throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Float value." ); } | public float getFloatValue( short unitType ) throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Float value." ); } | 45,025 |
public RGBColor getRGBColorValue() throws DOMException { if ( _stringValue.startsWith( "#" ) ) { if ( _asColor == null ) { _asColor = new _RGBColor( _stringValue ); } return _asColor; } else { throw new DOMException( DOMException.NOT_SU... | public RGBColor getRGBColorValue() throws DOMException { if ( _stringValue.startsWith( "#" ) ) { if ( _asColor == null ) { _asColor = new _RGBColor( _stringValue ); } return _asColor; } else { throw new DOMException( DOMException.NOT_SU... | 45,026 |
public RGBColor getRGBColorValue() throws DOMException { if ( _stringValue.startsWith( "#" ) ) { if ( _asColor == null ) { _asColor = new _RGBColor( _stringValue ); } return _asColor; } else { throw new DOMException( DOMException.NOT_SU... | public RGBColor getRGBColorValue() throws DOMException { if ( _stringValue.startsWith( "#" ) ) { if ( _asColor == null ) { _asColor = new _RGBColor( _stringValue ); } return _asColor; } else { throw new DOMException(DOMException.NOT_SUP... | 45,027 |
public Rect getRectValue() throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Rect value." ); } | public Rect getRectValue() throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Rect value." ); } | 45,028 |
public String getStringValue() throws DOMException { return _stringValue; } | public String getStringValue() throws DOMException { return _stringValue; } | 45,029 |
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... | 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 = CSS... | 45,030 |
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... | 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... | 45,031 |
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... | 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 = CSS_RGB... | 45,032 |
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... | 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... | 45,033 |
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... | 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... | 45,034 |
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... | 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... | 45,035 |
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... | 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... | 45,036 |
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... | 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... | 45,037 |
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... | 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... | 45,038 |
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... | 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... | 45,039 |
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... | 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... | 45,040 |
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... | 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... | 45,041 |
public void setCssText( String cssText ) throws DOMException { _stringValue = cssText; } | public void setCssText( String cssText ) throws DOMException { _stringValue = cssText; } | 45,042 |
public void setFloatValue( short unitType, float floatValue ) throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Float value." ); } | public void setFloatValue( short unitType, float floatValue ) throws DOMException { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Not a Float value." ); } | 45,043 |
public void setStringValue( short stringType, String stringValue ) throws DOMException { if ( stringType != CSS_STRING ) { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Can only set to CSS_STRING." ); } _stringValue = stringValue; } | public void setStringValue( short stringType, String stringValue ) throws DOMException { if ( stringType != CSS_STRING ) { throw new DOMException( DOMException.NOT_SUPPORTED_ERR, "Can only set to CSS_STRING." ); } _stringValue = stringValue; } | 45,044 |
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... | public static IRandom getSystemInstance() throws ClassNotFoundException, MalformedURLException, NumberFormatException { CSPRNG instance = new CSPRNG(); HashMap attrib = new HashMap(); attrib.put(BLOCKING, Boolean.valueOf(getProperty(BLOCK))); String s = null; // Get each file source "gnu.crypto.c... | 45,045 |
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 (... | 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 //Uu.p("deepest hover = " + ib); if (prev == ib) { ... | 45,046 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.