bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Binding bind(IObservable targetObservable, IObservable modelObservable, BindSpec bindSpec) { Binding result = doCreateBinding(targetObservable, modelObservable, bindSpec, this); if (result != null) return result; throw new BindingException( "No binding found for target: " + targetObservable.getClas... | public Binding bind(IObservable targetObservable, IObservable modelObservable, org.eclipse.jface.databinding.BindSpec bindSpec) { Binding result = doCreateBinding(targetObservable, modelObservable, bindSpec, this); if (result != null) return result; throw new BindingException( "No binding found for target... | 1,120,941 |
public DialogMarkerProperties(Shell parentShell, String title) { super(parentShell); setShellStyle(getShellStyle() | SWT.RESIZE); this.title = title; } | public DialogMarkerProperties(Shell parentShell) { super(parentShell); setShellStyle(getShellStyle() | SWT.RESIZE); this.title = title; } | 1,120,942 |
public DialogMarkerProperties(Shell parentShell, String title) { super(parentShell); setShellStyle(getShellStyle() | SWT.RESIZE); this.title = title; } | public DialogMarkerProperties(Shell parentShell, String title) { super(parentShell); setShellStyle(getShellStyle() | SWT.RESIZE); } | 1,120,943 |
public IViewReference createView(String id, String secondaryId) throws PartInitException { IViewDescriptor desc = viewReg.find(id); // ensure that the view id is valid if (desc == null) throw new PartInitException(WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { id })); //$NON-NLS-1$ // ensu... | public IViewReference createView(String id, String secondaryId) throws PartInitException { IViewDescriptor desc = viewReg.find(id); // ensure that the view id is valid if (desc == null) throw new PartInitException(WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { id })); //$NON-NLS-1$ // ensu... | 1,120,944 |
public PartStack(int appearance, AbstractPresentationFactory factory) { super("PartStack"); //$NON-NLS-1$ this.appearance = appearance; this.factory = factory; } | public PartStack(int appearance, AbstractPresentationFactory factory) { super("PartStack"); //$NON-NLS-1$ this.appearance = appearance; this.factory = factory; } | 1,120,945 |
public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | 1,120,946 |
public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | 1,120,947 |
public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | 1,120,948 |
public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | public void setPerspective(final IPerspectiveDescriptor desc) { if (Util.equals(getPerspective(), desc)) { return; } // Going from multiple to single rows can make the coolbar // and its adjacent views appear jumpy as perspectives are // switched. Turn off redraw to help with this.... | 1,120,949 |
public SLocation(final SLocation parent, final String id) { this(parent, id, MNEMONIC_NONE); } | public SLocation(final SLocation parent, final String id) { this(parent, id, MNEMONIC_NONE); } | 1,120,951 |
public static final boolean equals(final Object[] leftArray, final Object[] rightArray) { if (leftArray.length != rightArray.length) { return false; } for (int i = 0; i < leftArray.length; i++) { final Object left = leftArray[i]; final Object right = rightArray[i]; final boolean equal = (left == null) ? (... | public static final boolean equals(final Object[] leftArray, final Object[] rightArray) { if (leftArray.length != rightArray.length) { return false; } for (int i = 0; i < leftArray.length; i++) { final Object left = leftArray[i]; final Object right = rightArray[i]; final boolean equal = (left == null) ? (... | 1,120,952 |
public void hideView(IViewPart view) { hideView((IViewReference)getReference(view)); } | public void hideView(IViewPart view) { hideView((IViewReference)getReference(view)); } | 1,120,953 |
public void selectionChanged(SelectionChangedEvent event) { ISelection sel = event.getSelection(); if (sel instanceof IStructuredSelection) selectionChanged((IStructuredSelection) sel); } | public void selectionChanged(SelectionChangedEvent event) { ISelection sel = event.getSelection(); if (sel instanceof IStructuredSelection) selectionChanged((IStructuredSelection) sel); } | 1,120,954 |
public FontFieldEditor(String name, String labelText, String previewAreaText, Composite parent) { init(name, labelText); previewText = previewAreaText; changeButtonText = JFaceResources.getString("openChange"); //$NON-NLS-1$ createControl(parent); } | public FontFieldEditor(String name, String labelText, String previewAreaText, Composite parent) { init(name, labelText); previewText = previewAreaText; changeButtonText = JFaceResources.getString("openChange"); //$NON-NLS-1$ createControl(parent); } | 1,120,955 |
public static ImageDescriptor createFromImage(Image img, Device theDevice) { return new ImageDataImageDescriptor(img, theDevice); } | public static ImageDescriptor createFromImage(Image img, Device theDevice) { return new ImageDataImageDescriptor(img, theDevice); } | 1,120,956 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Composite parent) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } else if ... | 1,120,957 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Menu parent, int index) { if (widget == null && parent != null) { int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } else if (style == IAct... | 1,120,958 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | 1,120,959 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | 1,120,960 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | 1,120,961 |
public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) { flags = SWT.CHECK; } el... | 1,120,962 |
public void write(IFile resource, String destinationPath) throws IOException, CoreException { ZipEntry newEntry = new ZipEntry(destinationPath); write(newEntry, resource); } | public void write(IFile resource, String destinationPath) throws IOException, CoreException { ZipEntry newEntry = new ZipEntry(destinationPath); write(newEntry, resource); } | 1,120,963 |
public boolean isPartVisible(IWorkbenchPartReference reference) { IWorkbenchPart part = reference.getPart(false); // Can't be visible if it isn't created yet if (part == null) { return false; } return isPartVisible(part); } | public boolean isPartVisible(IWorkbenchPartReference reference) { IWorkbenchPart part = reference.getPart(false); // Can't be visible if it isn't created yet if (part == null) { return false; } return isPartVisible(part); } | 1,120,964 |
public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | 1,120,965 |
public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | 1,120,966 |
public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | public void applyFontsAndColors(TreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ /... | 1,120,967 |
public void update(String propertyName) { if (widget != null) { // determine what to do boolean textChanged = propertyName == null || propertyName.equals(IAction.TEXT); boolean imageChanged = propertyName == null || propertyName.equals... | public void update(String propertyName) { if (widget != null) { // determine what to do boolean textChanged = propertyName == null || propertyName.equals(IAction.TEXT); boolean imageChanged = propertyName == null || propertyName.equals... | 1,120,968 |
protected Action(String text, ImageDescriptor image) { this(); setText(text); setImageDescriptor(image);} | protected Action(String text, ImageDescriptor image) { this(); setText(text); setImageDescriptor(image);} | 1,120,969 |
public PartInitException(IStatus status) { super(status);} | public PartInitException(IStatus status) { super(status);} | 1,120,970 |
public void add(Object parentElement, Object childElement) { add(parentElement, new Object[] { childElement }); } | public void add(Object parentElement, Object childElement) { add(parentElement, new Object[] { childElement }); } | 1,120,971 |
protected ChangeEvent fireChangeEvent(int changeType, Object oldValue, Object newValue, Object parent, int position) { ChangeEvent changeEvent = new ChangeEvent(this, changeType, oldValue, newValue, parent, position); if(changeListeners==null) { // disposed return changeEvent; } IChangeListener[] listeners... | protected ChangeEvent fireChangeEvent(int changeType, Object oldValue, Object newValue, Object parent, int position) { ChangeEvent changeEvent = new ChangeEvent(this, changeType, oldValue, newValue, parent, position); if(changeListeners==null) { // disposed return changeEvent; } IChangeListener[] listeners... | 1,120,972 |
protected void insertAfter(IContributionManager mgr, String refId, IContributionItem item) { mgr.insertAfter(refId, item); } | protected void insertAfter(IContributionManager mgr, String refId, IContributionItem item) { mgr.insertAfter(refId, item); } | 1,120,973 |
public Accelerator(String id,int accelerator) { this(id,null,null,null); accelerators = new int[1][]; accelerators[0] = new int[]{accelerator}; } | public Accelerator(String id,int accelerator) { this(id,null,null,null); accelerators = new int[1][]; accelerators[0] = new int[]{accelerator}; } | 1,120,974 |
public static KeyStroke getInstance(String string) throws ParseException { if (string == null) throw new NullPointerException(); SortedSet modifierKeys = new TreeSet(); NaturalKey naturalKey = null; StringTokenizer stringTokenizer = new StringTokenizer(string, KEY_DELIMITERS, true); int i = 0; while (stringTok... | public static KeyStroke getInstance(String string) throws ParseException { if (string == null) throw new NullPointerException(); SortedSet modifierKeys = new TreeSet(); NaturalKey naturalKey = null; StringTokenizer stringTokenizer = new StringTokenizer(string, KEY_DELIMITERS, true); int i = 0; while (stringTok... | 1,120,975 |
public static KeyStroke getInstance(String string) throws ParseException { if (string == null) throw new NullPointerException(); SortedSet modifierKeys = new TreeSet(); NaturalKey naturalKey = null; StringTokenizer stringTokenizer = new StringTokenizer(string, KEY_DELIMITERS, true); int i = 0; while (stringTok... | public static KeyStroke getInstance(String string) throws ParseException { if (string == null) throw new NullPointerException(); SortedSet modifierKeys = new TreeSet(); NaturalKey naturalKey = null; StringTokenizer stringTokenizer = new StringTokenizer(string, KEY_DELIMITERS, true); int i = 0; while (stringTok... | 1,120,976 |
public ImportResourcesAction(IWorkbench workbench) { this(workbench.getActiveWorkbenchWindow()); } | public ImportResourcesAction(IWorkbench workbench) { this(workbench.getActiveWorkbenchWindow()); } | 1,120,977 |
public ExportResourcesAction(IWorkbench workbench) { this(workbench.getActiveWorkbenchWindow()); } | public ExportResourcesAction(IWorkbench workbench) { this(workbench.getActiveWorkbenchWindow()); } | 1,120,978 |
protected abstract void readINIFile(URL iniURL, URL propertiesURL) throws CoreException; | protected abstract void readINIFile(URL iniURL, URL propertiesURL) throws CoreException; | 1,120,979 |
public ActionExpression(String expressionType, String expressionValue) { if (expressionType.equals(EXP_TYPE_OBJECT_CLASS)) { root = new SingleExpression(new ObjectClassExpression( expressionValue)); } } | public ActionExpression(String expressionType, String expressionValue) { if (expressionType.equals(EXP_TYPE_OBJECT_CLASS)) { root = new SingleExpression(new ObjectClassExpression( expressionValue)); } } | 1,120,980 |
public ChangeEvent(Object source, int changeType, Object oldValue, Object newValue, Object parent, int position) { super(source); this.oldValue = oldValue; this.changeType = changeType; this.newValue = newValue; this.parent = parent; this.position = position; } | public ChangeEvent(Object source, int changeType, Object oldValue, Object newValue, Object parent, int position) { super(source); this.oldValue = oldValue; this.changeType = changeType; this.newValue = newValue; this.parent = parent; this.position = position; } | 1,120,981 |
public WizardFileSystemResourceExportPage1(IStructuredSelection selection) { this("fileSystemExportPage1", selection);//$NON-NLS-1$ setTitle(DataTransferMessages.getString("DataTransfer.fileSystemTitle")); //$NON-NLS-1$ setDescription(DataTransferMessages.getString("FileExport.exportLocalFileSystem")); //$NON-NLS-1$} | public WizardFileSystemResourceExportPage1(IStructuredSelection selection) { this("fileSystemExportPage1", selection);//$NON-NLS-1$ setTitle(DataTransferMessages.getString("DataTransfer.fileSystemTitle")); //$NON-NLS-1$ setDescription(DataTransferMessages.getString("FileExport.exportLocalFileSystem")); //$NON-NLS-1$} | 1,120,982 |
public static String asString(Point value) { Assert.isNotNull(value); StringBuffer buffer = new StringBuffer(); buffer.append(value.x); buffer.append(','); buffer.append(value.y); return buffer.toString();} | public static String asString(Point value) { Assert.isNotNull(value); StringBuffer buffer = new StringBuffer(); buffer.append(value.x); buffer.append(','); buffer.append(value.y); return buffer.toString();} | 1,120,983 |
public static final WorkbenchPreferenceDialog createDialogOn(final String preferencePageId, String[] displayedIds) { WorkbenchPreferenceDialog dialog = createDialogOn(null,preferencePageId); if(dialog == null) return null; if (displayedIds != null) dialog.showOnly(displayedIds); return dialog; } | public static final WorkbenchPreferenceDialog createDialogOn(final String preferencePageId, String[] displayedIds) { WorkbenchPreferenceDialog dialog = createDialogOn(null,preferencePageId); if(dialog == null) return null; if (displayedIds != null) dialog.showOnly(displayedIds); return dialog; } | 1,120,984 |
public void add(int index, Object element) { wrappedList.add(index, element); fireListChange(Diffs.createListDiff(Diffs.createListDiffEntry(index, true, element))); } | public void add(int index, Object element) { wrappedList.add(index, element); fireListChange(Diffs.createListDiff(Diffs.createListDiffEntry(index, true, element))); } | 1,120,985 |
public WorkbenchPreferenceNode(String nodeId, String nodeLabel, String category, ImageDescriptor nodeImage, IWorkbenchPreferencePage preferencePage) { super(nodeId, nodeLabel, nodeImage, null); setPage(preferencePage);} | public WorkbenchPreferenceNode(String nodeId, String nodeLabel, String category, ImageDescriptor nodeImage, IConfigurationElement element, IWorkbench newWorkbench) { super(nodeId, nodeLabel, nodeImage, null); setPage(preferencePage);} | 1,120,986 |
public WorkbenchPreferenceNode(String nodeId, String nodeLabel, String category, ImageDescriptor nodeImage, IWorkbenchPreferencePage preferencePage) { super(nodeId, nodeLabel, nodeImage, null); setPage(preferencePage);} | public WorkbenchPreferenceNode(String nodeId, String nodeLabel, String category, ImageDescriptor nodeImage, IWorkbenchPreferencePage preferencePage) { super(nodeId, nodeLabel, nodeImage, null); this.category = category; this.configurationElement = element; this.workbench = newWorkbench;} | 1,120,987 |
public String getAppName() { if (appName == null) appName = getAppName(product); return appName; } | public String getAppName() { if (appName == null) appName = getAppName(product); return appName; } | 1,120,988 |
public ImageDescriptor[] getWindowImages() { if (windowImageDescriptors == null) windowImageDescriptors = getWindowImages(product); return windowImageDescriptors; } | public ImageDescriptor[] getWindowImages() { if (windowImageDescriptors == null) windowImageDescriptors = getWindowImages(product); return windowImageDescriptors; } | 1,120,989 |
public static MarkerList compute(MarkerFilter filter, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { return new MarkerList(filter.findMarkers(mon, ignoreExceptions)); } | public static MarkerList compute(MarkerFilter[] filters, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { return new MarkerList(filter.findMarkers(mon, ignoreExceptions)); } | 1,120,990 |
public static MarkerList compute(MarkerFilter filter, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { return new MarkerList(filter.findMarkers(mon, ignoreExceptions)); } | public static MarkerList compute(MarkerFilter filter, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { Collection returnMarkers = new ArrayList(); for (int i = 0; i < filters.length; i++) { returnMarkers.addAll(filters[i].findMarkers(mon, ignoreExceptions)); } return new Mar... | 1,120,991 |
public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | 1,120,992 |
public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | 1,120,993 |
public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | 1,120,994 |
public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | public List getEnabledContentDescriptors(Object anElement, NavigatorViewerDescriptor aViewerDescriptor) { List descriptors = new ArrayList(); /* Find other ContentProviders which enable for this object */ for (Iterator contentDescriptorsItr = contentDescriptors.values().iterator(); contentDescriptorsItr.hasNext();)... | 1,120,995 |
public void applyFontsAndColors(TableTreeItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{... | public void applyFontsAndColors(TableItem control) { if(colorProvider == null){ if(usedDecorators){ //If there is no provider only apply set values if(background != null) control.setBackground(background); if(foreground != null) control.setForeground(foreground); } } else{ ... | 1,120,996 |
public DynamicHelpAction(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclipse.ui.help.dynamicHelp"); //$NON-NLS-1$ // support for allowing a product to override the text for the action String overrideText = Pr... | public DynamicHelpAction(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclipse.ui.help.dynamicHelp"); //$NON-NLS-1$ // support for allowing a product to override the text for the action String overrideText = Pr... | 1,120,997 |
private List findMarkers(IResource[] resources, int depth, int limit, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { if (resources == null) { return Collections.EMPTY_LIST; } List resultList = new ArrayList(resources.length * 2); // Optimization: if a type appears in the selectedTypes... | private List findMarkers(IResource[] resources, int depth, int limit, IProgressMonitor mon, boolean ignoreExceptions) throws CoreException { if (resources == null) { return Collections.EMPTY_LIST; } List resultList = new ArrayList(resources.length * 2); // Optimization: if a type appears in the selectedTypes... | 1,120,998 |
public UIJob(Display jobDisplay, String name) { super(name); setDisplay(jobDisplay); } | public UIJob(Display jobDisplay, String name) { super(name); } | 1,121,000 |
public CTabItem getItem(Point pt) { //checkWidget(); if (items.length == 0) return null; int lastItem = getLastItem(); lastItem = Math.min(items.length - 1, lastItem + 1); for (int i = topTabIndex; i <= lastItem; i++) { Rectangle bounds = items[i].getBounds()... | public CTabItem getItem(Point pt) { //checkWidget(); if (items.length == 0) return null; int lastItem = getLastItem(); lastItem = Math.min(items.length - 1, lastItem + 1); for (int i = topTabIndex; i <= lastItem; i++) { Rectangle bounds = items[i].getBounds()... | 1,121,001 |
public SearchPattern(String pattern, int allowedRules) { initializePatternAndMatchRule(pattern); matchRule = matchRule & allowedRules; if (matchRule == RULE_PATTERN_MATCH) { stringMatcher = new StringMatcher(stringPattern, true, false); } } | public SearchPattern(String pattern, int allowedRules) { initializePatternAndMatchRule(pattern); matchRule = matchRule & allowedRules; if (matchRule == RULE_PATTERN_MATCH) { stringMatcher = new StringMatcher(stringPattern, true, false); } } | 1,121,002 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.getName(); ... | 1,121,003 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | 1,121,004 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | 1,121,005 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | 1,121,006 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == null) { javaClass = object.getClass(); } if (javaClass.isPrimitive()) { String cName = javaClass.... | 1,121,007 |
public static String getCompanyId(ActionRequest req) { ActionRequestImpl reqImpl = (ActionRequestImpl)req; return getCompanyId(reqImpl.getHttpServletRequest()); } | public static String getCompanyId(ActionRequest req) { ActionRequestImpl reqImpl = (ActionRequestImpl)req; return getCompanyId(reqImpl.getHttpServletRequest()); } | 1,121,008 |
public static String getCompanyId(ActionRequest req) { ActionRequestImpl reqImpl = (ActionRequestImpl)req; return getCompanyId(reqImpl.getHttpServletRequest()); } | public static String getCompanyId(ActionRequest req) { ActionRequestImpl reqImpl = (ActionRequestImpl)req; if (companyId == null) { companyId = (String)req.getAttribute(WebKeys.COMPANY_ID); } return companyId; } | 1,121,009 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 1,121,010 |
public static void addListener(Object listenerSupport, Object listener) { if (listenerSupport == null) { throw new NullPointerException("Listener support is null"); } if (!Proxy.isProxyClass(listenerSupport.getClass())) { throw new IllegalArgumentException( ... | public static void addListener(ListenerInterface listenerSupport, ListenerInterface listener) { if (listenerSupport == null) { throw new NullPointerException("Listener support is null"); } if (!Proxy.isProxyClass(listenerSupport.getClass())) { throw new IllegalArgumentExce... | 1,121,011 |
public synchronized void addChunk(FileChunk chunk) { Reject.ifNull(chunk, "Chunk is null"); if (isBroken()) { return; } if (!isStarted()) { // donwload begins to start setStarted(); } lastTouch.setTime(System.currentTimeMillis()); // ... | public synchronized void addChunk(FileChunk chunk) { Reject.ifNull(chunk, "Chunk is null"); if (isBroken()) { return; } if (!isStarted()) { // donwload begins to start setStarted(); } lastTouch.setTime(System.currentTimeMillis()); // ... | 1,121,012 |
Download(TransferManager tm, FileInfo file, boolean automatic) { super(tm, file, null); // from can be null this.lastTouch = new Date(); this.automatic = automatic; this.queued = false; this.completed = false; this.tempFileError = false; File tempFile = getTem... | Download(TransferManager tm, FileInfo file, boolean automatic) { super(tm, file, null); // from can be null this.lastTouch = new Date(); this.automatic = automatic; this.queued = false; this.completed = false; this.tempFileError = false; File tempFile = getTem... | 1,121,013 |
void shutdown() { super.shutdown(); if (myThread != null) { myThread.interrupt(); } } | void shutdown() { super.shutdown(); if (myThread != null) { myThread.interrupt(); } } | 1,121,014 |
public static void removeListener(Object listenerSupport, Object listener) { if (listenerSupport == null) { throw new NullPointerException("Listener support is null"); } if (!Proxy.isProxyClass(listenerSupport.getClass())) { throw new IllegalArgumentException( ... | public static void removeListener(Object listenerSupport, ListenerInterface listener) { if (listenerSupport == null) { throw new NullPointerException("Listener support is null"); } if (!Proxy.isProxyClass(listenerSupport.getClass())) { throw new IllegalArgumentException( ... | 1,121,015 |
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | 1,121,016 |
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | public String toDetailString() { String modifiedNick; if (modifiedBy == null) { str.append("-unknown-"); } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVersion... | 1,121,017 |
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { str.append(modifiedBy.nick); } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVersion... | 1,121,018 |
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | 1,121,019 |
public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); final FilenameProblemDialog dialog = new... | public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); final FilenameProblemDialog dialog = new FilenameProblemDialog( ... | 1,121,020 |
public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); final FilenameProblemDialog dialog = new... | public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); FilenameProblemDialog dialog = new Filen... | 1,121,021 |
public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); final FilenameProblemDialog dialog = new... | public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); final FilenameProblemDialog dialog = new... | 1,121,022 |
public TransferManager(Controller controller) { super(controller); this.started = false; this.queuedUploads = Collections.synchronizedList(new LinkedList()); this.activeUploads = Collections.synchronizedList(new LinkedList()); this.downloads = new ConcurrentHashMap<FileInfo, Downl... | public TransferManager(Controller controller) { super(controller); this.started = false; this.queuedUploads = Collections.synchronizedList(new LinkedList()); this.activeUploads = Collections.synchronizedList(new LinkedList()); this.downloads = new ConcurrentHashMap<FileInfo, Downl... | 1,121,023 |
public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | 1,121,024 |
public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | 1,121,025 |
public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | public Upload queueUpload(Member from, RequestDownload dl) { if (dl == null || dl.file == null) { throw new NullPointerException("Downloadrequest/File is null"); } // Never upload db files !! if (Folder.DB_FILENAME.equalsIgnoreCase(dl.file.getName()) || Folder.DB_BA... | 1,121,026 |
void setStarted(Transfer transfer) { if (transfer instanceof Upload) { synchronized (queuedUploads) { synchronized (activeUploads) { queuedUploads.remove(transfer); activeUploads.add(transfer); } } // Fire ev... | void setStarted(Transfer transfer) { if (transfer instanceof Upload) { synchronized (queuedUploads) { synchronized (activeUploads) { queuedUploads.remove(transfer); activeUploads.add((Upload) transfer); } } /... | 1,121,027 |
protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | 1,121,028 |
protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | 1,121,029 |
protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | protected void handleKeyReleased(KeyEvent e) { Text theText = (Text) e.widget; String theInputString = theText.getText(); try { if ('\r' == e.character) { theText.setText(""); parseAndFireCommandEvent(theInputString, CommandEvent.Destination.BROKER); } else if (e.keyCode == 't' && ((e.stateMask & SWT... | 1,121,030 |
public void setIDFactory(IDFactory factory) { commandParser.init(factory); } | public void setIDFactory(IDFactory factory) { commandParser.setIDFactory(factory); } | 1,121,031 |
public abstract Callback getMethod(String method, Class arg1); | public abstract Callback getMethod(String method); | 1,121,032 |
public static Test suite() { LoggerAdapter.initializeLogger("unitTest"); return (new TestSuite(JCycloneStagesTest.class)); } | public static Test suite() { LoggerAdapter.initializeLogger("unitTest"); return (new TestSuite(JCycloneStagesTest.class)); } | 1,121,033 |
public static LoggerAdapter initializeLogger(String name) { if(sLogger != null) { return sLogger; } sLogger = new LoggerAdapter(name); PropertyConfigurator.configureAndWatch(LOGGER_CONF_FILE, LOGGER_WATCH_DELAY); sLogger.setLevel(Level.ERROR); System.out.println("Initialized to... | public static LoggerAdapter initializeLogger(String name) { if(sLogger != null) { return sLogger; } sLogger = new LoggerAdapter(name); PropertyConfigurator.configureAndWatch(LOGGER_CONF_FILE, LOGGER_WATCH_DELAY); sLogger.setLevel(Level.ERROR); System.out.println(MessageKey.LOGG... | 1,121,034 |
public RubyObject funcall(String name) { return funcall(name, (RubyPointer) null); } | public RubyObject funcall(String name) { return funcall(name, (RubyPointer) null); } | 1,121,035 |
public static void general( Level level, String msg, Throwable th ) { log( GENERAL, level, msg, th ); } | public static void general( Level level, String msg, Throwable th ) { log( GENERAL, level, msg, th ); } | 1,121,036 |
public void init(ConfigData config) throws Exception { mCurFixVersion = config.get(ConnectionConstants.FIX_VERSION_KEY, FIX_VERSION_DEFAULT); FIXDataDictionaryManager.setFIXVersion(mCurFixVersion); String senderCompID = config.get(ConnectionConstants.FIX_SENDER_COMP_ID, ""); String ta... | public void init(ConfigData config) throws Exception { mCurFixVersion = config.get(ConnectionConstants.FIX_VERSION_KEY, FIX_VERSION_DEFAULT); FIXDataDictionaryManager.setFIXVersion(mCurFixVersion); String senderCompID = config.get(ConnectionConstants.FIX_SENDER_COMP_ID, ""); String ta... | 1,121,037 |
public final MessageFactory getMessageFactory() throws ClassNotFoundException { String className = "quickfix." + mQuickFIXPackage + ".MessageFactory"; try { Class messageFactoryClass = Class.forName(className); return (MessageFactory) messageFactoryClass.newInstance();... | public final MessageFactory getMessageFactory() throws ClassNotFoundException { String className = "quickfix." + mQuickFIXPackage + ".MessageFactory"; try { Class messageFactoryClass = Class.forName(className); return (MessageFactory) messageFactoryClass.newInstance();... | 1,121,038 |
public static void debug(String msg, Object inCat) { getMyLogger(inCat).log(WRAPPER_FQCN, Level.DEBUG, msg, null); } | public void debug(String inMsg) { getMyLogger(inCat).log(WRAPPER_FQCN, Level.DEBUG, msg, null); } | 1,121,040 |
public static void debug(String msg, Object inCat) { getMyLogger(inCat).log(WRAPPER_FQCN, Level.DEBUG, msg, null); } | public static void debug(String msg, Object inCat) { throw new IllegalArgumentException(MessageKey.LOGGER_MISSING_CAT.getLocalizedMessage()); } | 1,121,041 |
public IOMetaClass(String name, Class clazz, RubyClass superClass, RubyModule parentModule) { super(name, clazz, superClass, parentModule); } | public IOMetaClass(String name, Class clazz, RubyClass superClass, RubyModule parentModule) { super(name, clazz, superClass, parentModule); } | 1,121,042 |
private boolean drop(File file, Directory directory) { // test if a dir is dropped if (file.isDirectory()) { Directory subDirectory = directory.getCreateSubDirectory(file .getName()); File[] files = file.listFiles(); total += ... | private boolean drop(File file, Directory directory) { // test if a dir is dropped if (file.isDirectory()) { Directory subDirectory = directory.getCreateSubDirectory(file .getName()); File[] files = file.listFiles(); total += ... | 1,121,043 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.