rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (parent.isExpanded()) { expandNode(parent); tm.reload(parent); } | private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) { if (nodes.size() == 0) { tm.insertNodeInto(new DefaultMutableTreeNode(EMPTY_MSG), parent, parent.getChildCount()); return; } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
private void expandNode(DefaultMutableTreeNode node) | private void expandNode(TreeImageDisplay node) | private void expandNode(DefaultMutableTreeNode node) { //First remove listener otherwise an event is fired. treeDisplay.removeTreeExpansionListener(listener); treeDisplay.expandPath(new TreePath(node.getPath())); treeDisplay.addTreeExpansionListener(listener); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
node.setExpanded(true); | private void expandNode(DefaultMutableTreeNode node) { //First remove listener otherwise an event is fired. treeDisplay.removeTreeExpansionListener(listener); treeDisplay.expandPath(new TreePath(node.getPath())); treeDisplay.addTreeExpansionListener(listener); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
node.setExpanded(expanded); | private void onNodeNavigation(TreeExpansionEvent tee, boolean expanded) { TreeImageDisplay node = (TreeImageDisplay) tee.getPath().getLastPathComponent(); controller.onNodeNavigation(node, expanded); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
void setViews(Set nodes, boolean reload) | void setViews(Set nodes) | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
if (!reload) reload = reloadRoot; | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
if (reload) dtm.reload(root); | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
if (reload) dtm.reload(root); | void sortNodes(int type) { sorter.setByDate(type == Browser.SORT_NODES_BY_DATE); DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); boolean reload = false; Set children = root.getChildrenDisplay(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
windowsMenu = new JMenu("HIViewer Window"); TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu); | private HiViewerFactory() { viewers = new HashSet(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c339ee7ede327002893658553251772acc5aba8e/HiViewerFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerFactory.java | |
final JWindow frame = new JWindow(parent); final JContactItemField contactField = new JContactItemField(new ArrayList(contacts), frame); | window = new JWindow(parent); final JContactItemField contactField = new JContactItemField(new ArrayList(contacts)); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.getContentPane().setLayout(new BorderLayout()); | window.setLayout(new BorderLayout()); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.getContentPane().add(layoutPanel); | window.add(layoutPanel); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.pack(); | window.pack(); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.setLocationRelativeTo(parent); frame.setVisible(true); | window.setLocationRelativeTo(parent); window.setVisible(true); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.addKeyListener(new KeyAdapter() { | window.addKeyListener(new KeyAdapter() { | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void keyPressed(KeyEvent keyEvent) { if (keyEvent.getKeyChar() == KeyEvent.VK_ESCAPE) { frame.dispose(); } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void keyReleased(KeyEvent keyEvent) { if (keyEvent.getKeyChar() == KeyEvent.VK_ENTER) { if (ModelUtil.hasLength(contactField.getText())) { ContactItem item = (ContactItem)contactMap.get(contactField.getText()); if (item !... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
frame.dispose(); | window.dispose(); | public void keyReleased(KeyEvent keyEvent) { if (keyEvent.getKeyChar() == KeyEvent.VK_ENTER) { if (ModelUtil.hasLength(contactField.getText())) { ContactItem item = (ContactItem)contactMap.get(contactField.getText()); if (item !... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java |
public IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional) { | public IRubyObject[] scanArgs(IRubyObject[] args, int required, int optional) { | public IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional) { int total = required+optional; int real = checkArgumentCount(args,required,total); IRubyObject[] narr = new IRubyObject[total]; System.arraycopy(args,0,narr,0,real); for(int i=real; i<to... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
narr[i] = runtime.getNil(); | narr[i] = getRuntime().getNil(); | public IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional) { int total = required+optional; int real = checkArgumentCount(args,required,total); IRubyObject[] narr = new IRubyObject[total]; System.arraycopy(args,0,narr,0,real); for(int i=real; i<to... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public void visitBeanFactory(ConfigurableListableBeanFactory beanRegistry) throws BeansException { | public void visitBeanFactory(ConfigurableListableBeanFactory beanRegistry, Object data) throws BeansException { | public void visitBeanFactory(ConfigurableListableBeanFactory beanRegistry) throws BeansException { String[] beanNames = beanRegistry.getBeanDefinitionNames(); for (int i = 0; i < beanNames.length; i++) { String beanName = beanNames[i]; visitBeanDefinition(beanName, beanRegistry.g... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitBeanDefinition(beanName, beanRegistry.getBeanDefinition(beanName)); | visitBeanDefinition(beanName, beanRegistry.getBeanDefinition(beanName), data); | public void visitBeanFactory(ConfigurableListableBeanFactory beanRegistry) throws BeansException { String[] beanNames = beanRegistry.getBeanDefinitionNames(); for (int i = 0; i < beanNames.length; i++) { String beanName = beanNames[i]; visitBeanDefinition(beanName, beanRegistry.g... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitCollection(Collection collection) throws BeansException { | public void visitCollection(Collection collection, Object data) throws BeansException { | public void visitCollection(Collection collection) throws BeansException { for (Iterator iterator = collection.iterator(); iterator.hasNext();) { visitNext(iterator.next()); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitNext(iterator.next()); | visitNext(iterator.next(), data); | public void visitCollection(Collection collection) throws BeansException { for (Iterator iterator = collection.iterator(); iterator.hasNext();) { visitNext(iterator.next()); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { | public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues, Object data) throws BeansException { | public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitConstructorArgumentValues((ConstructorArgumentValues.ValueHolder) iterator.next()); | visitConstructorArgumentValue((ConstructorArgumentValues.ValueHolder) iterator.next(), data); | public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
Set genericArgumentValues = constructorArgumentValues.getGenericArgumentValues(); | List genericArgumentValues = constructorArgumentValues.getGenericArgumentValues(); | public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitConstructorArgumentValues((ConstructorArgumentValues.ValueHolder) iterator.next()); | visitConstructorArgumentValue((ConstructorArgumentValues.ValueHolder) iterator.next(), data); | public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitMap(Map map) throws BeansException { | public void visitMap(Map map, Object data) throws BeansException { | public void visitMap(Map map) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitNext(entry.getKey()); visitNext(entry.getValue()); | visitNext(entry.getKey(), data); visitNext(entry.getValue(), data); | public void visitMap(Map map) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { | public void visitMutablePropertyValues(MutablePropertyValues propertyValues, Object data) throws BeansException { | public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i]); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitPropertyValue(values[i]); | visitPropertyValue(values[i], data); | public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i]); } } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
protected void visitNext(Object value) throws BeansException { | protected void visitNext(Object value, Object data) throws BeansException { | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitBeanFactory((ConfigurableListableBeanFactory) value); | visitBeanFactory((ConfigurableListableBeanFactory) value, data); } else if (value instanceof BeanDefinitionHolder) { visitBeanDefinitionHolder((BeanDefinitionHolder) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitBeanDefinition((BeanDefinition) value); | visitBeanDefinition((BeanDefinition) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitConstructorArgumentValues((ConstructorArgumentValues) value); | visitConstructorArgumentValues((ConstructorArgumentValues) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitConstructorArgumentValues((ConstructorArgumentValues.ValueHolder) value); | visitConstructorArgumentValue((ConstructorArgumentValues.ValueHolder) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitMutablePropertyValues((MutablePropertyValues) value); | visitMutablePropertyValues((MutablePropertyValues) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitPropertyValue((PropertyValue) value); | visitPropertyValue((PropertyValue) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitRuntimeBeanReference((RuntimeBeanReference) value); | visitRuntimeBeanReference((RuntimeBeanReference) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitMap((Map) value); | visitMap((Map) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitCollection((Collection) value); | visitCollection((Collection) value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
visitObject(value); | visitObject(value, data); | protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitObject(Object value) throws BeansException { | public void visitObject(Object value, Object data) throws BeansException { | public void visitObject(Object value) throws BeansException { } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
public void visitPropertyValue(PropertyValue propertyValue) throws BeansException { visitNext(propertyValue.getValue()); | public void visitPropertyValue(PropertyValue propertyValue, Object data) throws BeansException { visitNext(propertyValue.getValue(), data); | public void visitPropertyValue(PropertyValue propertyValue) throws BeansException { visitNext(propertyValue.getValue()); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/AbstractSpringVisitor.java/clean/kernel/src/java/org/gbean/spring/AbstractSpringVisitor.java |
{ JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem("25%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_25); add(menuItem); menuItem = new JCheckBoxMenuItem("50%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_50); add(menuItem); menuItem = new JCheckBoxMenuItem("75%"); manager.attachItemLis... | { JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem("25%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_25); add(menuItem); menuItem = new JCheckBoxMenuItem("50%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_50); add(menuItem); menuItem = new JCheckBoxMenuItem("75%"); manager.attachItemLis... | private void buildGUI(double magFactor) { JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem("25%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_25); add(menuItem); menuItem = new JCheckBoxMenuItem("50%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_50); add(menuItem); menuItem = new... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenu.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenu.java |
} | } | private void buildGUI(double magFactor) { JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem("25%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_25); add(menuItem); menuItem = new JCheckBoxMenuItem("50%"); manager.attachItemListener(menuItem, ZoomMenuManager.ZOOM_50); add(menuItem); menuItem = new... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenu.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenu.java |
classMap = new HashMap(); | topLevelClasses = new HashMap(); nonTopLevelClasses = new HashMap(); | public RubyClasses(Ruby runtime) { this.runtime = runtime; classMap = new HashMap(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClasses.java/clean/src/org/jruby/RubyClasses.java |
classMap.put(name, bootClass); | topLevelClasses.put(name, bootClass); | private RubyClass defineBootClass(String name, RubyClass superClass) { RubyClass bootClass = RubyClass.newClass(runtime, superClass, null, name); classMap.put(name, bootClass); return bootClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClasses.java/clean/src/org/jruby/RubyClasses.java |
RubyModule type = (RubyModule) classMap.get(name); | RubyModule type = (RubyModule) topLevelClasses.get(name); | public RubyModule getClass(String name) { RubyModule type = (RubyModule) classMap.get(name); if (type == null) { type = getAutoload(name); } return type; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClasses.java/clean/src/org/jruby/RubyClasses.java |
return classMap.keySet().iterator(); | return topLevelClasses.keySet().iterator(); | public Iterator nameIterator() { return classMap.keySet().iterator(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClasses.java/clean/src/org/jruby/RubyClasses.java |
public void putClass(String name, RubyModule rbClass) { classMap.put(name, rbClass); | public void putClass(String name, RubyModule rbClass, RubyModule parentModule) { if (parentModule == objectClass) { topLevelClasses.put(name, rbClass); } else { nonTopLevelClasses.put(rbClass.name(), rbClass); } | public void putClass(String name, RubyModule rbClass) { classMap.put(name, rbClass); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClasses.java/clean/src/org/jruby/RubyClasses.java |
if (e.getException().getType() == runtime.getModule("NameError")) { | if (e.getException().isKindOf(runtime.getModule("NameError"))) { | private IRubyObject userUnmarshal() throws IOException { String className = unmarshalObject().asSymbol(); String marshaled = unmarshalString(); RubyModule classInstance; try { classInstance = runtime.getClassFromPath(className); } catch (RaiseException e) { i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java |
TransportManager.registerUser(SparkManager.getConnection(), serviceName, username, password); | TransportUtils.registerUser(SparkManager.getConnection(), serviceName, username, password); | public void actionPerformed(ActionEvent e) { String username = getScreenName(); String password = getPassword(); if (!ModelUtil.hasLength(username) || !ModelUtil.hasLength(password)) { JOptionPane.showMessageDialog(this, Res.getString("message.username.password.error"), Res.getString... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/TransportRegistrationDialog.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/TransportRegistrationDialog.java |
public void actionPerformed(ActionEvent e) { String username = getScreenName(); String password = getPassword(); if (!ModelUtil.hasLength(username) || !ModelUtil.hasLength(password)) { JOptionPane.showMessageDialog(this, Res.getString("message.username.password.error"), Res.getString... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/TransportRegistrationDialog.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/TransportRegistrationDialog.java | ||
getSecuritySystem().managedDetails(iObject, copy.getDetails()); AdminAction action = new AdminAction(){ public void runAsAdmin() { Permissions p = new Permissions(perms); copy.getDetails().setPermissions(p); iUpdate.saveObject(copy); | copy.getDetails().setPermissions(perms); getSecuritySystem().doAction(copy, new SecureAction(){ public <T extends IObject> T updateObject(T obj) { update.flush(); return null; | public void changePermissions(final IObject iObject, final Permissions perms) { final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); getSecuritySystem().managedDetails(iObject, copy.getDetails()); AdminAction action = new AdminAction(){ public void runAsAdmin() { Permis... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c45430236b5203c0aea6757c90b20c950165f321/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java |
}; getSecuritySystem().runAsAdmin(action); | }); | public void changePermissions(final IObject iObject, final Permissions perms) { final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); getSecuritySystem().managedDetails(iObject, copy.getDetails()); AdminAction action = new AdminAction(){ public void runAsAdmin() { Permis... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c45430236b5203c0aea6757c90b20c950165f321/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java |
if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); | public ExperimenterGroup groupProxy(Long id) { ExperimenterGroup g = iQuery.get(ExperimenterGroup.class,id); return g; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c45430236b5203c0aea6757c90b20c950165f321/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java | |
if ( id == null ) throw new ApiUsageException("Id argument cannot be null."); | public Experimenter userProxy(final Long id) { Experimenter e = iQuery.get(Experimenter.class, id); return e; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c45430236b5203c0aea6757c90b20c950165f321/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java | |
lastChainView = null; | public void hideLastChainView() { if (lastChainView != null) { lastChainView.hide(); } lastChainView = null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cdf700b7b1d16eec4dc1f837bb19949c8ea6ceb/ChainPaletteEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java | |
if (n != lastChainView && lastChainView != null && | if (n == null || (n != lastChainView && lastChainView != null && | public void mouseEntered(PInputEvent e) { PNode n = e.getPickedNode(); if (n != lastChainView && lastChainView != null && !checkEventInNodeInterior(lastChainView,e) && !n.isAncestorOf(lastChainView) && !n.isDescendentOf(lastChainView)) hideLastChainView(); super.mouseEntered(e); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cdf700b7b1d16eec4dc1f837bb19949c8ea6ceb/ChainPaletteEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java |
!n.isDescendentOf(lastChainView)) | !n.isDescendentOf(lastChainView))) | public void mouseEntered(PInputEvent e) { PNode n = e.getPickedNode(); if (n != lastChainView && lastChainView != null && !checkEventInNodeInterior(lastChainView,e) && !n.isAncestorOf(lastChainView) && !n.isDescendentOf(lastChainView)) hideLastChainView(); super.mouseEntered(e); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cdf700b7b1d16eec4dc1f837bb19949c8ea6ceb/ChainPaletteEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java |
if (this.lastChainView == lastChainView) | if (this.lastChainView == lastChainView) { | public void setLastChainView(PaletteChainView lastChainView) { // if I get this twice, show the full view. if (this.lastChainView == lastChainView) lastChainView.showFullView(true); this.lastChainView = lastChainView; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cdf700b7b1d16eec4dc1f837bb19949c8ea6ceb/ChainPaletteEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java |
} | public void setLastChainView(PaletteChainView lastChainView) { // if I get this twice, show the full view. if (this.lastChainView == lastChainView) lastChainView.showFullView(true); this.lastChainView = lastChainView; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cdf700b7b1d16eec4dc1f837bb19949c8ea6ceb/ChainPaletteEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java | |
new XmlMetadataGenerator(this, outputDir.getAbsolutePath(), schema), new DocumentationGenerator(this, schema), new XsdGenerator(this, schema) | new XmlMetadataGenerator(outputDir.getAbsolutePath(), schema), new DocumentationGenerator(schema), new XsdGenerator(schema), new WikiDocumentationGenerator(schema), | public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XBeanMojo.java/buggy/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java |
} | } for (Iterator iter = generatorPlugins.iterator(); iter.hasNext();) { GeneratorPlugin plugin = (GeneratorPlugin) iter.next(); plugin.setLog(this); plugin.generate(namespaceMapping); } | public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XBeanMojo.java/buggy/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java |
private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) | private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) | private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) { if (nodes.size() == 0) { tm.insertNodeInto(new DefaultMutableTreeNode(EMPTY_MSG), parent, parent.getChildCount()); return; } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) { if (nodes.size() == 0) { tm.insertNodeInto(new DefaultMutableTreeNode(EMPTY_MSG), parent, parent.getChildCount()); return; } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | ||
} | } | private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) { if (nodes.size() == 0) { tm.insertNodeInto(new DefaultMutableTreeNode(EMPTY_MSG), parent, parent.getChildCount()); return; } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
} | } else reloadRoot = false; | private void buildTreeNode(DefaultMutableTreeNode parent, Collection nodes, DefaultTreeModel tm) { if (nodes.size() == 0) { tm.insertNodeInto(new DefaultMutableTreeNode(EMPTY_MSG), parent, parent.getChildCount()); return; } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
void setLeavesViews(Set nodes) | void setLeavesViews(Set nodes, TreeImageSet parent) | void setLeavesViews(Set nodes) { TreeImageDisplay node = model.getLastSelectedDisplay(); DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); if (node instanceof TreeImageNode) return; node.removeAllChildren(); node.setChildrenLoaded(Boolean.TRUE); if (nodes... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
TreeImageDisplay node = model.getLastSelectedDisplay(); | void setLeavesViews(Set nodes) { TreeImageDisplay node = model.getLastSelectedDisplay(); DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); if (node instanceof TreeImageNode) return; node.removeAllChildren(); node.setChildrenLoaded(Boolean.TRUE); if (nodes... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
if (node instanceof TreeImageNode) return; node.removeAllChildren(); node.setChildrenLoaded(Boolean.TRUE); | parent.removeAllChildren(); parent.setChildrenLoaded(Boolean.TRUE); | void setLeavesViews(Set nodes) { TreeImageDisplay node = model.getLastSelectedDisplay(); DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); if (node instanceof TreeImageNode) return; node.removeAllChildren(); node.setChildrenLoaded(Boolean.TRUE); if (nodes... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
node.addChildDisplay((TreeImageDisplay) i.next()) ; buildTreeNode(node, sorter.sort(nodes), dtm); } else buildEmptyNode(node); dtm.reload(node); | parent.addChildDisplay((TreeImageDisplay) i.next()) ; buildTreeNode(parent, sorter.sort(nodes), dtm); } else buildEmptyNode(parent); dtm.reload(parent); | void setLeavesViews(Set nodes) { TreeImageDisplay node = model.getLastSelectedDisplay(); DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); if (node instanceof TreeImageNode) return; node.removeAllChildren(); node.setChildrenLoaded(Boolean.TRUE); if (nodes... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
(DefaultTreeModel) treeDisplay.getModel()); | (DefaultTreeModel) treeDisplay.getModel()); if (!reload) reload = reloadRoot; reloadRoot = true; | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
if (reload) dtm.reload(); | if (reload) dtm.reload(root); | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f55df2b5b71c0122a31a16e32e593ee35703ee52/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
List<Element> es = (List<Element>) el.getChildren(); for (Element childElement : es) { createNoteFromElement(childElement, n); | List es = el.getChildren(); for (Object childElement : es) { createNoteFromElement((Element) childElement, n); | private Note createNoteFromElement(Element el, Note parent) { if (!el.getName().equals("note")) { throw new KoalaException("Koala Notes could not build a document from file '" + file.getName() + "': expected a note element but got a " + el.getName() + "."); } ... | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/3a42882d7687c939a3d79fde4e95147320c11b2c/Document.java/buggy/trunk/src/de/berlios/koalanotes/data/Document.java |
this("", -1); | this("", 0); | public SourcePosition() { this("", -1); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/SourcePosition.java/clean/src/org/jruby/lexer/yacc/SourcePosition.java |
objectClass.definePrivateMethod("initialize", CallbackFactory.getNilMethod()); classClass.definePrivateMethod("inherited", CallbackFactory.getNilMethod()); | objectClass.definePrivateMethod("initialize", CallbackFactory.getNilMethod(-1)); classClass.definePrivateMethod("inherited", CallbackFactory.getNilMethod(1)); | public void initCoreClasses() { objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); RubyClass metaClass = objectClass.makeMetaClass(classClass); metaClass = moduleClass.makeMetaCla... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyClasses.java/buggy/org/jruby/RubyClasses.java |
IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); | public void changePermissions(final IObject iObject, final Permissions perms) { AdminAction action = new AdminAction(){ public void runAsAdmin() { IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Permissions p = new Permissions(perms); // FIXME ticket:215 copy.g... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/da4ebe56158dd4669ac969c0f1a4e4c8f2c00852/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java | |
IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); | public void runAsAdmin() { IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Permissions p = new Permissions(perms); // FIXME ticket:215 copy.getDetails().setPermissions(p); iUpdate.saveObject(copy); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/da4ebe56158dd4669ac969c0f1a4e4c8f2c00852/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java | |
rubyObject = new RubyObject(ruby, ruby.getClasses().getObjectClass()); | rubyObject = ruby.getFactory().newObject(ruby.getClasses().getObjectClass()); | public void setUp() { ruby = Ruby.getDefaultInstance(null); rubyObject = new RubyObject(ruby, ruby.getClasses().getObjectClass()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/TestRubyObject.java/buggy/org/jruby/test/TestRubyObject.java |
IconManager icons = IconManager.getInstance(); statusBar = new StatusBar(icons.getIcon(IconManager.STATUS_INFO)); | statusBar = new StatusBar(controller); | void initialize(TreeViewerControl controller, TreeViewerModel model) { this.controller = controller; this.model = model; IconManager icons = IconManager.getInstance(); statusBar = new StatusBar(icons.getIcon(IconManager.STATUS_INFO)); statusBar.addPropertyChangeListener(control... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/83e42c21eb5c1f3394496ff33c72723a58274a2a/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java |
void onStateChanged(boolean b) { tabs.setEnabled(b); } | void onStateChanged(boolean b) { Map browsers = model.getBrowsers(); if (browsers != null) { Iterator i = browsers.keySet().iterator(); while (i.hasNext()) { ((Browser) browsers.get(i.next())).onComponentStateChange(b); } } tabs.setEnabled(b); } | void onStateChanged(boolean b) { tabs.setEnabled(b); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/83e42c21eb5c1f3394496ff33c72723a58274a2a/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java |
public void runAnn(String name, Class c){ | private void runAnn(String name, Class c){ | public void runAnn(String name, Class c){ // Class, Set<Container>, Map //q = PojosQueryBuilder.buildAnnsQuery(c,po.map()); m.remove("exp"); // unused n = name;go(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/buggy/components/server/test/ome/server/itests/PojosDaoTest.java |
public void runFind(String name, Class c){ | private void runFind(String name, Class c){ | public void runFind(String name, Class c){ // Class, Set<Image>, options //q = PojosQueryBuilder.buildFindQuery(c,po.map()); n = name;go(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/buggy/components/server/test/ome/server/itests/PojosDaoTest.java |
public void runGet(String name, Class c){ | private void runGet(String name, Class c){ | public void runGet(String name, Class c){ // Class, Set<Container>, Map //q = PojosQueryBuilder.buildGetQuery(c,po.map()); n = name;go(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/buggy/components/server/test/ome/server/itests/PojosDaoTest.java |
public void runLoad(String name, Class c){ | private void runLoad(String name, Class c){ | public void runLoad(String name, Class c){ // Class, Set<Container>, options //q = PojosQueryBuilder.buildLoadQuery(c,false,po.map()); n = name;go(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/buggy/components/server/test/ome/server/itests/PojosDaoTest.java |
public void runPaths(String name, String algorithm){ | private void runPaths(String name, String algorithm){ | public void runPaths(String name, String algorithm){ // Set<Image>, Algorithm options //q = PojosQueryBuilder.buildPathsQuery(algorithm,po.map()); n = name;go(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/buggy/components/server/test/ome/server/itests/PojosDaoTest.java |
presentation.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { onWindowClose(); } }); | void attachListener() { tSlider = presentation.getTSlider(); zSlider = presentation.getZSlider(); tSlider.addChangeListener(this); zSlider.addChangeListener(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | |
if (!roiOnOff) presentation.removeFromLayer(); else { | if (!roiOnOff){ presentation.getBottomBar().resetMessage(BottomBar.LENS); presentation.removeCanvasFromLayer(); } else { presentation.getBottomBar().resetMessage(BottomBar.ANNOTATE); | public void setRoiOnOff(boolean b) { roiOnOff = b; if (!roiOnOff) presentation.removeFromLayer(); else { paintDrawing(); presentation.addToLayer(); presentation.resetLens(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java |
presentation.addToLayer(); | presentation.addCanvasToLayer(); | public void setRoiOnOff(boolean b) { roiOnOff = b; if (!roiOnOff) presentation.removeFromLayer(); else { paintDrawing(); presentation.addToLayer(); presentation.resetLens(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java |
if (imageInspector != null) imageInspector.getManager().setLensEnabled(!b); | public void setRoiOnOff(boolean b) { roiOnOff = b; if (!roiOnOff) presentation.removeFromLayer(); else { paintDrawing(); presentation.addToLayer(); presentation.resetLens(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | |
{ | { | public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java |
if (roiOnOff) abstraction.addRoiCanvas(false); | if (roiOnOff) imageInspector.getManager().setLensEnabled(false); | public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); UIUtilities.centerAndShow(imageInspector); if (roiOnOff) abstraction.addRoiCanvas(false); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java |
public void showRendering() { abstraction.showRendering(); } | public void showRendering() { abstraction.showRendering(); } | public void showRendering() { abstraction.showRendering(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java |
RubyClass newClass = new RubyClass(getRuntime(), getRuntime().getClasses().getClassClass(), this, parentModule, name); | Ruby runtime = getRuntime(); RubyClass newClass = new RubyClass(runtime, runtime.getClasses().getClassClass(), this, parentModule, name); | public RubyClass newSubClass(String name, RubyModule parentModule) { RubyClass newClass = new RubyClass(getRuntime(), getRuntime().getClasses().getClassClass(), this, parentModule, name); newClass.makeMetaClass(getMetaClass()); newClass.inheritedBy(this); getRuntime().getClasses().putCla... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/750e66982e97bcb72545a39ceacf6ee32a52a135/RubyClass.java/clean/src/org/jruby/RubyClass.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.