rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } }; } | Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } }; } | private IProgressMonitor getEventLoopMonitor() { return new EventLoopProgressMonitor(new NullProgressMonitor()) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor#setBlocked(org... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } | Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } | public void setBlocked(IStatus reason) { //Set a shell to open with as we want to create this //even if there is a modal shell. Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultPa... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
try { manager.beginRule(rule, ((Workbench)PlatformUI.getWorkbench()).isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e... | try { manager.beginRule(rule, ((Workbench) PlatformUI.getWorkbench()) .isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException... | public void run() { try { manager.beginRule(rule, ((Workbench)PlatformUI.getWorkbench()).isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
final ProgressMonitorJobsDialog dialog) { | final ProgressMonitorJobsDialog dialog) { | private void scheduleProgressMonitorJob( final ProgressMonitorJobsDialog dialog) { final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { setUserInterfaceActive(true); if (ProgressManager... | final WorkbenchJob updateJob = new WorkbenchJob( ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { setUserInterfaceActive(true); if (ProgressManage... | private void scheduleProgressMonitorJob( final ProgressMonitorJobsDialog dialog) { final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(getLongOperationTime()); | return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(getLongOperationTime()); | private void scheduleProgressMonitorJob( final ProgressMonitorJobsDialog dialog) { final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
} | } | private void scheduleProgressMonitorJob( final ProgressMonitorJobsDialog dialog) { final WorkbenchJob updateJob = new WorkbenchJob(ProgressMessages.ProgressManager_openJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
setUserInterfaceActive(true); if (ProgressManagerUtil.safeToOpen(dialog,null)) { | setUserInterfaceActive(true); if (ProgressManagerUtil.safeToOpen(dialog, null)) { | public IStatus runInUIThread(IProgressMonitor monitor) { setUserInterfaceActive(true); if (ProgressManagerUtil.safeToOpen(dialog,null)) { dialog.open(); } return Status.OK_STATUS; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
return Status.OK_STATUS; } | return Status.OK_STATUS; } | public IStatus runInUIThread(IProgressMonitor monitor) { setUserInterfaceActive(true); if (ProgressManagerUtil.safeToOpen(dialog,null)) { dialog.open(); } return Status.OK_STATUS; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
public void setShowSystemJobs(boolean showSystem) { ProgressViewUpdater updater = ProgressViewUpdater.getSingleton(); updater.debug = showSystem; updater.refreshAll(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | ||
throws MalformedURLException { JFaceResources.getImageRegistry().put(key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); } | throws MalformedURLException { JFaceResources.getImageRegistry().put(key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); } | private void setUpImage(URL iconsRoot, String fileName, String key) throws MalformedURLException { JFaceResources.getImageRegistry().put(key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
IWorkbench workbench = PlatformUI.getWorkbench(); Shell[] shells = workbench.getDisplay().getShells(); if (active) { for (int i = 0; i < shells.length; i++) { shells[i].setEnabled(active); } } else { for (int i = shells.length-1; i >= 0; i--) { shells[i].setEnabled(active); } } } | IWorkbench workbench = PlatformUI.getWorkbench(); Shell[] shells = workbench.getDisplay().getShells(); if (active) { for (int i = 0; i < shells.length; i++) { shells[i].setEnabled(active); } } else { for (int i = shells.length - 1; i >= 0; i--) { shells[i].setEnabled(active); } } } | private void setUserInterfaceActive(boolean active) { IWorkbench workbench = PlatformUI.getWorkbench(); Shell[] shells = workbench.getDisplay().getShells(); if (active) { for (int i = 0; i < shells.length; i++) { shells[i].setEnabled(active); } } else {... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
return WorkbenchPlugin.getDefault().getPreferenceStore().getBoolean( IPreferenceConstants.RUN_IN_BACKGROUND); } | return WorkbenchPlugin.getDefault().getPreferenceStore().getBoolean( IPreferenceConstants.RUN_IN_BACKGROUND); } | private boolean shouldRunInBackground() { return WorkbenchPlugin.getDefault().getPreferenceStore().getBoolean( IPreferenceConstants.RUN_IN_BACKGROUND); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
if (shouldRunInBackground()) { | if (shouldRunInBackground()) { | public void showInDialog(Shell shell, Job job) { if (shouldRunInBackground()) { return; } final ProgressMonitorFocusJobDialog dialog = new ProgressMonitorFocusJobDialog( shell); dialog.show(job,shell); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
final ProgressMonitorFocusJobDialog dialog = new ProgressMonitorFocusJobDialog( shell); dialog.show(job,shell); } | final ProgressMonitorFocusJobDialog dialog = new ProgressMonitorFocusJobDialog( shell); dialog.show(job, shell); } | public void showInDialog(Shell shell, Job job) { if (shouldRunInBackground()) { return; } final ProgressMonitorFocusJobDialog dialog = new ProgressMonitorFocusJobDialog( shell); dialog.show(job,shell); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
synchronized (listenersKey) { this.listeners = new IJobProgressManagerListener[0]; } Platform.getJobManager().setProgressProvider(null); Platform.getJobManager().removeJobChangeListener(this.changeListener); } | synchronized (listenersKey) { this.listeners = new IJobProgressManagerListener[0]; } Platform.getJobManager().setProgressProvider(null); Platform.getJobManager().removeJobChangeListener(this.changeListener); } | private void shutdown() { synchronized (listenersKey) { this.listeners = new IJobProgressManagerListener[0]; } Platform.getJobManager().setProgressProvider(null); Platform.getJobManager().removeJobChangeListener(this.changeListener); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
if (singleton == null) { | if (singleton == null) { | public static void shutdownProgressManager() { if (singleton == null) { return; } singleton.shutdown(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
singleton.shutdown(); } | singleton.shutdown(); } | public static void shutdownProgressManager() { if (singleton == null) { return; } singleton.shutdown(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setRemoteAddr(String remoteAddr) { if (((remoteAddr == null) && (_remoteAddr != null)) || ((remoteAddr != null) && (_remoteAddr == null)) || ((remoteAddr != null) && (_remoteAddr != null) && !remoteAddr.equals(_remoteAddr))) { if (!XSS_ALLOW_REMOTEADDR) { remoteAddr = XSSUtil.strip(remoteAdd... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setRemoteHost(String remoteHost) { if (((remoteHost == null) && (_remoteHost != null)) || ((remoteHost != null) && (_remoteHost == null)) || ((remoteHost != null) && (_remoteHost != null) && !remoteHost.equals(_remoteHost))) { if (!XSS_ALLOW_REMOTEHOST) { remoteHost = XSSUtil.strip(remoteHos... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setUserAgent(String userAgent) { if (((userAgent == null) && (_userAgent != null)) || ((userAgent != null) && (_userAgent == null)) || ((userAgent != null) && (_userAgent != null) && !userAgent.equals(_userAgent))) { if (!XSS_ALLOW_USERAGENT) { userAgent = XSSUtil.strip(userAgent); } _us... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
setModified(true); | public void setUserTrackerId(String userTrackerId) { if (((userTrackerId == null) && (_userTrackerId != null)) || ((userTrackerId != null) && (_userTrackerId == null)) || ((userTrackerId != null) && (_userTrackerId != null) && !userTrackerId.equals(_userTrackerId))) { if (!XSS_ALLOW_USERTRACKERID) { use... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerModel.java/buggy/portal-ejb/src/com/liferay/portal/model/UserTrackerModel.java | |
if (changeListeners == null) { boolean hadListeners = hasListeners(); changeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (changeListeners instanceof IChangeListener) { IChangeListener l = (IChangeListener) changeListeners; listenerList = new ArrayList(); lis... | changeSupport.addChangeListener(listener); | public synchronized void addChangeListener(IChangeListener listener) { if (changeListeners == null) { boolean hadListeners = hasListeners(); changeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (changeListeners instanceof IChangeListener) { I... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (listChangeListeners == null) { boolean hadListeners = hasListeners(); listChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (listChangeListeners instanceof Collection) { listenerList = (Collection) listChangeListeners; } else { IListChangeListener l = (I... | changeSupport.addListener(ListChangeEvent.TYPE, listener); | public synchronized void addListChangeListener(IListChangeListener listener) { if (listChangeListeners == null) { boolean hadListeners = hasListeners(); listChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (listChangeListeners instanceof Co... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (staleListeners == null) { boolean hadListeners = hasListeners(); staleListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (staleListeners instanceof IStaleListener) { IStaleListener l = (IStaleListener) staleListeners; listenerList = new ArrayList(); listenerLi... | changeSupport.addStaleListener(listener); | public synchronized void addStaleListener(IStaleListener listener) { if (staleListeners == null) { boolean hadListeners = hasListeners(); staleListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (staleListeners instanceof IStaleListener) { IStaleL... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
listChangeListeners = null; changeListeners = null; staleListeners = null; | changeSupport = null; | public synchronized void dispose() { listChangeListeners = null; changeListeners = null; staleListeners = null; lastListenerRemoved(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (changeListeners == null) { return; } if (changeListeners instanceof IChangeListener) { ((IChangeListener) changeListeners).handleChange(this); return; } Collection changeListenerCollection = (Collection) changeListeners; IChangeListener[] listeners = (IChangeListener[]) (changeListenerCollection) .toArray(new I... | changeSupport.fireEvent(new ChangeEvent(this)); | protected void fireChange() { checkRealm(); if (changeListeners == null) { return; } if (changeListeners instanceof IChangeListener) { ((IChangeListener) changeListeners).handleChange(this); return; } Collection changeListenerCollection = (Collection) changeListeners; IChangeListener[] listeners = (IChang... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (listChangeListeners == null) { return; } if (listChangeListeners instanceof IListChangeListener) { ((IListChangeListener) listChangeListeners).handleListChange(this, diff); return; } Collection changeListenerCollection = (Collection) listChangeListeners; IListChangeListener[] listeners = (IListChangeListener[])... | changeSupport.fireEvent(new ListChangeEvent(this, diff)); | protected void fireListChange(ListDiff diff) { // fire general change event first fireChange(); if (listChangeListeners == null) { return; } if (listChangeListeners instanceof IListChangeListener) { ((IListChangeListener) listChangeListeners).handleListChange(this, diff); return; } Collection changeLi... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (staleListeners == null) { return; } if (staleListeners instanceof IChangeListener) { ((IChangeListener) staleListeners).handleChange(this); return; } Collection changeListenerCollection = (Collection) staleListeners; IChangeListener[] listeners = (IChangeListener[]) (changeListenerCollection) .toArray(new IChan... | changeSupport.fireEvent(new StaleEvent(this)); | protected void fireStale() { checkRealm(); if (staleListeners == null) { return; } if (staleListeners instanceof IChangeListener) { ((IChangeListener) staleListeners).handleChange(this); return; } Collection changeListenerCollection = (Collection) staleListeners; IChangeListener[] listeners = (IChangeList... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (changeListeners == listener) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (changeListeners instanceof Collection) { Collection listenerList = (Collection) changeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { changeListeners = null; if (!hasListener... | changeSupport.removeChangeListener(listener); | public synchronized void removeChangeListener(IChangeListener listener) { if (changeListeners == listener) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (changeListeners instanceof Collection) { Collection listenerList = (Collection) changeListeners; listenerL... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChangeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { listChangeListeners = n... | changeSupport.removeListener(ListChangeEvent.TYPE, listener); | public synchronized void removeListChangeListener(IListChangeListener listener) { if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChan... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (staleListeners == listener) { staleListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (staleListeners instanceof Collection) { Collection listenerList = (Collection) staleListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { staleListeners = null; if (!hasListeners()) ... | changeSupport.removeStaleListener(listener); | public synchronized void removeStaleListener(IStaleListener listener) { if (staleListeners == listener) { staleListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (staleListeners instanceof Collection) { Collection listenerList = (Collection) staleListeners; listenerList.re... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java |
if (passwordTracker.isNew() || passwordTracker.isModified()) { session = openSession(); if (passwordTracker.isNew()) { PasswordTracker passwordTrackerModel = new PasswordTracker(); passwordTrackerModel.setPasswordTrackerId(passwordTracker.getPasswordTrackerId()); passwordTrackerModel.setUserId(passwordTracker.getUserI... | session = openSession(); session.saveOrUpdate(passwordTracker); session.flush(); passwordTracker.setNew(false); | public com.liferay.portal.model.PasswordTracker update( com.liferay.portal.model.PasswordTracker passwordTracker) throws SystemException { Session session = null; try { if (passwordTracker.isNew() || passwordTracker.isModified()) { session = openSession(); if (passwordTracker.isNew()) { PasswordTracker... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PasswordTrackerPersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/PasswordTrackerPersistence.java |
return RubyFixnum.newFixnum(runtime, | return runtime.newFixnum( | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeShortUnsignedLittleEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, | return runtime.newFixnum( | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeIntUnsignedLittleEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, | return runtime.newFixnum( | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeIntUnsignedBigEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, decodeIntBigEndian(enc)); | return runtime.newFixnum(decodeIntBigEndian(enc)); | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeIntBigEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, decodeShortBigEndian(enc)); | return runtime.newFixnum(decodeShortBigEndian(enc)); | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeShortBigEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, | return runtime.newFixnum( | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, decodeShortUnsignedBigEndian(enc)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, c > (char) 127 ? c-256 : c); | return runtime.newFixnum(c > (char) 127 ? c-256 : c); | public IRubyObject decode(Ruby runtime, PtrList enc) { int c = enc.nextChar(); return RubyFixnum.newFixnum(runtime, c > (char) 127 ? c-256 : c); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyFixnum.newFixnum(runtime, enc.nextChar()); | return runtime.newFixnum(enc.nextChar()); | public IRubyObject decode(Ruby runtime, PtrList enc) { return RubyFixnum.newFixnum(runtime, enc.nextChar()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static int encode(Ruby runtime, int occurrences, StringBuffer result, List list, int index, Converter converter) { int listSize = list.size(); while (occurrences-- > 0) { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError( runtime, | throw runtime.newArgumentError( | private static StringBuffer encodes(Ruby runtime, StringBuffer io2Append, String i2Encode, int iLength, char iType) { iLength = iLength < i2Encode.length() ? iLength : i2Encode.length(); io2Append.ensureCapacity(iLength * 4 / 3 + 6); int i = 0; char[] lTranslationTable = iType == 'u' ? u... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "'" + next + | throw runtime.newArgumentError("'" + next + | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "% is not supported"); | throw runtime.newArgumentError("% is not supported"); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "in `pack': X outside of string"); | throw runtime.newArgumentError("in `pack': X outside of string"); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return RubyString.newString(runtime, result.toString()); | return runtime.newString(result.toString()); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
RubyArray result = RubyArray.newArray(runtime); | RubyArray result = runtime.newArray(); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "'" + next + | throw runtime.newArgumentError("'" + next + | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "% is not supported"); | throw runtime.newArgumentError("% is not supported"); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, potential)); | result.append(runtime.newString(potential)); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, potential)); | result.append(runtime.newString(potential)); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, encode.nextSubstring(occurrences))); | result.append(runtime.newString(encode.nextSubstring(occurrences))); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, lElem.toString())); | result.append(runtime.newString(lElem.toString())); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, lElem.toString())); | result.append(runtime.newString(lElem.toString())); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, lElem.toString())); | result.append(runtime.newString(lElem.toString())); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyString.newString(runtime, lElem.toString())); | result.append(runtime.newString(lElem.toString())); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
result.append(RubyFixnum.newFixnum(runtime, c[lCurCharIdx])); | result.append(runtime.newFixnum(c[lCurCharIdx])); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "in `unpack': X outside of string"); | throw runtime.newArgumentError("in `unpack': X outside of string"); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
throw new ArgumentError(runtime, "in `unpack': x outside of string"); | throw runtime.newArgumentError("in `unpack': x outside of string"); | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, enco... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/buggy/src/org/jruby/util/Pack.java |
return lineHeight(context, style); | return lineHeight(context); | public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context, style); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java |
return getFont(c, style); | Font f = c.getGraphics().getFont(); if (quick) { return f; } float size = style.propertyByName(CSSName.FONT_SIZE).computedValue().asFloat(); String weight = style.propertyByName(CSSName.FONT_WEIGHT).computedValue().asString(); String[] families = style.propertyByName(CSSName.FONT_FAMILY).computedValue().asStringArr... | public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); return getFont(c, style); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java |
CalculatedStyle style = c.getCurrentStyle(); | public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java | |
getFont(c, style), box.getSubstring()); | getFont(c), box.getSubstring()); | public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java |
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { | public static int lineHeight(Context c) { CalculatedStyle style = c.getCurrentStyle(); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c), "Test").getHeight()); if (!style.propertyByName(CSSName.LINE_HEIGHT).computedValue().cssValue().getCssText().equals("normal")) { | public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEI... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java |
Iterator startListeners = busyListenersForJob(event.getJob()).iterator(); while(startListeners.hasNext()){ IJobBusyListener next = (IJobBusyListener) startListeners.next(); next.decrementBusy(event.getJob()); } | private void createChangeListener() { changeListener = new JobChangeAdapter() { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void aboutToRun... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cd7c319063c31bff9b7288c8ad799363b2c3f2b1/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | |
Iterator startListeners = busyListenersForJob(event.getJob()).iterator(); while(startListeners.hasNext()){ IJobBusyListener next = (IJobBusyListener) startListeners.next(); next.incrementBusy(event.getJob()); } | public void aboutToRun(IJobChangeEvent event) { JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); if (event.getJob().isUser()) { boolean inDialog = WorkbenchPlugin .getDefault() ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cd7c319063c31bff9b7288c8ad799363b2c3f2b1/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | |
Iterator startListeners = busyListenersForJob(event.getJob()).iterator(); while(startListeners.hasNext()){ IJobBusyListener next = (IJobBusyListener) startListeners.next(); next.decrementBusy(event.getJob()); } | public void done(IJobChangeEvent event) { if (!PlatformUI.isWorkbenchRunning()) return; JobInfo info = getJobInfo(event.getJob()); if (event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob() ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cd7c319063c31bff9b7288c8ad799363b2c3f2b1/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | |
allWhitespace = false; | public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Objec... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f42b421383cc638581563923e0f4301d1a776e8/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java | |
List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); | for (Iterator i = list.iterator(); i.hasNext();) { if (i.next() instanceof TextContent) { i.remove(); | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f42b421383cc638581563923e0f4301d1a776e8/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
for (int i = 0; i < remove_list.size(); i++) { list.remove(remove_list.get(i)); } | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f42b421383cc638581563923e0f4301d1a776e8/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java | |
ruby.defineReadonlyVariable("$!", ruby.getNil()); | public RubyObject eval(Ruby ruby, RubyObject self) { RescuedBlock: while (true) { try { // Execute recued Block RubyObject result = getHeadNode().eval(ruby, self); // If no exception is thrown execute else Block if (getElseNode() != null)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0240686adf37f131cfc2bf0b05872198ea588dd4/RescueNode.java/buggy/org/jruby/nodes/RescueNode.java | |
super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaConstructor")); | super(runtime, runtime.getModule("Java").getClass("JavaConstructor")); | public JavaConstructor(Ruby runtime, Constructor constructor) { super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaConstructor")); this.constructor = constructor; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaConstructor.java/clean/src/org/jruby/javasupport/JavaConstructor.java |
javaModule.defineClassUnder("JavaConstructor", runtime.getClasses().getObjectClass()); | javaModule.defineClassUnder("JavaConstructor", runtime.getObject()); | public static RubyClass createJavaConstructorClass(Ruby runtime, RubyModule javaModule) { RubyClass result = javaModule.defineClassUnder("JavaConstructor", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(JavaConstructor.class); Ja... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaConstructor.java/clean/src/org/jruby/javasupport/JavaConstructor.java |
outerBox.setMarginWidth(new Border(0, 0, 0, 0)); | c.pushStyle(CascadedStyle.emptyCascadedStyle); outerBox.setStyle(new Style(c.getCurrentStyle(), 0, c.getCtx())); c.popStyle(); | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
tableBox.setMarginTopOverride(0f); | tableBox.getStyle().setMarginTopOverride(0f); | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
tableBox.setMarginBottomOverride(0f); | tableBox.getStyle().setMarginBottomOverride(0f); | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
tableBox.setMarginWidth(c, (float) oe.getWidth()); Border margin = tableBox.getMarginWidth(); | Border margin = tableBox.getStyle().getMarginWidth(); | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
cell.setMarginWidth(c, c.getExtents().width); | cell.setStyle(new Style(c.getCurrentStyle(), (float) c.getExtents().width, c.getCtx())); | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); boolean hasSpecifiedHeight = !style.isIdent(CSSName.HEIGHT, IdentValue.AUTO); hasSpecifiedHeight = hasSpecifiedHeight && style.propertyByName(CSSName.HEIGHT).computedValue().hasAbsoluteUnit(); | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
if (hasSpecifiedWidth) { | if (!cell.getStyle().isAutoWidth()) { | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
if (hasSpecifiedHeight) { | if (!cell.getStyle().isAutoHeight()) { | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
cell.auto_height = false; | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
if (cell.auto_height == false) { | if (!cell.getStyle().isAutoHeight()) { | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java |
row.setMarginWidth(c, (float) oe.getWidth()); | private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); row.s... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
row.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c.getCtx())); | private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); row.s... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? //Uu.p("box on: " + box); //Uu.p("is inline element = " + box.isInlineElement()); //Uu.p("text content = " + (box.content instanceof TextContent)); if (isBlockOrInlineElementBox(box)) { // if... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/13c62f942cf10401fce3541f4f6970cf6d291755/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java | ||
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? //Uu.p("box on: " + box); //Uu.p("is inline element = " + box.isInlineElement()); //Uu.p("text content = " + (box.content instanceof TextContent)); if (isBlockOrInlineElementBox(box)) { // if... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/13c62f942cf10401fce3541f4f6970cf6d291755/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java | ||
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? //Uu.p("box on: " + box); //Uu.p("is inline element = " + box.isInlineElement()); //Uu.p("text content = " + (box.content instanceof TextContent)); if (isBlockOrInlineElementBox(box)) { // if... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/13c62f942cf10401fce3541f4f6970cf6d291755/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java | ||
fScanner.setPartialRange(d, reparseStart, d.getLength(), contentType, partitionStart); | fScanner.setPartialRange(d, reparseStart, d.getLength() - reparseStart, contentType, partitionStart); | public IRegion documentChanged2(DocumentEvent e) { try { IDocument d= e.getDocument(); Position[] category= d.getPositions(CONTENT_TYPES_CATEGORY); IRegion line= d.getLineInformationOfOffset(e.getOffset()); int reparseStart= line.getOffset(); int partitionStart= 0; String contentType= null; ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1e89ed4f435a1d935b1b83c322ba5c469d0667c7/DefaultPartitioner.java/buggy/bundles/org.eclipse.ui/Eclipse JFace Text/org/eclipse/jface/text/rules/DefaultPartitioner.java |
if (orgLabor.isNew() || orgLabor.isModified()) { session = openSession(); if (orgLabor.isNew()) { OrgLabor orgLaborModel = new OrgLabor(); orgLaborModel.setOrgLaborId(orgLabor.getOrgLaborId()); orgLaborModel.setOrganizationId(orgLabor.getOrganizationId()); orgLaborModel.setTypeId(orgLabor.getTypeId()); orgLaborModel.s... | session = openSession(); session.saveOrUpdate(orgLabor); session.flush(); orgLabor.setNew(false); | public com.liferay.portal.model.OrgLabor update( com.liferay.portal.model.OrgLabor orgLabor) throws SystemException { Session session = null; try { if (orgLabor.isNew() || orgLabor.isModified()) { session = openSession(); if (orgLabor.isNew()) { OrgLabor orgLaborModel = new OrgLabor(); orgLaborModel... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/OrgLaborPersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/OrgLaborPersistence.java |
modules[i].callMethod("included", this); | public RubyModule include(IRubyObject[] modules) { for (int i = modules.length - 1; i >= 0; i--) { modules[i].callMethod("append_features", this); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java | |
throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); | throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); | public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.