rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener) */ public void addListener(ILabelProviderListener listener) { }
ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap();
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() */ public void dispose() { if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter.hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } }
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener) */ public void addListener(ILabelProviderListener listener) { }
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo)element).getJob()); }
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() */ public void dispose() { if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter .hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } }
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * Get the icon for the job. Code copied from NewProgressViewer */ private Image getIcon(Job job) { if (job != null) { Object property = job.getProperty(IProgressConstants.ICON_PROPERTY); Image im = (Image)imageTable.get(property); if (im != null) { return im; } Display display = getShell().getDisplay(); if (pro...
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo) element).getJob()); }
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object, * java.lang.String) */ public boolean isLabelProperty(Object element, String property) { return false; }
/* * Get the icon for the job. Code copied from NewProgressViewer */ private Image getIcon(Job job) { if (job != null) {
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener) */ public void removeListener(ILabelProviderListener listener) { } }; jobListViewer.setLabelProvider(provider); }
Object property = job .getProperty(IProgressConstants.ICON_PROPERTY); Image im = (Image) imageTable.get(property); if (im != null) { return im; } Display display = getShell().getDisplay(); if (property instanceof ImageDescriptor) { im = ((ImageDescriptor) property).createImage(display); imageTable.put(property, im)...
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
}
}
public void addListener(ILabelProviderListener listener) { //Do nothing }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter.hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } }
if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter .hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } }
public void dispose() { if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter.hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return getIcon(((ErrorInfo)element).getJob()); }
return getIcon(((ErrorInfo) element).getJob()); }
public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo)element).getJob()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return ((ErrorInfo) element).getDisplayString(); }
return ((ErrorInfo) element).getDisplayString(); }
public String getColumnText(Object element, int columnIndex) { return ((ErrorInfo) element).getDisplayString(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
if (job != null) { Object property = job.getProperty(IProgressConstants.ICON_PROPERTY); Image im = (Image)imageTable.get(property); if (im != null) { return im; } Display display = getShell().getDisplay(); if (property instanceof ImageDescriptor) { im = ((ImageDescriptor) property).createImage(display); imageTable...
if (job != null) { Object property = job .getProperty(IProgressConstants.ICON_PROPERTY); Image im = (Image) imageTable.get(property); if (im != null) { return im; } Display display = getShell().getDisplay(); if (property instanceof ImageDescriptor) { im = ((ImageDescriptor) property).createImage(display); imageTab...
private Image getIcon(Job job) { if (job != null) { Object property = job.getProperty(IProgressConstants.ICON_PROPERTY); // If we already have an image cached, return it Image im = (Image)imageTab...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return false; }
return false; }
public boolean isLabelProperty(Object element, String property) { return false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
}
}
public void removeListener(ILabelProviderListener listener) { //Do nothing }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
refresh(); super.initializeBounds(); Rectangle shellPosition = getShell().getBounds(); ProgressManagerUtil.animateUp(shellPosition); }
refresh(); super.initializeBounds(); Rectangle shellPosition = getShell().getBounds(); ProgressManagerUtil.animateUp(shellPosition); }
protected void initializeBounds() { // We need to refesh here instead of in createContents // because the showDetailsArea requires that the content // composite be set refresh(); super.initializeBounds(); Rectangle shellPosition = getShell().getBounds(); ProgressMana...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
return getManager().getErrors().size() > 1; }
return getManager().getErrors().size() > 1; }
private boolean isMultipleJobErrors() { return getManager().getErrors().size() > 1; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); if (!store.contains(PREF_SKIP_GOTO_ACTION_PROMPT) || !store.getString(PREF_SKIP_GOTO_ACTION_PROMPT).equals(MessageDialogWithToggle.ALWAYS)) { MessageDialogWithToggle dialog = MessageDialogWithToggle.openOkCancelConfirm(getShell(), ProgressMessa...
IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); if (!store.contains(PREF_SKIP_GOTO_ACTION_PROMPT) || !store.getString(PREF_SKIP_GOTO_ACTION_PROMPT).equals( MessageDialogWithToggle.ALWAYS)) { MessageDialogWithToggle dialog = MessageDialogWithToggle .openOkCancelConfirm( getShell(), ProgressM...
private boolean isPromptToClose() { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); if (!store.contains(PREF_SKIP_GOTO_ACTION_PROMPT) || !store.getString(PREF_SKIP_GOTO_ACTION_PROMPT).equals(MessageDialogWithToggle.ALWAYS)) { MessageDialogWithToggle dialog = Message...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
if (jobListViewer != null && !jobListViewer.getControl().isDisposed()) { jobListViewer.refresh(); Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(newSize); } setStatus(selectedError.getErrorStatus()); }
if (jobListViewer != null && !jobListViewer.getControl().isDisposed()) { jobListViewer.refresh(); Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(newSize); } setStatus(selectedError.getErrorStatus()); }
void refreshJobList() { if (jobListViewer != null && !jobListViewer.getControl().isDisposed()) { jobListViewer.refresh(); Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(newSize); } setStatus(selectedError.getErrorStatus()); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
message = messageString == null ? "" : messageString; if (messageLabel == null || messageLabel.isDisposed()) {
message = messageString == null ? "" : messageString; if (messageLabel == null || messageLabel.isDisposed()) {
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
messageLabel.setText(message); }
messageLabel.setText(message); }
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setEnabled(selectedError.getErrorStatus().isMultiStatus() || isMultipleJobErrors()); } Button gotoButton = getButton(GOTO_ACTION_ID); if (gotoButton != null) { IAction gotoAction = getGotoAction(); boolean hasValidGotoAction = gotoA...
Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setEnabled(selectedError.getErrorStatus().isMultiStatus() || isMultipleJobErrors()); } Button gotoButton = getButton(GOTO_ACTION_ID); if (gotoButton != null) { IAction gotoAction = getGotoAction(); boolean hasValidGotoAction = gotoA...
private void updateEnablements() { Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setEnabled(selectedError.getErrorStatus().isMultiStatus() || isMultipleJobErrors()); } Button gotoButton = getButton(GOTO_ACTION_ID); if (gotoButto...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
Node parent = box.getNode().getParentNode();
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/810d20da09b135490001c813971ac26af6d13f00/VerticalAlign.java/clean/src/java/org/xhtmlrenderer/layout/inline/VerticalAlign.java
Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { parent = parent.getParentNode(); elem = (Element) box.getNode().getParentNode(); } else { elem = (Element) box.getNode(); } CalculatedStyle parent_style = c.css.getStyle(LineBreaker.getElement(parent)); Font parent_font = FontUtil.getFo...
Font parent_font = FontUtil.getFont(c, style);
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/810d20da09b135490001c813971ac26af6d13f00/VerticalAlign.java/clean/src/java/org/xhtmlrenderer/layout/inline/VerticalAlign.java
+ lastModifiedDate + " by '" + modifiedNick + "'";
+ lastModifiedDate + "("+ lastModifiedDate.getTime() +") by '" + modifiedNick + "'";
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f590cd83348221ff0b80ca42dbcf074366595061/FileInfo.java/buggy/src/main/de/dal33t/powerfolder/light/FileInfo.java
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
fireListChange(diff);
fireListChange(event.diff);
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
public void handleStale(IObservable source) {
public void handleStale(StaleEvent event) {
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
fireListChange(diff);
fireListChange(event.diff);
public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
public void handleStale(IObservable source) {
public void handleStale(StaleEvent event) {
public void handleStale(IObservable source) { fireStale(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
public HTMLTest(String[] args) { super(BASE_TITLE); panel = new XHTMLPanel(); int width = 360; int height = 500; panel.setPreferredSize(new Dimension(width, height)); JScrollPane scroll = new JScrollPane(panel); scroll.setVerticalScrollBarPolicy(scroll.VERTICAL_SCROL...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a821099cb0ae20c2cf9015c8152b89c95600f113/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
if (result == null) { return runtime.getNil(); } return result;
return result == null ? runtime.getNil() : result;
public IRubyObject getDynamicValue(String name) { IRubyObject result = ((DynamicVariableSet) dynamicVarsStack.peek()).get(name); if (result == null) { return runtime.getNil(); } return result; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) {
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) {
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
if (value == null) { value = RubyArray.newArray(runtime, 0);
INode blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { if (yieldProc && arrayLength(value) != 0) { throw new ArgumentError(runtime, "wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)"); } } else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { ...
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments);
IRubyObject[] args = ArgsUtil.arrayify(runtime, value);
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
null
StringPool.BLANK
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { String composeAction = ParamUtil.getString(req, "composeAction"); long messageId = ParamUtil.getLong(req, "messageId"); String folderId = ParamUtil.getString(req,...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/23b90c992f469f9cb81df80ca1493224982db7bd/EditMessageAction.java/buggy/portal-ejb/src/com/liferay/portlet/mailbox/action/EditMessageAction.java
getLogger().info("Mutation returned %s", sync.get());
getLogger().debug("Mutation returned %s", sync.get());
private long mutate(MutatorOperation.Mutator m, String key, int by) { final SynchronizationObject<Long> sync= new SynchronizationObject<Long>(null); conn.addOperation(getServerForKey(key), new MutatorOperation(m, key, by, new MutatorOperation.Callback() { public void mutatorResult(Long val) { if(val ==...
56561 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56561/c6550fbfa3915fd4cef04241f0940905c96dea0c/MemcachedClient.java/clean/src/java/net/spy/memcached/MemcachedClient.java
super();
public PerspectiveExtensionReader() { super();}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/faa16182e98feaa2242bb35fc3293c271dd882c6/PerspectiveExtensionReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveExtensionReader.java
else if (type.equals(TAG_SHOW_IN_PART)) result = processShowInPart(child);
private boolean processExtension(IConfigurationElement element) { IConfigurationElement [] children = element.getChildren(); for (int nX = 0; nX < children.length; nX ++) { IConfigurationElement child = children[nX]; String type = child.getName(); boolean result = false; if (type.equals(TAG_ACTION_SET)) result = ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/faa16182e98feaa2242bb35fc3293c271dd882c6/PerspectiveExtensionReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveExtensionReader.java
public void scansStarted(FolderRepositoryEvent e) {
public void maintenanceStarted(FolderRepositoryEvent e) {
private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/15856bebea0a30ff33b111b11f385a3e5bed19ad/Toolbar.java/buggy/src/main/de/dal33t/powerfolder/ui/Toolbar.java
public void scansFinished(FolderRepositoryEvent e) {
public void maintenanceFinished(FolderRepositoryEvent e) {
private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/15856bebea0a30ff33b111b11f385a3e5bed19ad/Toolbar.java/buggy/src/main/de/dal33t/powerfolder/ui/Toolbar.java
if (shoppingCategory.isNew() || shoppingCategory.isModified()) { session = openSession(); if (shoppingCategory.isNew()) { ShoppingCategory shoppingCategoryModel = new ShoppingCategory(); shoppingCategoryModel.setCategoryId(shoppingCategory.getCategoryId()); shoppingCategoryModel.setGroupId(shoppingCategory.getGroupId(...
session = openSession(); session.saveOrUpdate(shoppingCategory); session.flush(); shoppingCategory.setNew(false);
public com.liferay.portlet.shopping.model.ShoppingCategory update( com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) throws SystemException { Session session = null; try { if (shoppingCategory.isNew() || shoppingCategory.isModified()) { session = openSession(); if (shoppingCategory.isNe...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCategoryPersistence.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/service/persistence/ShoppingCategoryPersistence.java
isvToolBar.setVisible(makeVisible);
isvToolBar.setVisible(makeVisible && toolbarIsVisible());
public void setVisible(boolean makeVisible) { super.setVisible(makeVisible); if (isvToolBar != null) { isvToolBar.setVisible(makeVisible); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3f28e647de705950201fab4bfad13019c2d591c5/ViewPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewPane.java
if (isvToolBar != null) { Control ctrl = getControl(); boolean visible = ctrl != null && ctrl.isVisible() && toolbarIsVisible(); isvToolBar.setVisible(visible); }
private void toolBarResized(ToolBar toolBar, int newSize) { presentableAdapter.firePropertyChange(IPresentablePart.PROP_TOOLBAR); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3f28e647de705950201fab4bfad13019c2d591c5/ViewPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewPane.java
logger.info( "added a mouse motion listener: " + ma );
logger.info( "added mouse selection listener: " + ma ); HoverListener hl = new HoverListener(root.panel.view); root.panel.view.addMouseListener(hl); root.panel.view.addMouseMotionListener(hl); logger.info( "added hover listener:" + hl);
public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added a mouse motion listener: " + ma ); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/BrowserMenuBar.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
demos.add( new LoadAction( "Rollovers with :hover ", "demo:demos/hover.xhtml"));
public void createLayout() { file.add( root.actions.open_file ); file.add( root.actions.quit ); add( file ); edit.add( root.actions.cut ); edit.add( root.actions.copy ); edit.add( root.actions.paste ); add( edit ); view.add( view_source ); add( view ); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/BrowserMenuBar.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
public void init(ServletConfig sc) throws ServletException {
public void init(ServletConfig config) throws ServletException {
public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/040c2681e4d9add708033fd90dece3a20844ca53/ImageServlet.java/clean/portal-ejb/src/com/liferay/portal/servlet/ImageServlet.java
super.init(sc);
super.init(config);
public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/040c2681e4d9add708033fd90dece3a20844ca53/ImageServlet.java/clean/portal-ejb/src/com/liferay/portal/servlet/ImageServlet.java
panel.setInteractive(false);
public Graphics2DRenderer() { panel = new XHTMLPanel(); panel.setThreadedLayout(false); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/Graphics2DRenderer.java/clean/src/java/org/xhtmlrenderer/simple/Graphics2DRenderer.java
} catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [data.data.opt.radioRetries=0x"+Long.toHexString(get_data_data_opt_radioRetries())+"]\n";
public String toString() { String s = "Message <BroadcastPack> \n"; try { s += " [seqno=0x"+Long.toHexString(get_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [data.src=0x"+Long.toHexString(get_data_src())+"]\n"; } catch (A...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/BroadcastPack.java/clean/java/edu/rice/compass/comm/BroadcastPack.java
transferCopyEntities(toolId, oSiteId, nSiteId);
transferCopyEntities(toolId, ContentHostingService.getSiteCollection(oSiteId), ContentHostingService.getSiteCollection(nSiteId));
private void actionForTemplate ( String direction, int index, ParameterParser params, SessionState state) { // Continue - make any permanent changes, Back - keep any data entered on the form boolean forward = direction.equals("continue") ? true : false; SiteInfo siteInfo = new SiteInfo(); switch (index) { c...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/1826cb9a7cb9b374439b23ead2889220c8c511b9/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
item.setImage(new Image[table.getColumnCount()]);
item.setImage(new Image[Math.max(1,table.getColumnCount())]);
private void internalRefreshAll(boolean updateLabels) { // the parent // in the code below, it is important to do all disassociates // before any associates, since a later disassociate can undo an // earlier associate // e.g. if (a, b) is replaced by (b, a), the disassociate of b to // item 1 could undo // the ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6f01e16a16348b5563fc51478dbbe2bafe8764a1/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
HashMap envs = new HashMap(); envs.put(runtime.newString("HOME"), runtime.newString(System.getProperty("user.home"))); runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, runtime.getNil()));
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f67bf159b486fa2ceb3335f98a350e2e5fefe664/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
defineGlobalEnvConstants(runtime);
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f67bf159b486fa2ceb3335f98a350e2e5fefe664/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
RubyArray result = RubyArray.newArray(recv.getRuntime(), 2);
RubyArray result = recv.getRuntime().newArray(2);
public static RubyArray frexp(IRubyObject recv, RubyNumeric other) { double mantissa = other.getDoubleValue(); short sign = 1; double exponent = 0; if (mantissa != 0.0) { // Make mantissa same sign so we only have one code path. if (mantissa < 0) { ma...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMath.java/clean/src/org/jruby/RubyMath.java
if ( c.debugDrawFontMetrics() ) { g.setColor(Color.red); g.drawLine(ix,iy, ix+inline.width, iy); iy += lm.getDescent(); g.drawLine(ix,iy, ix+inline.width, iy); iy -= lm.getDescent(); iy -= lm.getAscent(); g.drawLine(ix,iy, ix+inline.width, iy); }
private void paintInline( Context c, InlineBox inline, int lx, int ly, LineBox line ) { if ( InlineLayout.isReplaced( inline.node ) ) { //u.p("painting a replaced block: " + inline); c.translate( line.x, line.y + ( line.baseline - inline.height ) ); Renderer rend = LayoutFact...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e79f8be3a1eeb16a1f4aa765b39fbfb66b65bdc9/InlineRenderer.java/buggy/src/java/org/xhtmlrenderer/render/InlineRenderer.java
RubyObject result = null;
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/EnsureNode.java/clean/org/jruby/nodes/EnsureNode.java
result = getHeadNode().eval(ruby, self);
return getHeadNode().eval(ruby, self);
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/EnsureNode.java/clean/org/jruby/nodes/EnsureNode.java
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/EnsureNode.java/clean/org/jruby/nodes/EnsureNode.java
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/EnsureNode.java/clean/org/jruby/nodes/EnsureNode.java
return result;
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/EnsureNode.java/clean/org/jruby/nodes/EnsureNode.java
BrowserStartup bs = new BrowserStartup();
final BrowserStartup bs = new BrowserStartup();
public static void main(String[] args) throws Exception { //System.out.println(new URI("images/Stop24.gif")); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); BrowserStartup bs = new BrowserStartup(); bs.frame = frame; bs...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/378f837b2d6420bdbab7e201000be551e4f28dbc/BrowserStartup.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java
frame.addComponentListener( new ComponentAdapter() { public void componentResized( ComponentEvent e ) { bs.panel.view.relayout(); } } );
public static void main(String[] args) throws Exception { //System.out.println(new URI("images/Stop24.gif")); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); BrowserStartup bs = new BrowserStartup(); bs.frame = frame; bs...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/378f837b2d6420bdbab7e201000be551e4f28dbc/BrowserStartup.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java
return getClass().getResource( "dependencies/" + resource).getPath().substring(1);
resource = "com/liferay/portal/deploy/dependencies/" + resource; return getClass().getResource(resource).getPath().substring(1);
protected String getResourcePath(String resource) { return getClass().getResource( "dependencies/" + resource).getPath().substring(1); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/dba90f6a8556b14ce78fb621b9766591bbdb7b34/AutoPortletDeployer.java/buggy/portal-ejb/src/com/liferay/portal/deploy/AutoPortletDeployer.java
row.addChild(cellBox);
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/acff97b0e3517c59dfd01f1112b0fe5227f5da2f/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
if (cellBox.rowspan > 1) row.setChildrenExceedBounds(true); row.addChild(cellBox);
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/acff97b0e3517c59dfd01f1112b0fe5227f5da2f/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) {
public static void setupFloat(Context c, Box box) { if (ContentUtil.isFloated(c.getCurrentStyle())) {
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/c96efe21dd32b0a4f0420c8495d49144792cbc9d/FloatUtil.java/clean/src/java/org/xhtmlrenderer/layout/block/FloatUtil.java
IdentValue floatVal = style.getIdent(CSSName.FLOAT);
IdentValue floatVal = c.getCurrentStyle().getIdent(CSSName.FLOAT);
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/c96efe21dd32b0a4f0420c8495d49144792cbc9d/FloatUtil.java/clean/src/java/org/xhtmlrenderer/layout/block/FloatUtil.java
existingSite = getStateSite(state);
private void actionForTemplate ( String direction, int index, ParameterParser params, SessionState state) { // Continue - make any permanent changes, Back - keep any data entered on the form boolean forward = direction.equals("continue") ? true : false; SiteInfo siteInfo = new SiteInfo(); switch (index) { c...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/260e4645c5211a1c110d7c42b5b7b74835909921/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
context.put ("selectedTools", orderToolIds(state, site_type, (List) state.getAttribute(STATE_TOOL_REGISTRATION_SELECTED_LIST)));
context.put ("selectedTools", orderToolIds(state, site_type, getToolsAvailableForImport(state)));
private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); context.put(...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/260e4645c5211a1c110d7c42b5b7b74835909921/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
public IRubyObject reopen(IRubyObject arg1, IRubyObject[] args) { if (arg1.isKindOf(getRuntime().getClasses().getIoClass())) { RubyIO ios = (RubyIO) arg1; int keepFileno = handler.getFileno(); // When we reopen, we want our fileno to be preserved even // though we ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f9c6cd5042b99c686c9ec5d78c8e251c3fda461c/RubyIO.java/buggy/src/org/jruby/RubyIO.java
scanFile(fInfo, false);
scanFile(fInfo);
public void scanDownloadFile(FileInfo fInfo, File tempFile) { synchronized (scanLock) { // rename file File targetFile = fInfo.getDiskFile(getController() .getFolderRepository()); if (!tempFile.renameTo(targetFile)) { log().warn( ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
boolean scanFile(FileInfo fInfo, boolean restored) {
boolean scanFile(FileInfo fInfo) {
boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
if (restored && file.exists()) { fInfo.setDeleted(false); }
boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
log().warn("File changed on disk: " + dbFile.toDetailString());
boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
int nfiles = scanFile(fInfo, false) ? 1 : 0;
int nfiles = scanFile(fInfo) ? 1 : 0;
private int scanLocalFile(File file, Set remaining) { synchronized (scanLock) { if (file.isDirectory()) { if (file.equals(getSystemSubDir()) || getController().getRecycleBin().isRecycleBin(this, file)) { // Skipping these subdirs ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
if (scanFile(fileInfo, false)) {
if (scanFile(fileInfo)) {
public void scanNewFile(FileInfo fileInfo) { if (scanFile(fileInfo, false)) { folderChanged(); statistic.calculate(); } }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3bf5c7635a50044af14b35a996730763de3eb538/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
public void asyncExec(Runnable runnable) { Display display = this.getViewSite().getWorkbenchWindow().getShell().getDisplay(); // If the display is disposed, you cant do anything with it!!! if (display == null || display.isDisposed()) return; display.asyncExec(runnable); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/5f0e054e217b43e236e946026f28ae03563d593b/PortfolioView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/PortfolioView.java
noex = iVisited.getNoex();
noex = iVisited.getVisibility();
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Obj...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/615c030e9e2e4f7129fe3e92d877dd15dd313c3d/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
public WeakSymbolEntry(RubySymbol symbol) { super(symbol, unusedSymbols);
public WeakSymbolEntry(RubySymbol symbol, ReferenceQueue queue) { super(symbol, queue);
public WeakSymbolEntry(RubySymbol symbol) { super(symbol, unusedSymbols); this.name = symbol.asSymbol(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
private String name() {
public String name() {
private String name() { return name; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
table.put(symbol.asSymbol(), new WeakSymbolEntry(symbol));
table.put(symbol.asSymbol(), new WeakSymbolEntry(symbol, unusedSymbols));
public void store(RubySymbol symbol) { clean(); table.put(symbol.asSymbol(), new WeakSymbolEntry(symbol)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
public static RubySymbol getSymbol(Ruby runtime, long id) {
public static IRubyObject getSymbol(Ruby runtime, long id) {
public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
return nilSymbol(runtime);
return runtime.getNil();
public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
if (name == null) { result = new RubySymbol(runtime, null) { public boolean isNil() { return true; } }; } else { result = new RubySymbol(runtime, name); }
result = new RubySymbol(runtime, name);
public static RubySymbol newSymbol(Ruby runtime, String name) { RubySymbol result; synchronized (RubySymbol.class) { // Locked to prevent the creation of multiple instances of // the same symbol. Most code depends on them being unique. result = runtime.symbolTable.look...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
if (getNode() instanceof AttrSetNode) { return Arity.singleArgument(); } else if (getNode() instanceof InstVarNode) { return Arity.noArguments(); } else { return Arity.optional(); }
return arity;
public Arity getArity() { if (getNode() instanceof AttrSetNode) { return Arity.singleArgument(); } else if (getNode() instanceof InstVarNode) { return Arity.noArguments(); } else { return Arity.optional(); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/22f7644c54d60864170082d304f734f88e2f961f/EvaluateMethod.java/buggy/src/org/jruby/internal/runtime/methods/EvaluateMethod.java
TableItem ti = (TableItem) item;
TableItem ti = item;
protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { if (widget instanceof TableItem) { TableItem item = (TableItem) widget; // remember element we are showing if (fullMap) { associate(element, item); } else { item.setData(element); mapElement(element, item); } IBaseLabelProvide...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d036bb43d67ed272b29da05b4ebb9973127da313/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
if (isDynamic(items[i])) { } else newItem = createItemAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_DYNAMIC_CONTRIBUTION.equals(itemType)) { if (!dynamicFactories.containsKey(items[i])) { AbstractDynamicContribution newFactory = (AbstractDynamicContribution) Util.safeLoadExecutableExt...
newItem = createItemAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_DYNAMIC_CONTRIBUTION .equals(itemType)) { newItem = createDynamicAdditionContribution(items[i]);
public void createContributionItems(IMenuService menuService, List additions) { additions.clear(); IConfigurationElement[] items = additionElement.getChildren(); for (int i = 0; i < items.length; i++) { String itemType = items[i].getName(); IContributionItem newItem = null; if (IWorkbenchRegistryConstants.TAG...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/24cd644ab72242d12f8ed721556c8bade808714d/MenuAdditionCacheEntry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
return new WidgetContributionItem(getId(widgetAddition), widgetAddition);
if (failedLoads.contains(widgetAddition)) return null; final IWorkbenchWidget loadedWidget = (IWorkbenchWidget) Util .safeLoadExecutableExtension(widgetAddition, IWorkbenchRegistryConstants.ATT_CLASS, IWorkbenchWidget.class); if (loadedWidget == null) { failedLoads.add(widgetAddition); return null; } return new ...
private IContributionItem createWidgetAdditionContribution( final IConfigurationElement widgetAddition) { return new WidgetContributionItem(getId(widgetAddition), widgetAddition); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/24cd644ab72242d12f8ed721556c8bade808714d/MenuAdditionCacheEntry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ return ( (CSSPrimitiveValue)_domCSSValue ).getStringValue(); } else { return "NOT-A-STRING"; }
switch ( getPrimitiveType()) { case CSSPrimitiveValue.CSS_IDENT: case CSSPrimitiveValue.CSS_URI: return _domCSSValue.getCssText(); case CSSPrimitiveValue.CSS_STRING: return ( (CSSPrimitiveValue)_domCSSValue ).getStringValue(); default: return "NOT-A-STRING";
public String getStringValue() { assert( getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE ); if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/679e408a424b7d3405778c87c04dd57897247127/XRValueImpl.java/buggy/src/java/com/pdoubleya/xhtmlrenderer/css/impl/XRValueImpl.java
if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache.removeRef(imageDescritor);
if(image != null && imageDescritor != null) { if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache.removeRef(imageDescritor); } image = null; imageDescritor = null;
public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e25b372df9daaaff02436d5ace0f2c2310e47109/WorkbenchPartReference.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java
image = null; imageDescritor = null;
public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e25b372df9daaaff02436d5ace0f2c2310e47109/WorkbenchPartReference.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java
MessageDialog.openError(getControl().getShell(), new String(), e.getLocalizedMessage());
protected boolean transfer(IPreferenceFilter[] transfers) { File exportFile = new File(getDestinationValue()); if (!ensureTargetIsValid(exportFile)) { return false; } FileOutputStream fos = null; try { if (transfers.length > 0) { try { fos = new FileOutputStream(exportFile); } catch (FileNotFoundExc...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/250c51b2f3ebf5ca47b3af7cf0f26a919a99c71b/WizardPreferencesExportPage1.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesExportPage1.java
Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){
Message latestMessage = fixMessageHistory.getLatestExecutionReport(clOrdID); if (latestMessage == null){ latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage == null){ internalMainLogger.error("Could not send cancel request for order ID "+clOrdID); return; }
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManager.java/clean/source/trunk/src/main/java/org/marketcetera/photon/OrderManager.java
} else { internalMainLogger.error("Could not send cancel request for order ID "+clOrdID);
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManager.java/clean/source/trunk/src/main/java/org/marketcetera/photon/OrderManager.java
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManager.java/clean/source/trunk/src/main/java/org/marketcetera/photon/OrderManager.java
String reason = aMessage.getString(CxlRejReason.FIELD);
String reason = null; try { reason = aMessage.getString(CxlRejReason.FIELD); } catch (FieldNotFound fnf){ }
private void handleCancelReject(Message aMessage) throws FieldNotFound { String reason = aMessage.getString(CxlRejReason.FIELD); String text = aMessage.getString(Text.FIELD); String origClOrdID = aMessage.getString(OrigClOrdID.FIELD); String errorMsg = "Cancel rejected for order " + origClOrdID + ": " + (text =...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManager.java/clean/source/trunk/src/main/java/org/marketcetera/photon/OrderManager.java
try { aMessage.getString(OrigClOrdID.FIELD); cancelOneOrder(aMessage); } catch (FieldNotFound e) { }
cancelOneOrder(aMessage);
public void handleInternalMessage(Message aMessage) throws FieldNotFound, MarketceteraException, JMSException { if (FIXMessageUtil.isOrderSingle(aMessage)) { addNewOrder(aMessage); } else if (FIXMessageUtil.isCancelRequest(aMessage)) { try { aMessage.getString(OrigClOrdID.FIELD); cancelOneOrder(aMessage)...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManager.java/clean/source/trunk/src/main/java/org/marketcetera/photon/OrderManager.java
addTest(new TestSuite(DuplicateMenuItemTest.class));
public NavigatorTestSuite() { addTest(new TestSuite(ResourceNavigatorTest.class)); addTest(new TestSuite(NavigatorTest.class)); addTest(new TestSuite(DecoratorTestCase.class)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8238fa0ce352aa120833aa8f87ba7c693807792a/NavigatorTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/navigator/NavigatorTestSuite.java
this.sharedContext.addIDBox(id,box); }
this.sharedContext.addIDBox(id, box); }
public void addIDBox(String id, Box box) { this.sharedContext.addIDBox(id,box); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/ContextImpl.java/clean/src/java/org/xhtmlrenderer/layout/ContextImpl.java
return this.sharedContext.getIDBox(id); }
return this.sharedContext.getIDBox(id); }
public Box getIDBox(String id) { return this.sharedContext.getIDBox(id); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9ac58abece8ac0f02983d3b07df9656b6a59c78a/ContextImpl.java/clean/src/java/org/xhtmlrenderer/layout/ContextImpl.java