rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
stringEditor = new StringFieldEditor(
serverUrlEditor = new UrlFieldEditor(
protected void createFieldEditors() { StringFieldEditor stringEditor = new StringFieldEditor( ConnectionConstants.JMS_CONNECTION_FACTORY_KEY, "Connection factory name", getFieldEditorParent() ); addField(stringEditor); stringEditor = new StringFieldEditor(...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b329de304a1922f59f08ed44a156121180f196a9/JMSPreferencePage.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/preferences/JMSPreferencePage.java
addField(stringEditor);
addField(serverUrlEditor);
protected void createFieldEditors() { StringFieldEditor stringEditor = new StringFieldEditor( ConnectionConstants.JMS_CONNECTION_FACTORY_KEY, "Connection factory name", getFieldEditorParent() ); addField(stringEditor); stringEditor = new StringFieldEditor(...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b329de304a1922f59f08ed44a156121180f196a9/JMSPreferencePage.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/preferences/JMSPreferencePage.java
mPreferences.save();
serverUrlEditor.setStringValue(serverUrlEditor.getStringValue().trim()); super.performOk(); preferences.save();
public boolean performOk() { try { mPreferences.save(); } catch (IOException e) { //TODO: do something } return super.performOk(); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b329de304a1922f59f08ed44a156121180f196a9/JMSPreferencePage.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/preferences/JMSPreferencePage.java
return super.performOk();
return true;
public boolean performOk() { try { mPreferences.save(); } catch (IOException e) { //TODO: do something } return super.performOk(); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b329de304a1922f59f08ed44a156121180f196a9/JMSPreferencePage.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/preferences/JMSPreferencePage.java
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
}
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
TextUtil.stripWhitespace( c, current_node, elem );
if(!Configuration.isTrue("xr.layout.whitespace.experimental",false)) { TextUtil.stripWhitespace( c, current_node, elem ); }
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
if ( prev_inline.end_index >= current_node.getNodeValue().length() ) { break;
if(Configuration.isTrue("xr.layout.whitespace.experimental",false)) { if ( prev_inline.end_index >= prev_inline.getMasterText().length()) { break; } } else { if ( prev_inline.end_index >= current_node.getNodeValue().length() ) { break; }
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
TextUtil.stripWhitespace( c, current_node, elem );
if(!Configuration.isTrue("xr.layout.whitespace.experimental",false)) { TextUtil.stripWhitespace( c, current_node, elem ); }
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
if (name.equalsIgnoreCase(IWorkbenchConstants.PL_PREFERENCES)) { loadPreferencePages(ext); return; }
private void appear(IExtensionPoint extPt, IExtension ext) { String name = extPt.getSimpleIdentifier(); if (name .equalsIgnoreCase(IWorkbenchConstants.PL_ACTION_SET_PART_ASSOCIATIONS)) { loadActionSetPartAssociation(ext); return; } if (name.equalsIgno...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/ExtensionEventHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExtensionEventHandler.java
RubyObject origin = body.getOrigin();
public RubyObject eval(Ruby ruby, RubyObject self) { if (getDefnNode() != null) { if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12748a4b8db7fd4836cd04c81e3cf2343735bfb6/DefnNode.java/buggy/org/jruby/nodes/DefnNode.java
if (body != null && origin == ruby.getRubyClass() && (body.getNoex() & Constants.NOEX_UNDEF) != 0) {
if (body != null && body.getOrigin() == ruby.getRubyClass() && (body.getNoex() & Constants.NOEX_UNDEF) != 0) {
public RubyObject eval(Ruby ruby, RubyObject self) { if (getDefnNode() != null) { if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12748a4b8db7fd4836cd04c81e3cf2343735bfb6/DefnNode.java/buggy/org/jruby/nodes/DefnNode.java
if (!style.hasProperty(CSSName.DISPLAY)) return false; String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
if (!style.hasProperty(CSSName.FLOAT)) return false; String float_val = style.propertyByName(CSSName.FLOAT).getValue().getCssText();
public static boolean isFloated(CascadedStyle style) { if (style == null) return false; if (!style.hasProperty(CSSName.DISPLAY)) return false;//default is inline String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText(); if (float_val == null) { return f...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1b3ffb852741837c0aa49f38d40c1e017d2cfcf8/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
System.out.println("VersionCompareTest");
public void testCompare() { System.out.println("VersionCompareTest"); assertTrue(Util.compareVersions("1", "0.9.3")); assertTrue(Util.compareVersions("1 devel", "0.9.3")); assertFalse(Util.compareVersions("0.3 devel", "0.9.3")); assertFalse(Util.compareVersions("0.3.0", "0.9.3"));...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/8dbc5e8c4287546530816ebadfd2697a5a26ff45/VersionCompareTest.java/clean/src/test/de/dal33t/powerfolder/test/util/VersionCompareTest.java
prev_inline.rightPadding = prev_inline.totalRightPadding(c.getCurrentStyle()); prev_inline.width += prev_inline.rightPadding; pendingRightPadding -= prev_inline.rightPadding;
int rp = prev_inline.totalRightPadding(c.getCurrentStyle()); prev_inline.rightPadding += rp; prev_inline.width += rp; pendingRightPadding -= rp; remaining_width -= rp;
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/4c6228ec4a20592f63d6203c86a98731914eea96/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
public void reloadPage() throws Exception {
public void reloadPage() {
public void reloadPage() throws Exception { logger.info("Reloading Page: "); if (manager.getBaseURL() != null) { loadPage(manager.getBaseURL()); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/BrowserPanel.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserPanel.java
public DocumentSummary getDocumentSummary( Document doc, PortletURL portletURL) { // Title String title = doc.get(LuceneFields.TITLE); // Content String content = doc.get(LuceneFields.CONTENT); content = StringUtil.shorten(content, 200); // URL String articleId = doc.get("articleId"); String version = doc.get...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/Indexer.java/buggy/portal-ejb/src/com/liferay/portlet/journal/util/Indexer.java
childNode.setElement(element);
if (element!=null) { childNode.setElement(element); }
final void createChildNode(final MenuElement element, final SLocation location) throws NotDefinedException { if (element == null) { throw new NullPointerException( "A child node cannot be created from a null element"); //$NON-NLS-1$ } final String id = element.getId(); LayoutNode childNode = null; if (chi...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5af242f9e1cef0507ee8fbeaa76acd846c7379b7/LayoutNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LayoutNode.java
return addr.isLoopbackAddress() || addr.isSiteLocalAddress() || getAllLocalNetworkAddresses().containsKey(addr);
return isOnAnySubnet((Inet4Address) addr) || addr.isLoopbackAddress() || addr.isSiteLocalAddress() || getAllLocalNetworkAddresses().containsKey(addr);
public static boolean isOnLanOrLoopback(InetAddress addr) { Reject.ifNull(addr, "Address is null"); try { return addr.isLoopbackAddress() || addr.isSiteLocalAddress() || getAllLocalNetworkAddresses().containsKey(addr); } catch (SocketException e) { return false; } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f00c09c383d7b5d659675ef7bdea2aab966fd666/NetworkUtil.java/buggy/src/main/de/dal33t/powerfolder/util/net/NetworkUtil.java
InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); if (prev_align != null && !prev_align.break_after) { box.x = prev_align.x + prev_align.width; } else { box.x = 0; } box.y = 0; VerticalAlign.setupVerticalAlign(c, style, box); c.translate(box.x...
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f960adf42e5e616b00f1ada861a28ed6b152987/LineBreaker.java/clean/src/java/org/xhtmlrenderer/layout/LineBreaker.java
/* * joshy: change this to just modify the existing block instead of creating * a new one */ InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); if (prev_align != null && !prev_align.break_after) { box.x = prev_align.x + prev_align.width; } el...
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f960adf42e5e616b00f1ada861a28ed6b152987/LineBreaker.java/clean/src/java/org/xhtmlrenderer/layout/LineBreaker.java
c.translate(box.x, box.y); c.translateInsets(box); if (cc != null) {
if (cc != null && !box.break_before) {
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f960adf42e5e616b00f1ada861a28ed6b152987/LineBreaker.java/clean/src/java/org/xhtmlrenderer/layout/LineBreaker.java
cc.setLocation((int) origin.getX(), (int) origin.getY() + curr_line.y);
cc.setLocation((int) origin.getX(), (int) origin.getY());
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f960adf42e5e616b00f1ada861a28ed6b152987/LineBreaker.java/clean/src/java/org/xhtmlrenderer/layout/LineBreaker.java
c.translate(-box.x, -box.y);
c.translate(-box.x - curr_line.x, -box.y - curr_line.y);
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f960adf42e5e616b00f1ada861a28ed6b152987/LineBreaker.java/clean/src/java/org/xhtmlrenderer/layout/LineBreaker.java
if (getController().getConnectionListener() != null) {
if (getController().hasConnectionListener()) {
public boolean validateDynDns(String dynDns) { // validates the dynamic dns entry if there is one entered if (!StringUtils.isBlank(dynDns)) { if (getController().getConnectionListener() != null) { // sets the new dyndns with validation enabled int res = getCont...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/2c7f60a3745b4381aa2a4602b35d8d89b1bf571a/DynDnsManager.java/buggy/src/main/de/dal33t/powerfolder/net/DynDnsManager.java
int view_height = this.enclosingScrollPane.getViewport().getHeight();
if(enclosingScrollPane != null) { int view_height = this.enclosingScrollPane.getViewport().getHeight();
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
if(intrinsic_size.getHeight() < view_height) { if(body_box != null) { body_box.height = view_height;
if(intrinsic_size.getHeight() < view_height) { if(body_box != null) { body_box.height = view_height; }
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
threaded = true;
public LayoutThread(HTMLPanel panel) { this.panel = panel; done = true; graphics = null; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
private synchronized void completeLayout() { //u.p("layout thread ending"); done = true; graphics = null; panel.repaint(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
private synchronized void completeLayout() { //u.p("layout thread ending"); done = true; graphics = null; panel.repaint(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
public void run() { //u.p("layout thread starting"); //u.p("graphics = " + graphics); panel.startLayout(graphics); this.completeLayout(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
new Thread(this).start();
if(threaded) { new Thread(this).start(); } else { run(); }
public synchronized void startLayout(Graphics g) { if(isLayoutDone()) { //u.p("really starting new thread"); done = false; graphics = g; new Thread(this).start(); } else { //u.p("layout already in progress. skipping layout"); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
public synchronized void startRender(Graphics g) { g.setColor(Color.black); if(this.isLayoutDone()) { if(panel.body_box != null) { //u.p("really painting"); try { panel.layout.getRenderer().paint( panel.c, panel.body_box ); } c...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/dab5f0ea0f21b11bc9059602a912aff22532b469/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
public static void main(String[] args) throws Exception { Toolkit.getDefaultToolkit().setDynamicLayout(true); XHTMLPanel panel = new XHTMLPanel(); Dimension size = new Dimension(200,200); panel.setPreferredSize(size); panel.setDocument(new File("demos/photogallery/...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9914a9774412cb33b91d4136ee4bc7038267d52b/PhotoGallery.java/buggy/demos/photogallery/src/java/org/xhtmlrenderer/demo/photogallery/PhotoGallery.java
Dimension size = new Dimension(200,200);
Dimension size = new Dimension(200, 200);
public static void main(String[] args) throws Exception { Toolkit.getDefaultToolkit().setDynamicLayout(true); XHTMLPanel panel = new XHTMLPanel(); Dimension size = new Dimension(200,200); panel.setPreferredSize(size); panel.setDocument(new File("demos/photogallery/...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9914a9774412cb33b91d4136ee4bc7038267d52b/PhotoGallery.java/buggy/demos/photogallery/src/java/org/xhtmlrenderer/demo/photogallery/PhotoGallery.java
panel.setDocument(new File("demos/photogallery/xhtml/gallery.xhtml").toURL());
panel.setDocument(new File("demos/photogallery/xhtml/gallery.xhtml").toURL().toExternalForm());
public static void main(String[] args) throws Exception { Toolkit.getDefaultToolkit().setDynamicLayout(true); XHTMLPanel panel = new XHTMLPanel(); Dimension size = new Dimension(200,200); panel.setPreferredSize(size); panel.setDocument(new File("demos/photogallery/...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9914a9774412cb33b91d4136ee4bc7038267d52b/PhotoGallery.java/buggy/demos/photogallery/src/java/org/xhtmlrenderer/demo/photogallery/PhotoGallery.java
JFrame frame = new JFrame("PhotoGallery");
JFrame frame = new JFrame("PhotoGallery");
public static void main(String[] args) throws Exception { Toolkit.getDefaultToolkit().setDynamicLayout(true); XHTMLPanel panel = new XHTMLPanel(); Dimension size = new Dimension(200,200); panel.setPreferredSize(size); panel.setDocument(new File("demos/photogallery/...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9914a9774412cb33b91d4136ee4bc7038267d52b/PhotoGallery.java/buggy/demos/photogallery/src/java/org/xhtmlrenderer/demo/photogallery/PhotoGallery.java
frame.setSize(500,500);
frame.setSize(500, 500);
public static void main(String[] args) throws Exception { Toolkit.getDefaultToolkit().setDynamicLayout(true); XHTMLPanel panel = new XHTMLPanel(); Dimension size = new Dimension(200,200); panel.setPreferredSize(size); panel.setDocument(new File("demos/photogallery/...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9914a9774412cb33b91d4136ee4bc7038267d52b/PhotoGallery.java/buggy/demos/photogallery/src/java/org/xhtmlrenderer/demo/photogallery/PhotoGallery.java
CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node)); Font font = FontUtil.getFont(c, style, node);
CalculatedStyle style = c.css.getStyle(node); Font font = FontUtil.getFont(c, style);
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/810d20da09b135490001c813971ac26af6d13f00/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
VerticalAlign.setupVerticalAlign(c, containing_block, line_to_save);
VerticalAlign.setupVerticalAlign(line_to_save);
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/810d20da09b135490001c813971ac26af6d13f00/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
return (RubyClass)getRubyClass();
return getRubyClass();
public RubyModule m_type() { return (RubyClass)getRubyClass(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/60d09f0d06e157ff7d9bb828d89273706e4e2798/RubyNil.java/buggy/org/jruby/RubyNil.java
setAnimated(false);
void dispose() { JobProgressManager.getInstance().removeListener(listener); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ee8dbe87291055d799d63a72120a5699545484d8/AnimationManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
pullRulesets(style, sheet);
CSSRuleList rl = style.getCssRules(); pullRulesets(rl, sheet, info);
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules();
private void pullRulesets(CSSRuleList rl, Stylesheet stylesheet, StylesheetInfo sheetInfo) {
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) {
if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.STYLE_RULE) { stylesheet.addRuleset(new Ruleset((org.w3c.dom.css.CSSStyleRule) rl.item(i), stylesheet.getOrigin())); } else if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) {
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
MediaList media = cssir.getMedia();
MediaList mediaList = cssir.getMedia(); String media = mediaList.getMediaText(); if (media.equals("")) media = sheetInfo.getMedia();
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
info.setMedia(media.getMediaText());
info.setMedia(media);
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
} else if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.STYLE_RULE) { stylesheet.addRuleset(new Ruleset((org.w3c.dom.css.CSSStyleRule) rl.item(i), stylesheet.getOrigin()));
} else if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.MEDIA_RULE) { CSSMediaRule cssmr = (CSSMediaRule) rl.item(i); StylesheetInfo info = new StylesheetInfo(); info.setMedia(cssmr.getMedia().getMediaText()); info.setOrigin(stylesheet.getOrigin()); info.setType("text/css"); Stylesheet mr = new Stylesheet(info); in...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/37a4a3d1b1f6a7c86c2b59853a3db3638b9bf1e0/StylesheetFactory.java/buggy/src/java/org/xhtmlrenderer/css/sheet/StylesheetFactory.java
c.getGraphics().translate(0, -ty);
void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - margin.top - border.top - padding.top + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); Rectangle bounds = new Rectangle(start, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea25c36d8670e0a2297b9a25e4765c46f98952c5/InlineBorder.java/clean/src/java/org/xhtmlrenderer/render/InlineBorder.java
previousAfter = previous.getStyle().getCalculatedStyle().getIdent(
previous.getStyle().getCalculatedStyle().getIdent(
public void markRun(int offset, BlockBox previous, BlockBox current) { RelayoutData previousData = get(offset-1); RelayoutData currentData = get(offset); IdentValue previousAfter = previousAfter = previous.getStyle().getCalculatedStyle().getIdent( ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (o instanceof AnonymousBlockContent) { List pendingInlineElements = block.getPendingInlineElements(); if (pendingInlineElements != null) { System.out.println("SETTING"); relayoutData.setHasPendingInlines(true); }
if (o instanceof AnonymousBlockContent && block.getPendingInlineElements() != null) { relayoutData.setHasPendingInlines(true);
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
BlockBox secondTry = layoutBlockChild(
childBox.detach(); childBox = layoutBlockChild(
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (secondTry.crossesPageBreak(c)) { secondTry.detach(); } else { childBox.detach(); childBox = secondTry; }
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
int heightBeforeRelayout = block.height;
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) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
block.getChild(runEnd).getAbsY() + childBox.getHeight())) { RelayoutResult result = relayoutOnNewPage(c, contentList, block,
block.getChild(runEnd).getAbsY() + childBox.getHeight()) && ! checkForPendingInlines(relayoutDataList, runStart, offset)) { block.detachChildren(runStart, offset); relayoutOnNewPage(c, contentList, block,
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) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (! result.isCanceled()) { if (result.isFits()) { block.detachChildren(runStart, offset); } else { block.detachChildren(offset+1, block.getChildCount()-1); block.height = heightBeforeRelayout; } }
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) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
private static RelayoutResult relayoutOnNewPage(
private static void relayoutOnNewPage(
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (checkForPendingInlines(relayoutDataList, start, end)) { RelayoutResult result = new RelayoutResult(); result.setCanceled(true); return result; }
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
int startAbsY = block.getAbsY() + block.ty + block.height; int endAbsY = 0;
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (childBox.getStyle().isAvoidPageBreakInside() &&
if (childBox.getStyle().isAvoidPageBreakInside() &&
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach();
if (currentContent instanceof AnonymousBlockContent && relayoutData.isHasPendingInlines()) { XRLog.layout(Level.WARNING, "Unable to relayout anonymous block with pending inlines. Dropping rule.");
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
childBox = secondTry;
childBox = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent);
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if ((i == end && end == contentList.size()-1) || (i == end - 1)) { endAbsY = childBox.getAbsY() + childBox.getHeight(); }
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
RelayoutResult result = new RelayoutResult(); result.setFits(! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY)); return result;
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
result.defineMethod("include?", callbackFactory.getMethod("include_p", IRubyObject.class));
public static RubyClass createRangeClass(Ruby runtime) { RubyClass result = runtime.defineClass("Range", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyRange.class); result.includeModule(runtime.getClasses().getEnume...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6e193d9102b579d9aa01db756d486ed0c99f31f/RubyRange.java/buggy/src/org/jruby/RubyRange.java
if (!(obj instanceof RubyNumeric)) { return getRuntime().getFalse(); }
public RubyBoolean op_eqq(IRubyObject obj) { if (begin instanceof RubyFixnum && obj instanceof RubyFixnum && end instanceof RubyFixnum) { long b = RubyNumeric.fix2long(begin); long o = RubyNumeric.fix2long(obj); if (b <= o) { long e = RubyNumeric.fix2long(end)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6e193d9102b579d9aa01db756d486ed0c99f31f/RubyRange.java/buggy/src/org/jruby/RubyRange.java
public void testForRedundantKeySequenceBindings() throws ComponentException {
public void testForRedundantKeySequenceBindings() {
public void testForRedundantKeySequenceBindings() throws ComponentException { final IWorkbenchWindow window = openTestWindow(); final IWorkbench workbench = window.getWorkbench(); final IBindingService bindingService = (IBindingService) workbench .getService(IBindingService.class); final Binding[] bindings = bi...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/Bug36537Test.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/Bug36537Test.java
.getService(IBindingService.class);
.getAdapter(IBindingService.class);
public void testForRedundantKeySequenceBindings() throws ComponentException { final IWorkbenchWindow window = openTestWindow(); final IWorkbench workbench = window.getWorkbench(); final IBindingService bindingService = (IBindingService) workbench .getService(IBindingService.class); final Binding[] bindings = bi...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/Bug36537Test.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/Bug36537Test.java
Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx());
Border margin = block.getMarginWidth(c, width);
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...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
Rectangle2D oldclip = (Rectangle2D) c.getGraphics().getClip();
Shape oldclip = (Shape) c.getGraphics().getClip();
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...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
c.getGraphics().setClip(oldclip.createIntersection(new_clip));
c.getGraphics().clip(new_clip);
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...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
Group group = null; if (Validator.isNotNull(groupId)) { group = GroupLocalServiceUtil.getGroup(groupId); } if (group == null) { group = user.getGroup(); }
Group group = GroupLocalServiceUtil.getGroup(groupId);
protected void checkPermissions(PortletRequest req) throws Exception { // See LEP-850 ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); User user = themeDisplay.getUser(); String groupId = ParamUtil.getString(req, "groupId"); Group group = null; if (Validator.isNotNull(groupId)...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/12f573fc094c0e9d1de408ef2f90785c2e59e772/EditPagesAction.java/clean/portal-ejb/src/com/liferay/portlet/communities/action/EditPagesAction.java
if( args.length != 1 ) {
/*if( args.length != 1 ) {
public static void main( String[] args ) throws Exception { if( args.length != 1 ) { System.out.println( "Usage: " + "FIXLogViewer dictionary"); return; } String dictionaryFileName = args[0]; DataDictionary dataDictionary = new DataDictionary( dictionaryFileName ); try { UIManager.setLookAndFeel...
55685 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55685/4363305f238db09ca57c1bff107f3d4d2476840e/Main.java/buggy/quickfix/logviewer/Main.java
*/ String dictionaryFileName = "FIX44.xml";
public static void main( String[] args ) throws Exception { if( args.length != 1 ) { System.out.println( "Usage: " + "FIXLogViewer dictionary"); return; } String dictionaryFileName = args[0]; DataDictionary dataDictionary = new DataDictionary( dictionaryFileName ); try { UIManager.setLookAndFeel...
55685 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55685/4363305f238db09ca57c1bff107f3d4d2476840e/Main.java/buggy/quickfix/logviewer/Main.java
if (id == GOTO_ACTION_ID) { IAction gotoAction = getGotoAction(); if (gotoAction != null) { if (!isMultipleJobErrors() || isPromptToClose()) { okPressed(); gotoAction.run(); } } } super.buttonPressed(id); }
if (id == GOTO_ACTION_ID) { IAction gotoAction = getGotoAction(); if (gotoAction != null) { if (!isMultipleJobErrors() || isPromptToClose()) { okPressed(); gotoAction.run(); } } } super.buttonPressed(id); }
protected void buttonPressed(int id) { if (id == GOTO_ACTION_ID) { IAction gotoAction = getGotoAction(); if (gotoAction != null) { if (!isMultipleJobErrors() || isPromptToClose()) { okPressed(); // close the dialog gotoAction.run(); // run the goto ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
Rectangle shellPosition = getShell().getBounds(); boolean result = super.close(); ProgressManagerUtil.animateDown(shellPosition); ProgressManager.getInstance().errorManager.dialogClosed(); return result; }
Rectangle shellPosition = getShell().getBounds(); boolean result = super.close(); ProgressManagerUtil.animateDown(shellPosition); return result; }
public boolean close() { Rectangle shellPosition = getShell().getBounds(); boolean result = super.close(); ProgressManagerUtil.animateDown(shellPosition); ProgressManager.getInstance().errorManager.dialogClosed(); return result; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
IAction gotoAction = getGotoAction(); String text = null; if (gotoAction != null) { text = gotoAction.getText(); } if (text == null) { text = ProgressMessages.JobErrorDialog_CustomJobText; } createButton(parent, GOTO_ACTION_ID, text, false); super.createButtonsForButtonBar(parent); }
IAction gotoAction = getGotoAction(); String text = null; if (gotoAction != null) { text = gotoAction.getText(); } if (text == null) { text = ProgressMessages.JobErrorDialog_CustomJobText; } createButton(parent, GOTO_ACTION_ID, text, false); super.createButtonsForButtonBar(parent); }
protected void createButtonsForButtonBar(Composite parent) { IAction gotoAction = getGotoAction(); String text = null; if (gotoAction != null) { text = gotoAction.getText(); } if (text == null) { // Text is set to this initiallybut will be changed for active ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
jobListViewer = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); jobListViewer.setSorter(getViewerSorter()); Control control = jobListViewer.getControl(); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); data.heightHint = convertHeight...
jobListViewer = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); jobListViewer.setSorter(getViewerSorter()); Control control = jobListViewer.getControl(); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); data.heightHint = convertHeight...
private void createJobListArea(Composite parent) { // Display a list of jobs that have reported errors jobListViewer = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); jobListViewer.setSorter(getViewerSorter()); Control control = jobListViewe...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
handleSelectionChange(); }
handleSelectionChange(); }
public void selectionChanged(SelectionChangedEvent event) { handleSelectionChange(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
Object property = selectedError.getJob().getProperty(IProgressConstants.ACTION_PROPERTY); if (property instanceof IAction) { return (IAction)property;
Object property = selectedError.getJob().getProperty( IProgressConstants.ACTION_PROPERTY); if (property instanceof IAction) { return (IAction) property;
private IAction getGotoAction() { Object property = selectedError.getJob().getProperty(IProgressConstants.ACTION_PROPERTY); if (property instanceof IAction) { return (IAction)property; } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return null; }
return null; }
private IAction getGotoAction() { Object property = selectedError.getJob().getProperty(IProgressConstants.ACTION_PROPERTY); if (property instanceof IAction) { return (IAction)property; } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return ProgressManager.getInstance().errorManager; }
return ProgressManager.getInstance().errorManager; }
private ErrorNotificationManager getManager() { return ProgressManager.getInstance().errorManager; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return selectedError; }
return selectedError; }
public ErrorInfo getSelectedError() { return selectedError; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() == 1) {
ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() == 1) {
private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
} return null; }
} return null; }
private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return new ViewerSorter() { /* (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }; }
return new ViewerSorter() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }; }
private ViewerSorter getViewerSorter() { return new ViewerSorter() { /* (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compa...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return ((Comparable) e1).compareTo(e2); }
return ((Comparable) e1).compareTo(e2); }
public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
ErrorInfo newSelection = getSingleSelection(); if (newSelection != null && newSelection != selectedError) { selectedError = newSelection; setStatus(selectedError.getErrorStatus()); updateEnablements(); showDetailsArea(); } }
ErrorInfo newSelection = getSingleSelection(); if (newSelection != null && newSelection != selectedError) { selectedError = newSelection; setStatus(selectedError.getErrorStatus()); updateEnablements(); showDetailsArea(); } }
void handleSelectionChange() { ErrorInfo newSelection = getSingleSelection(); if (newSelection != null && newSelection != selectedError) { selectedError = newSelection; setStatus(selectedError.getErrorStatus()); updateEnablements(); showDetailsArea(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { }
IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { }
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { return getManager().getErrors().toArray(); }
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { return getManager().getErrors().toArray(); }
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) {
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) {
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
} }; jobListViewer.setContentProvider(provider); jobListViewer.setInput(getManager()); jobListViewer.setSelection(new StructuredSelection(selectedError)); }
} }; jobListViewer.setContentProvider(provider); jobListViewer.setInput(getManager()); jobListViewer.setSelection(new StructuredSelection(selectedError)); }
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
}
}
public void dispose() { //Nothing of interest here }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return getManager().getErrors().toArray(); }
return getManager().getErrors().toArray(); }
public Object[] getElements(Object inputElement) { return getManager().getErrors().toArray(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
Object newInput) { if (newInput != null) {
Object newInput) { if (newInput != null) {
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
}
}
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java