issue_id
int64
2.04k
425k
title
stringlengths
9
251
body
stringlengths
4
32.8k
status
stringclasses
6 values
after_fix_sha
stringlengths
7
7
project_name
stringclasses
6 values
repo_url
stringclasses
6 values
repo_name
stringclasses
6 values
language
stringclasses
1 value
issue_url
null
before_fix_sha
null
pull_url
null
commit_datetime
timestamp[us, tz=UTC]
report_datetime
timestamp[us, tz=UTC]
updated_file
stringlengths
23
187
chunk_content
stringlengths
1
22k
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
break; } } } catch (JavaModelException e) { JavaPlugin.log(e); } } return (ICompilationUnit[]) result.toArray(new ICompilationUnit[result.size()]); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(ITextSelection selection) { IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); ICompilationUnit cu= manager.getWorkingCopy(fEditor.getEditorInput()); runOnSingle(cu, true); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(IStructuredSelection selection) { ICompilationUnit[] cus= getCompilationUnits(selection); if (cus.length == 1) { runOnSingle(cus[0], true); } else { runOnMultiple(cus, true); } } private void runOnMultiple(final ICompilationUnit[] cus, final boolean doResolve) {
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
try { String message= ActionMessages.getString("OrganizeImportsAction.multi.status.description"); final MultiStatus status= new MultiStatus(JavaUI.ID_PLUGIN, Status.OK, message, null); ProgressMonitorDialog dialog= new ProgressMonitorDialog(getShell()); dialog.run(false, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { doRunOnMultiple(cus, status, doResolve, monitor); } }); if (!status.isOK()) { String title= ActionMessages.getString("OrganizeImportsAction.multi.status.title"); ProblemDialog.open(getShell(), title, null, status); } } catch (InvocationTargetException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InterruptedException e) { } } private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, boolean doResolve, IProgressMonitor monitor) throws InterruptedException { final class OrganizeImportError extends Error { } if (monitor == null) { monitor= new NullProgressMonitor(); }
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
monitor.beginTask(ActionMessages.getString("OrganizeImportsAction.multi.op.description"), cus.length); try { String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); boolean ignoreLowerCaseNames= ImportOrganizePreferencePage.doIgnoreLowerCaseNames(); IChooseImportQuery query= new IChooseImportQuery() { public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) { throw new OrganizeImportError(); } }; for (int i= 0; i < cus.length; i++) { ICompilationUnit cu= cus[i]; try { if (!cu.isWorkingCopy()) { ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu); if (workingCopy != null) { cu= workingCopy; } } OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, query); op.run(new SubProgressMonitor(monitor, 1)); ISourceRange errorRange= op.getErrorSourceRange(); if (errorRange != null) { String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.parse", cu.getElementName()); status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } } catch (OrganizeImportError e) { String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unresolvable", cu.getElementName());
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } catch (CoreException e) { JavaPlugin.log(e); String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unexpected", e.getMessage()); status.add(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, message, null)); } catch (OperationCanceledException e) { throw new InterruptedException(); } } } finally { monitor.done(); } } private void runOnSingle(ICompilationUnit cu, boolean doResolve) { try { String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); boolean ignoreLowerCaseNames= ImportOrganizePreferencePage.doIgnoreLowerCaseNames(); if (!cu.isWorkingCopy()) { IEditorPart editor= EditorUtility.openInEditor(cu); if (editor instanceof JavaEditor) { fEditor= (JavaEditor) editor; } ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu); if (workingCopy != null) { cu= workingCopy; }
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
} OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, createChooseImportQuery()); BusyIndicatorRunnableContext context= new BusyIndicatorRunnableContext(); context.run(false, true, new WorkbenchRunnableAdapter(op)); ISourceRange errorRange= op.getErrorSourceRange(); if (errorRange != null) { MessageDialog.openInformation(getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.single.error.parse")); if (fEditor != null) { fEditor.selectAndReveal(errorRange.getOffset(), errorRange.getLength()); } } else { setStatusBarMessage(getOrganizeInfo(op)); } } catch (CoreException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InvocationTargetException e) { ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); } catch (InterruptedException e) { } } private String getOrganizeInfo(OrganizeImportsOperation op) { int nImportsAdded= op.getNumberOfImportsAdded(); if (nImportsAdded >= 0) { return ActionMessages.getFormattedString("OrganizeImportsAction.summary_added", String.valueOf(nImportsAdded)); } else { return ActionMessages.getFormattedString("OrganizeImportsAction.summary_removed", String.valueOf(-nImportsAdded)); }
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
} private IChooseImportQuery createChooseImportQuery() { return new IChooseImportQuery() { public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) { return doChooseImports(openChoices, ranges); } }; } private TypeInfo[] doChooseImports(TypeInfo[][] openChoices, final ISourceRange[] ranges) { ISelection sel= fEditor.getSelectionProvider().getSelection(); TypeInfo[] result= null;; ILabelProvider labelProvider= new TypeInfoLabelProvider(TypeInfoLabelProvider.SHOW_FULLYQUALIFIED); MultiElementListSelectionDialog dialog= new MultiElementListSelectionDialog(getShell(), labelProvider) { protected void handleSelectionChanged() { super.handleSelectionChanged(); doListSelectionChanged(getCurrentPage(), ranges); } }; dialog.setTitle(ActionMessages.getString("OrganizeImportsAction.selectiondialog.title")); dialog.setMessage(ActionMessages.getString("OrganizeImportsAction.selectiondialog.message")); dialog.setElements(openChoices); if (dialog.open() == dialog.OK) { Object[] res= dialog.getResult(); result= new TypeInfo[res.length]; for (int i= 0; i < res.length; i++) {
14,891
Bug 14891 NPE during organize imports
Build 20020425.3 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.setStatusBarMessage (Ljava/lang/String;)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.runOnSingle (Lorg/eclipse/jdt/core/ICompilationUnit;Z)V org/eclipse/jdt/ui/actions/OrganizeImportsAction.run (Lorg/eclipse/jface/viewers/IStructuredSelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun (Lorg/eclipse/jface/viewers/ISelection;)V org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; EclipseRuntimeLauncher.main([Ljava/lang/String;)V
resolved fixed
d8124c0
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T12:08:21Z
2002-04-30T09:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
Object[] array= (Object[]) res[i]; if (array.length > 0) result[i]= (TypeInfo) array[0]; } } if (sel instanceof ITextSelection) { ITextSelection textSelection= (ITextSelection) sel; fEditor.selectAndReveal(textSelection.getOffset(), textSelection.getLength()); } return result; } private void doListSelectionChanged(int page, ISourceRange[] ranges) { if (page >= 0 && page < ranges.length) { ISourceRange range= ranges[page]; fEditor.selectAndReveal(range.getOffset(), range.getLength()); } } private void setStatusBarMessage(String message) { IEditorActionBarContributor contributor= fEditor.getEditorSite().getActionBarContributor(); if (contributor instanceof EditorActionBarContributor) { IStatusLineManager manager= ((EditorActionBarContributor) contributor).getActionBars().getStatusLineManager(); manager.setMessage(message); } } }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
package org.eclipse.jdt.internal.ui.text.java; import org.eclipse.swt.graphics.Image; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.util.Assert; import org.eclipse.core.runtime.CoreException; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.ITypeHierarchy; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.codemanipulation.CodeGenerationSettings; import org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure; import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility; import org.eclipse.jdt.internal.corext.util.CodeFormatterUtil; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.corext.util.Strings; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.actions.OverrideMethodQuery; import org.eclipse.jdt.internal.ui.preferences.CodeFormatterPreferencePage; import org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage; import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings; public class AnonymousTypeCompletionProposal extends JavaCompletionProposal {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
private IType fDeclaringType; private ICompilationUnit fCompilationUnit; private ImportsStructure fImportStructure; public AnonymousTypeCompletionProposal(IJavaProject jproject, ICompilationUnit cu, int start, int length, String constructorCompletion, String displayName, String declaringTypeName, int relevance) { super(constructorCompletion, start, length, null, displayName, relevance); Assert.isNotNull(declaringTypeName); Assert.isNotNull(jproject); fCompilationUnit= cu; fDeclaringType= getDeclaringType(jproject, declaringTypeName); setImage(getImageForType(fDeclaringType)); setCursorPosition(constructorCompletion.indexOf('(') + 1); } private Image getImageForType(IType type) { String imageName= JavaPluginImages.IMG_OBJS_CLASS; if (type != null) { try { if (type.isInterface()) { imageName= JavaPluginImages.IMG_OBJS_INTERFACE; } } catch (JavaModelException e) { JavaPlugin.log(e); } } return JavaPluginImages.get(imageName);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
} private IType getDeclaringType(IJavaProject project, String typeName) { try { return project.findType(typeName); } catch (JavaModelException e) { JavaPlugin.log(e); } return null; } /* * @see JavaCompletionProposal#applyImports(IDocument) */ protected void applyImports(IDocument document) { if (fImportStructure != null) { try { fImportStructure.create(false, null); } catch (CoreException e) { JavaPlugin.log(e); } } } /* * @see ICompletionProposalExtension#apply(IDocument, char) */ public void apply(IDocument document, char trigger, int offset) { try { if (fCompilationUnit == null) { fImportStructure= null;
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
} else { String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); fImportStructure= new ImportsStructure(fCompilationUnit, prefOrder, threshold, true); } String replacementString= getReplacementString(); StringBuffer buf= new StringBuffer(); buf.append(replacementString); if (!replacementString.endsWith(")")) { buf.append(')'); } buf.append(" {\n"); if (!createStubs(buf, fImportStructure)) { return; } buf.append("}"); String lineDelim= StubUtility.getLineDelimiterFor(document); int tabWidth= CodeFormatterPreferencePage.getTabSize(); IRegion region= document.getLineInformationOfOffset(getReplacementOffset()); int indent= Strings.computeIndent(document.get(region.getOffset(), region.getLength()), tabWidth); String replacement= StubUtility.codeFormat(buf.toString(), indent, lineDelim); replacement= Strings.trimLeadingTabsAndSpaces(replacement); setReplacementString(replacement);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
} catch (BadLocationException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } super.apply(document, trigger, offset); } private boolean createStubs(StringBuffer buf, ImportsStructure imports) throws JavaModelException { if (fDeclaringType == null) { return true; } CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings(); ITypeHierarchy hierarchy= fDeclaringType.newSupertypeHierarchy(null); OverrideMethodQuery selectionQuery= fDeclaringType.isClass() ? new OverrideMethodQuery(JavaPlugin.getActiveWorkbenchShell(), true) : null; String[] unimplemented= StubUtility.evalUnimplementedMethods(fDeclaringType, hierarchy, true, settings, selectionQuery, imports); if (unimplemented != null) { for (int i= 0; i < unimplemented.length; i++) { buf.append(unimplemented[i]); if (i < unimplemented.length - 1) { buf.append('\n'); } } return true; } return false; } }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
package org.eclipse.jdt.internal.ui.text.java; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.core.runtime.CoreException; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.Point; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.contentassist.ICompletionProposalExtension; import org.eclipse.jface.text.contentassist.IContextInformation; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IImportDeclaration; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage; public class JavaCompletionProposal implements IJavaCompletionProposal, ICompletionProposalExtension {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
private String fDisplayString; private String fReplacementString; private int fReplacementOffset; private int fReplacementLength; private int fCursorPosition; private Image fImage; private IContextInformation fContextInformation; private int fContextInformationPosition; private ProposalInfo fProposalInfo; private IImportDeclaration fImportDeclaration; private char[] fTriggerCharacters; private int fRelevance; /** * Creates a new completion proposal. All fields are initialized based on the provided information. * * @param replacementString the actual string to be inserted into the document * @param replacementOffset the offset of the text to be replaced * @param replacementLength the length of the text to be replaced * @param image the image to display for this proposal * @param displayString the string to be displayed for the proposal * If set to <code>null</code>, the replacement string will be taken as display string. */
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
public JavaCompletionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString, int relevance) { Assert.isNotNull(replacementString); Assert.isTrue(replacementOffset >= 0); Assert.isTrue(replacementLength >= 0); fReplacementString= replacementString; fReplacementOffset= replacementOffset; fReplacementLength= replacementLength; fImage= image; fDisplayString= displayString != null ? displayString : replacementString; fRelevance= relevance; fCursorPosition= replacementString.length(); fContextInformation= null; fContextInformationPosition= -1; fImportDeclaration= null; fTriggerCharacters= null; fProposalInfo= null; } /** * Sets the context information. * @param contentInformation The context information associated with this proposal */ public void setContextInformation(IContextInformation contextInformation) { fContextInformation= contextInformation; fContextInformationPosition= (fContextInformation != null ? fCursorPosition : -1); } /**
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
* Sets the import declaration to import when applied. * @param importDeclaration Optional import declaration to be added. Can be <code>null</code>. The underlying compilation unit * is assumed to be compatible with the document passed in <code>apply</code>. */ public void setImportDeclaration(IImportDeclaration importDeclaration) { fImportDeclaration= importDeclaration; } /** * Sets the trigger characters. * @param triggerCharacters The set of characters which can trigger the application of this completion proposal */ public void setTriggerCharacters(char[] triggerCharacters) { fTriggerCharacters= triggerCharacters; } /** * Sets the proposal info. * @param additionalProposalInfo The additional information associated with this proposal or <code>null</code> */ public void setProposalInfo(ProposalInfo proposalInfo) { fProposalInfo= proposalInfo; } /** * Sets the cursor position relative to the insertion offset. By default this is the length of the completion string * (Cursor positioned after the completion) * @param cursorPosition The cursorPosition to set */ public void setCursorPosition(int cursorPosition) {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
Assert.isTrue(cursorPosition >= 0); fCursorPosition= cursorPosition; fContextInformationPosition= (fContextInformation != null ? fCursorPosition : -1); } protected void applyImports(IDocument document) { if (fImportDeclaration == null) { return; } ICompilationUnit cu= (ICompilationUnit) fImportDeclaration.getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) { try { IType[] types= cu.getTypes(); if (types.length == 0 || types[0].getSourceRange().getOffset() > fReplacementOffset) { return; } String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference(); int threshold= ImportOrganizePreferencePage.getImportNumberThreshold(); ImportsStructure impStructure= new ImportsStructure(cu, prefOrder, threshold, true); impStructure.addImport(fImportDeclaration.getElementName()); impStructure.create(false, null); } catch (CoreException e) { JavaPlugin.log(e); } } }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
/* * @see ICompletionProposalExtension#apply(IDocument, char, int) */ public void apply(IDocument document, char trigger, int offset) { try { int delta= offset - (fReplacementOffset + fReplacementLength); if (delta > 0) fReplacementLength += delta; if (trigger == (char) 0) { replace(document, fReplacementOffset, fReplacementLength, fReplacementString); } else { StringBuffer buffer= new StringBuffer(fReplacementString); if ((fCursorPosition > 0 && fCursorPosition <= buffer.length() && buffer.charAt(fCursorPosition - 1) != trigger)) { buffer.insert(fCursorPosition, trigger); ++fCursorPosition; } replace(document, fReplacementOffset, fReplacementLength, buffer.toString()); } int oldLen= document.getLength(); applyImports(document); fReplacementOffset += document.getLength() - oldLen; } catch (BadLocationException x) {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
} } private void replace(IDocument document, int offset, int length, String string) throws BadLocationException { if (!document.get(offset, length).equals(string)) document.replace(offset, length, string); } /* * @see ICompletionProposal#apply */ public void apply(IDocument document) { apply(document, (char) 0, fReplacementOffset + fReplacementLength); } /* * @see ICompletionProposal#getSelection */ public Point getSelection(IDocument document) { return new Point(fReplacementOffset + fCursorPosition, 0); } /* * @see ICompletionProposal#getContextInformation() */ public IContextInformation getContextInformation() { return fContextInformation; } /* * @see ICompletionProposal#getImage() */
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
public Image getImage() { return fImage; } /* * @see ICompletionProposal#getDisplayString() */ public String getDisplayString() { return fDisplayString; } /* * @see ICompletionProposal#getAdditionalProposalInfo() */ public String getAdditionalProposalInfo() { if (fProposalInfo != null) { return fProposalInfo.getInfo(); } return null; } /* * @see ICompletionProposalExtension#getTriggerCharacters() */ public char[] getTriggerCharacters() { return fTriggerCharacters; } /* * @see ICompletionProposalExtension#getContextInformationPosition() */ public int getContextInformationPosition() { return fReplacementOffset + fContextInformationPosition;
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
} /** * Gets the replacement offset. * @return Returns a int */ public int getReplacementOffset() { return fReplacementOffset; } /** * Sets the replacement offset. * @param replacementOffset The replacement offset to set */ public void setReplacementOffset(int replacementOffset) { Assert.isTrue(replacementOffset >= 0); fReplacementOffset= replacementOffset; } /** * Gets the replacement length. * @return Returns a int */ public int getReplacementLength() { return fReplacementLength; } /** * Sets the replacement length. * @param replacementLength The replacementLength to set */ public void setReplacementLength(int replacementLength) { Assert.isTrue(replacementLength >= 0);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
fReplacementLength= replacementLength; } /** * Gets the replacement string. * @return Returns a String */ public String getReplacementString() { return fReplacementString; } /** * Sets the replacement string. * @param replacementString The replacement string to set */ public void setReplacementString(String replacementString) { fReplacementString= replacementString; } /** * Sets the image. * @param image The image to set */ public void setImage(Image image) { fImage= image; } /* * @see ICompletionProposalExtension#isValidFor(IDocument, int) */ public boolean isValidFor(IDocument document, int offset) { if (offset < fReplacementOffset) return false;
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
int replacementLength= fReplacementString == null ? 0 : fReplacementString.length(); if (offset > fReplacementOffset + replacementLength) return false; try { int length= offset - fReplacementOffset; String start= document.get(fReplacementOffset, length); return fReplacementString.substring(0, length).equalsIgnoreCase(start); } catch (BadLocationException x) { } return false; } /** * Gets the proposal's relevance. * @return Returns a int */ public int getRelevance() { return fRelevance; } /** * Sets the proposal's relevance. * @param relevance The relevance to set */ public void setRelevance(int relevance) { fRelevance= relevance; } }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java
package org.eclipse.jdt.internal.ui.text.java; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.util.Assert; import org.eclipse.core.runtime.CoreException; import org.eclipse.jdt.core.Flags; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure; import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility; import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.GenStubSettings; import org.eclipse.jdt.internal.corext.util.CodeFormatterUtil; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.corext.util.Strings; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings; public class MethodStubCompletionProposal extends JavaCompletionProposal {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java
private String fTypeName; private String fMethodName; private String[] fParamTypes; private ICompilationUnit fCompilationUnit; private IJavaProject fJavaProject; private ImportsStructure fImportStructure; public MethodStubCompletionProposal(IJavaProject jproject, ICompilationUnit cu, String declaringTypeName, String methodName, String[] paramTypes, int start, int length, String displayName, String completionProposal) { super(completionProposal, start, length, null, displayName, 0); Assert.isNotNull(jproject); Assert.isNotNull(methodName); Assert.isNotNull(declaringTypeName); Assert.isNotNull(paramTypes); fTypeName= declaringTypeName; fParamTypes= paramTypes; fMethodName= methodName; fJavaProject= jproject; fCompilationUnit= cu; fImportStructure= null; }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java
/* * @see JavaCompletionProposal#applyImports(IDocument) */ protected void applyImports(IDocument document) { if (fImportStructure != null) { try { fImportStructure.create(false, null); } catch (CoreException e) { JavaPlugin.log(e); } } } /* * @see ICompletionProposalExtension#apply(IDocument, char) */ public void apply(IDocument document, char trigger, int offset) { try { fImportStructure= null; IType declaringType= fJavaProject.findType(fTypeName); if (declaringType != null) { IMethod method= JavaModelUtil.findMethod(fMethodName, fParamTypes, false, declaringType); if (method != null) { GenStubSettings settings= new GenStubSettings(JavaPreferencesSettings.getCodeGenerationSettings()); IType definingType= null; if (fCompilationUnit != null) { fImportStructure= new ImportsStructure(fCompilationUnit, settings.importOrder, settings.importThreshold, true); IJavaElement currElem= fCompilationUnit.getElementAt(offset); if (currElem != null) { definingType= (IType) currElem.getAncestor(IJavaElement.TYPE); }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodStubCompletionProposal.java
} settings.noBody= (definingType != null) && definingType.isInterface(); settings.callSuper= declaringType.isClass() && !Flags.isAbstract(method.getFlags()) && !Flags.isStatic(method.getFlags()); settings.methodOverwrites= !Flags.isStatic(method.getFlags()); String stub= StubUtility.genStub(fTypeName, method, settings, fImportStructure); String lineDelim= StubUtility.getLineDelimiterFor(document); IRegion region= document.getLineInformationOfOffset(getReplacementOffset()); int lineStart= region.getOffset(); int indent= Strings.computeIndent(document.get(lineStart, getReplacementOffset() - lineStart), settings.tabWidth); String replacement= StubUtility.codeFormat(stub, indent, lineDelim); replacement= Strings.trimLeadingTabsAndSpaces(replacement); setReplacementString(replacement); setCursorPosition(replacement.length()); } } } catch (BadLocationException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } super.apply(document, trigger, offset); } }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
package org.eclipse.jdt.internal.ui.text.java; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import java.util.ArrayList; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.Point; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jdt.core.CompletionRequestorAdapter; import org.eclipse.jdt.core.Flags; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IImportDeclaration; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.Signature; import org.eclipse.jdt.core.compiler.IProblem; import org.eclipse.jdt.ui.JavaElementImageDescriptor; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaPluginImages; import org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry; /** * Bin to collect the proposal of the infrastructure on code assist in a java text. */ public class ResultCollector extends CompletionRequestorAdapter {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
private final static char[] METHOD_WITH_ARGUMENTS_TRIGGERS= new char[] { '(', '-', ' ' }; private final static char[] METHOD_TRIGGERS= new char[] { ';', ',', '.', '\t', '[', ' ' }; private final static char[] TYPE_TRIGGERS= new char[] { '.', '\t', '[', '(', ' ' }; private final static char[] VAR_TRIGGER= new char[] { '\t', ' ', '=', ';' }; private ArrayList fFields= new ArrayList(), fKeywords= new ArrayList(10), fLabels= new ArrayList(10), fMethods= new ArrayList(), fModifiers= new ArrayList(10), fPackages= new ArrayList(), fTypes= new ArrayList(), fVariables= new ArrayList(); private IProblem fLastProblem; private IJavaProject fJavaProject; private ICompilationUnit fCompilationUnit; private int fCodeAssistOffset; private ImageDescriptorRegistry fRegistry= JavaPlugin.getImageDescriptorRegistry(); private ArrayList[] fResults = new ArrayList[] { fPackages, fLabels, fModifiers, fKeywords, fTypes, fMethods, fFields, fVariables }; private int fUserReplacementLength; /* * Is eating code assist enabled or disabled? PR #3666
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
* When eating is enabled, JavaCompletionProposal must be revisited: PR #5533 */ private boolean fPreventEating= true; /* * @see ICompletionRequestor#acceptClass */ public void acceptClass(char[] packageName, char[] typeName, char[] completionName, int modifiers, int start, int end, int relevance) { ImageDescriptor descriptor= JavaPluginImages.DESC_OBJS_CLASS; if (Flags.isDeprecated(modifiers)) descriptor= getDeprecatedDescriptor(descriptor); ProposalInfo info= new ProposalInfo(fJavaProject, packageName, typeName); fTypes.add(createTypeCompletion(start, end, new String(completionName), descriptor, new String(typeName), new String(packageName), info, relevance)); } /* * @see ICompletionRequestor#acceptError */ public void acceptError(IProblem error) { fLastProblem= error; } /* * @see ICompletionRequestor#acceptField */ public void acceptField( char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int start, int end, int relevance) { ImageDescriptor descriptor= getMemberDescriptor(modifiers);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
StringBuffer nameBuffer= new StringBuffer(); nameBuffer.append(name); if (typeName.length > 0) { nameBuffer.append(" "); nameBuffer.append(typeName); } if (declaringTypeName != null && declaringTypeName.length > 0) { nameBuffer.append(" - "); nameBuffer.append(declaringTypeName); } JavaCompletionProposal proposal= createCompletion(start, end, new String(completionName), descriptor, nameBuffer.toString(), relevance); proposal.setProposalInfo(new ProposalInfo(fJavaProject, declaringTypePackageName, declaringTypeName, name)); proposal.setTriggerCharacters(VAR_TRIGGER); fFields.add(proposal); } /* * @see ICompletionRequestor#acceptInterface */ public void acceptInterface(char[] packageName, char[] typeName, char[] completionName, int modifiers, int start, int end, int relevance) { ImageDescriptor descriptor= JavaPluginImages.DESC_OBJS_INTERFACE; if (Flags.isDeprecated(modifiers)) descriptor= getDeprecatedDescriptor(descriptor); ProposalInfo info= new ProposalInfo(fJavaProject, packageName, typeName); fTypes.add(createTypeCompletion(start, end, new String(completionName), descriptor, new String(typeName), new String(packageName), info, relevance)); }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
/* * @see ICompletionRequestor#acceptAnonymousType */ public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { JavaCompletionProposal proposal= createAnonymousTypeCompletion(superTypePackageName, superTypeName, parameterTypeNames, parameterNames, completionName, completionStart, completionEnd, relevance); proposal.setProposalInfo(new ProposalInfo(fJavaProject, superTypePackageName, superTypeName)); fTypes.add(proposal); } /* * @see ICompletionRequestor#acceptKeyword */ public void acceptKeyword(char[] keyword, int start, int end, int relevance) { String kw= new String(keyword); fKeywords.add(createCompletion(start, end, kw, null, kw, relevance)); } /* * @see ICompletionRequestor#acceptLabel */ public void acceptLabel(char[] labelName, int start, int end, int relevance) { String ln= new String(labelName); fLabels.add(createCompletion(start, end, ln, null, ln, relevance)); } /* * @see ICompletionRequestor#acceptLocalVariable */ public void acceptLocalVariable(char[] name, char[] typePackageName, char[] typeName, int modifiers, int start, int end, int relevance) {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
StringBuffer buf= new StringBuffer(); buf.append(name); if (typeName != null) { buf.append(" "); buf.append(typeName); } JavaCompletionProposal proposal= createCompletion(start, end, new String(name), null, buf.toString(), relevance); proposal.setTriggerCharacters(VAR_TRIGGER); fVariables.add(proposal); } private String getParameterSignature(char[][] parameterTypeNames, char[][] parameterNames) { StringBuffer buf = new StringBuffer(); if (parameterTypeNames != null) { for (int i = 0; i < parameterTypeNames.length; i++) { if (i > 0) { buf.append(','); buf.append(' '); } buf.append(parameterTypeNames[i]); if (parameterNames != null && parameterNames[i] != null) { buf.append(' '); buf.append(parameterNames[i]); } } } return buf.toString(); } /*
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
* @see ICompletionRequestor#acceptMethod */ public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int start, int end, int relevance) { JavaCompletionProposal proposal= createMethodCallCompletion(declaringTypeName, name, parameterTypeNames, parameterNames, returnTypeName, completionName, modifiers, start, end, relevance); proposal.setProposalInfo(new ProposalInfo(fJavaProject, declaringTypePackageName, declaringTypeName, name, parameterPackageNames, parameterTypeNames, returnTypeName.length == 0)); boolean hasOpeningBracket= completionName.length == 0 || (completionName.length > 0 && completionName[completionName.length - 1] == ')'); ProposalContextInformation contextInformation= null; if (hasOpeningBracket && parameterTypeNames.length > 0) { contextInformation= new ProposalContextInformation(); contextInformation.setInformationDisplayString(getParameterSignature(parameterTypeNames, parameterNames)); contextInformation.setContextDisplayString(proposal.getDisplayString()); contextInformation.setImage(proposal.getImage()); proposal.setContextInformation(contextInformation); } boolean userMustCompleteParameters= (contextInformation != null && completionName.length > 0); char[] triggers= userMustCompleteParameters ? METHOD_WITH_ARGUMENTS_TRIGGERS : METHOD_TRIGGERS; proposal.setTriggerCharacters(triggers); if (userMustCompleteParameters) { proposal.setCursorPosition(completionName.length - 1); } fMethods.add(proposal);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
} /* * @see ICompletionRequestor#acceptModifier */ public void acceptModifier(char[] modifier, int start, int end, int relevance) { String mod= new String(modifier); fModifiers.add(createCompletion(start, end, mod, null, mod, relevance)); } /* * @see ICompletionRequestor#acceptPackage */ public void acceptPackage(char[] packageName, char[] completionName, int start, int end, int relevance) { fPackages.add(createCompletion(start, end, new String(completionName), JavaPluginImages.DESC_OBJS_PACKAGE, new String(packageName), relevance)); } /* * @see ICompletionRequestor#acceptType */ public void acceptType(char[] packageName, char[] typeName, char[] completionName, int start, int end, int relevance) { ProposalInfo info= new ProposalInfo(fJavaProject, packageName, typeName); fTypes.add(createTypeCompletion(start, end, new String(completionName), JavaPluginImages.DESC_OBJS_CLASS, new String(typeName), new String(packageName), info, relevance)); } /* * @see ICodeCompletionRequestor#acceptMethodDeclaration */ public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int start, int end, int relevance) { StringBuffer displayString= getMethodDisplayString(declaringTypeName, name, parameterTypeNames, parameterNames, returnTypeName);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
StringBuffer typeName= new StringBuffer(); if (declaringTypePackageName.length > 0) { typeName.append(declaringTypePackageName); typeName.append('.'); } typeName.append(declaringTypeName); String[] paramTypes= new String[parameterTypeNames.length]; for (int i= 0; i < parameterTypeNames.length; i++) { paramTypes[i]= Signature.createTypeSignature(parameterTypeNames[i], true); } JavaCompletionProposal proposal= new MethodStubCompletionProposal(fJavaProject, fCompilationUnit, typeName.toString(), new String(name), paramTypes, start, getLength(start, end), displayString.toString(), new String(completionName)); proposal.setImage(fRegistry.get(getMemberDescriptor(modifiers))); proposal.setProposalInfo(new ProposalInfo(fJavaProject, declaringTypePackageName, declaringTypeName, name, parameterPackageNames, parameterTypeNames, returnTypeName.length == 0)); proposal.setRelevance(relevance); fMethods.add(proposal); } /* * @see ICodeCompletionRequestor#acceptVariableName */ public void acceptVariableName(char[] typePackageName, char[] typeName, char[] name, char[] completionName, int start, int end, int relevance) { StringBuffer buf= new StringBuffer(); buf.append(name); if (typeName != null && typeName.length > 0) { buf.append(" - "); buf.append(typeName); }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
JavaCompletionProposal proposal= createCompletion(start, end, new String(completionName), null, buf.toString(), relevance); proposal.setTriggerCharacters(VAR_TRIGGER); fVariables.add(proposal); } public String getErrorMessage() { if (fLastProblem != null) return fLastProblem.getMessage(); return ""; } public JavaCompletionProposal[] getResults() { int totLen= 0; for (int i= 0; i < fResults.length; i++) { totLen += fResults[i].size(); } JavaCompletionProposal[] result= new JavaCompletionProposal[totLen]; int k= 0; for (int i= 0; i < fResults.length; i++) { ArrayList curr= fResults[i]; int currLen= curr.size(); for (int j= 0; j < currLen; j++) { JavaCompletionProposal proposal= (JavaCompletionProposal) curr.get(j); proposal.setRelevance(proposal.getRelevance() * 16 + i); result[k++]= proposal; } } return result; }
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
private StringBuffer getMethodDisplayString(char[] declaringTypeName, char[] name, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypeName) { StringBuffer nameBuffer= new StringBuffer(); nameBuffer.append(name); nameBuffer.append('('); if (parameterTypeNames != null && parameterTypeNames.length > 0) { nameBuffer.append(getParameterSignature(parameterTypeNames, parameterNames)); } nameBuffer.append(')'); if (returnTypeName != null && returnTypeName.length > 0) { nameBuffer.append(" "); nameBuffer.append(returnTypeName); } if (declaringTypeName != null && declaringTypeName.length > 0) { nameBuffer.append(" - "); nameBuffer.append(declaringTypeName); } return nameBuffer; } protected JavaCompletionProposal createMethodCallCompletion(char[] declaringTypeName, char[] name, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypeName, char[] completionName, int modifiers, int start, int end, int relevance) { ImageDescriptor descriptor= getMemberDescriptor(modifiers); StringBuffer nameBuffer= getMethodDisplayString(declaringTypeName, name, parameterTypeNames, parameterNames, returnTypeName); return createCompletion(start, end, new String(completionName), descriptor, nameBuffer.toString(), relevance); } protected JavaCompletionProposal createAnonymousTypeCompletion(char[] declaringTypePackageName, char[] declaringTypeName, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int start, int end, int relevance) { StringBuffer declTypeBuf= new StringBuffer(); if (declaringTypePackageName.length > 0) { declTypeBuf.append(declaringTypePackageName); declTypeBuf.append('.'); } declTypeBuf.append(declaringTypeName);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
StringBuffer nameBuffer= new StringBuffer(); nameBuffer.append(declaringTypeName); nameBuffer.append('('); if (parameterTypeNames.length > 0) { nameBuffer.append(getParameterSignature(parameterTypeNames, parameterNames)); } nameBuffer.append(')'); nameBuffer.append(" "); nameBuffer.append(JavaTextMessages.getString("ResultCollector.anonymous_type")); int length= end - start; return new AnonymousTypeCompletionProposal(fJavaProject, fCompilationUnit, start, length, new String(completionName), nameBuffer.toString(), declTypeBuf.toString(), relevance); } protected JavaCompletionProposal createTypeCompletion(int start, int end, String completion, ImageDescriptor descriptor, String typeName, String containerName, ProposalInfo proposalInfo, int relevance) { IImportDeclaration importDeclaration= null; if (containerName != null && fCompilationUnit != null) { if (completion.equals(JavaModelUtil.concatenateName(containerName, typeName))) { importDeclaration= fCompilationUnit.getImport(completion); completion= typeName; } } StringBuffer buf= new StringBuffer(typeName); if (containerName != null) { buf.append(" - "); if (containerName.length() > 0) { buf.append(containerName); } else {
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
buf.append(JavaTextMessages.getString("ResultCollector.default_package")); } } String name= buf.toString(); JavaCompletionProposal proposal= createCompletion(start, end, completion, descriptor, name, relevance); proposal.setImportDeclaration(importDeclaration); proposal.setProposalInfo(proposalInfo); proposal.setTriggerCharacters(TYPE_TRIGGERS); return proposal; } protected ImageDescriptor getMemberDescriptor(int modifiers) { ImageDescriptor desc; if (Flags.isPublic(modifiers)) { desc= JavaPluginImages.DESC_MISC_PUBLIC; } else if (Flags.isProtected(modifiers)) { desc= JavaPluginImages.DESC_MISC_PROTECTED; } else if (Flags.isPrivate(modifiers)) { desc= JavaPluginImages.DESC_MISC_PRIVATE; } else { desc= JavaPluginImages.DESC_MISC_DEFAULT; } if (Flags.isDeprecated(modifiers)) return getDeprecatedDescriptor(desc); return desc; } protected ImageDescriptor getDeprecatedDescriptor(ImageDescriptor descriptor) { Point size= new Point(16, 16);
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
return new JavaElementImageDescriptor(descriptor, JavaElementImageDescriptor.WARNING, size); } protected JavaCompletionProposal createCompletion(int start, int end, String completion, ImageDescriptor descriptor, String name, int relevance) { Image icon= (descriptor == null) ? null : fRegistry.get(descriptor); return new JavaCompletionProposal(completion, start, getLength(start, end), icon, name, relevance); } private int getLength(int start, int end) { int length; if (fUserReplacementLength == -1) { length= fPreventEating ? fCodeAssistOffset - start : end - start; } else { length= fUserReplacementLength; if (start < fCodeAssistOffset) { length+= fCodeAssistOffset - start; } } return length; } /** * Specifies the context of the code assist operation. * @param codeAssistOffset The Offset on which the code assist will be called. * Used to modify the offsets of the created proposals. ('Non Eating') * @param jproject The Java project to which the underlying source belongs. * Needed to find types referred. * @param cu The compilation unit that is edited. Used to add import statements. * Can be <code>null</code> if no import statements should be added. */
9,440
Bug 9440 Duplicate non-qualified class names no handled by import generator
If I have two types: org.acme.goodstuff.MyType and org.acme.coolstuff.MyType and I use Code Completion (or something that invokes the smart import logic). The smart import stuff generates imports for both references to these types, ignoring the fact that one of them has to remain qualified in the code in order not to conflict with the other. You cannot have two import statements which resolve the same non-qualified type identifier. The standard library has some instances of this (for instance the Interface 'Certificate' and the abstract Class 'Certificate').
resolved fixed
5105ba9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:15:35Z
2002-02-12T05:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
public void reset(int codeAssistOffset, IJavaProject jproject, ICompilationUnit cu) { fJavaProject= jproject; fCompilationUnit= cu; fCodeAssistOffset= codeAssistOffset; fUserReplacementLength= -1; fLastProblem= null; for (int i= 0; i < fResults.length; i++) fResults[i].clear(); } /** * If the replacement length is set, it overrides the length returned from * the content assist infrastructure. * Use this setting if code assist is called with a none empty selection. */ public void setReplacementLength(int length) { fUserReplacementLength= length; } /** * If set, proposals created will not remove characters after the code assist position * @param preventEating The preventEating to set */ public void setPreventEating(boolean preventEating) { fPreventEating= preventEating; } }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.browsing; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IPath; import org.eclipse.swt.SWT; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.DragSourceEvent; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
import org.eclipse.swt.events.KeyAdapter; import org.eclipse.swt.events.KeyEvent; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IStatusLineManager; import org.eclipse.jface.action.IToolBarManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.util.Assert; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.jface.viewers.DecoratingLabelProvider; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ILabelDecorator; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.StructuredSelection;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IFileEditorInput; import org.eclipse.ui.IMemento; import org.eclipse.ui.IPartListener; import org.eclipse.ui.ISelectionListener; import org.eclipse.ui.IViewSite; import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite; import org.eclipse.ui.IWorkingSet; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.actions.ActionGroup; import org.eclipse.ui.actions.NewWizardMenu; import org.eclipse.ui.actions.OpenWithMenu; import org.eclipse.ui.actions.RefreshAction; import org.eclipse.ui.dialogs.PropertyDialogAction; import org.eclipse.ui.part.ResourceTransfer; import org.eclipse.ui.part.ViewPart; import org.eclipse.jdt.core.IClassFile; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.IWorkingCopy; import org.eclipse.jdt.core.JavaModelException;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.ui.IWorkingCopyManager; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.ui.JavaElementSorter; import org.eclipse.jdt.ui.JavaUI; import org.eclipse.jdt.ui.actions.CCPActionGroup; import org.eclipse.jdt.ui.actions.GenerateActionGroup; import org.eclipse.jdt.ui.actions.OpenAction; import org.eclipse.jdt.ui.actions.OpenEditorActionGroup; import org.eclipse.jdt.ui.actions.OpenViewActionGroup; import org.eclipse.jdt.ui.actions.RefactorActionGroup; import org.eclipse.jdt.ui.actions.ShowActionGroup; import org.eclipse.jdt.ui.actions.ShowInNavigatorViewAction; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.actions.CompositeActionGroup; import org.eclipse.jdt.internal.ui.actions.ContextMenuGroup; import org.eclipse.jdt.internal.ui.actions.GenerateGroup; import org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter; import org.eclipse.jdt.internal.ui.dnd.DelegatingDropAdapter; import org.eclipse.jdt.internal.ui.dnd.LocalSelectionTransfer; import org.eclipse.jdt.internal.ui.dnd.ResourceTransferDragAdapter; import org.eclipse.jdt.internal.ui.dnd.TransferDragSourceListener; import org.eclipse.jdt.internal.ui.dnd.TransferDropTargetListener; import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; import org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput; import org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput; import org.eclipse.jdt.internal.ui.packageview.BuildGroup; import org.eclipse.jdt.internal.ui.packageview.PackagesMessages; import org.eclipse.jdt.internal.ui.packageview.SelectionTransferDragAdapter; import org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
import org.eclipse.jdt.internal.ui.search.JavaSearchGroup; import org.eclipse.jdt.internal.ui.util.JavaUIHelp; import org.eclipse.jdt.internal.ui.viewsupport.BaseJavaElementContentProvider; import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels; import org.eclipse.jdt.internal.ui.viewsupport.ProblemTableViewer; import org.eclipse.jdt.internal.ui.viewsupport.StandardJavaUILabelProvider; import org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater; import org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilter; import org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup; abstract class JavaBrowsingPart extends ViewPart implements IMenuListener, ISelectionListener { private ILabelProvider fLabelProvider; private ILabelProvider fTitleProvider; private StructuredViewer fViewer; private IMemento fMemento; private JavaElementTypeComparator fTypeComparator; private BuildGroup fBuildGroup; private ContextMenuGroup[] fStandardGroups; private CompositeActionGroup fStandardActionGroups; private OpenAction fOpenAction; private Action fOpenToAction; private Action fShowNavigatorAction; protected PropertyDialogAction fPropertyDialogAction; private RefreshAction fRefreshAction; private Menu fContextMenu; private IWorkbenchPart fPreviousSelectionProvider; private Object fPreviousSelectedElement;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
private Image fOriginalTitleImage; private WorkingSetFilterActionGroup fWorkingSetFilterActionGroup; private CCPActionGroup fCCPActionGroup; /* * Ensure selection changed events being processed only if * initiated by user interaction with this part. */ private boolean fProcessSelectionEvents= true; private IPartListener fPartListener= new IPartListener() { public void partActivated(IWorkbenchPart part) { setSelectionFromEditor(part); } public void partBroughtToTop(IWorkbenchPart part) { } public void partClosed(IWorkbenchPart part) { } public void partDeactivated(IWorkbenchPart part) { } public void partOpened(IWorkbenchPart part) { } }; /* * Implements method from IViewPart. */ public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento= memento; }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
/* * Implements method from IViewPart. */ public void saveState(IMemento memento) { if (fViewer == null) { if (fMemento != null) memento.putMemento(fMemento); return; } fWorkingSetFilterActionGroup.saveState(memento); } protected void restoreState(IMemento memento) { fWorkingSetFilterActionGroup.restoreState(memento); } /** * Creates the search list inner viewer. */ public void createPartControl(Composite parent) { Assert.isTrue(fViewer == null); fTypeComparator= new JavaElementTypeComparator(); fViewer= createViewer(parent); fLabelProvider= createLabelProvider(); ILabelDecorator decorationMgr= PlatformUI.getWorkbench().getDecoratorManager(); fViewer.setLabelProvider(new DecoratingLabelProvider(fLabelProvider, decorationMgr)); fViewer.setSorter(new JavaElementSorter()); fViewer.setUseHashlookup(true); JavaPlugin.getDefault().getProblemMarkerManager().addListener((IProblemChangedListener)fViewer);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
fTitleProvider= createTitleProvider(); MenuManager menuMgr= new MenuManager("#PopupMenu"); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(this); fContextMenu= menuMgr.createContextMenu(fViewer.getControl()); fViewer.getControl().setMenu(fContextMenu); getSite().registerContextMenu(menuMgr, fViewer); getSite().setSelectionProvider(fViewer); createActions(); addKeyListener(); if (fMemento != null) restoreState(fMemento); fMemento= null; getSite().setSelectionProvider(fViewer); IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager(); fViewer.addSelectionChangedListener(new StatusBarUpdater(slManager)); hookViewerListeners(); addFilters(); fViewer.setContentProvider(createContentProvider()); setInitialInput(); initDragAndDrop();
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
setInitialSelection(); getViewSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this); getViewSite().getPage().addPartListener(fPartListener); fillActionBars(); setHelp(); } private void initDragAndDrop() { int ops= DND.DROP_COPY | DND.DROP_MOVE; Transfer[] transfers= new Transfer[] { LocalSelectionTransfer.getInstance(), ResourceTransfer.getInstance()}; TransferDropTargetListener[] dropListeners= new TransferDropTargetListener[] { new SelectionTransferDropAdapter(fViewer) }; fViewer.addDropSupport(ops, transfers, new DelegatingDropAdapter(dropListeners)); Control control= fViewer.getControl(); TransferDragSourceListener[] dragListeners= new TransferDragSourceListener[] { new SelectionTransferDragAdapter(fViewer), new ResourceTransferDragAdapter(fViewer) }; DragSource source= new DragSource(control, ops);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
source.addDragListener(new DelegatingDragAdapter(dragListeners) { public void dragStart(DragSourceEvent event) { IStructuredSelection selection= (IStructuredSelection)getSelectionProvider().getSelection(); for (Iterator iter= selection.iterator(); iter.hasNext(); ) { if (iter.next() instanceof IMember) { setPossibleListeners(new TransferDragSourceListener[] {new SelectionTransferDragAdapter(fViewer)}); break; } } super.dragStart(event); } }); } protected void fillActionBars() { IActionBars actionBars= getViewSite().getActionBars(); IToolBarManager toolBar= actionBars.getToolBarManager(); fillToolBar(toolBar); fWorkingSetFilterActionGroup.fillActionBars(getViewSite().getActionBars()); actionBars.updateActionBars(); fStandardActionGroups.fillActionBars(actionBars); actionBars.setGlobalActionHandler(IWorkbenchActionConstants.REFRESH, fRefreshAction);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
fBuildGroup.fillActionBars(actionBars); } public void setFocus() { fViewer.getControl().setFocus(); } public void dispose() { if (fViewer != null) { JavaPlugin.getDefault().getProblemMarkerManager().removeListener((IProblemChangedListener)fViewer); getViewSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(this); getViewSite().getPage().removePartListener(fPartListener); fViewer= null; } if (fStandardActionGroups != null) fStandardActionGroups.dispose(); super.dispose(); } /** * Adds the KeyListener */ protected void addKeyListener() { fViewer.getControl().addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent event) { handleKeyReleased(event); } });
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
} protected void handleKeyReleased(KeyEvent event) { if (event.stateMask != 0) return; int key= event.keyCode; if (key == SWT.F5) { fRefreshAction.selectionChanged( (IStructuredSelection) fViewer.getSelection()); if (fRefreshAction.isEnabled()) fRefreshAction.run(); } if (event.character == SWT.DEL) { if (fCCPActionGroup.getDeleteAction().isEnabled()) fCCPActionGroup.getDeleteAction().run(); } } protected void fillToolBar(IToolBarManager tbm) { } /** * Called when the context menu is about to open. * Override to add your own context dependent menu contributions. */ public void menuAboutToShow(IMenuManager menu) { JavaPlugin.createStandardGroups(menu); IStructuredSelection selection= (IStructuredSelection) fViewer.getSelection(); int size= selection.size();
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
fPropertyDialogAction.selectionChanged(selection); MenuManager newMenu= new MenuManager(PackagesMessages.getString("PackageExplorer.new")); menu.appendToGroup(IContextMenuConstants.GROUP_NEW, newMenu); new NewWizardMenu(newMenu, getSite().getWorkbenchWindow(), false); fOpenAction.update(); if (fOpenAction.isEnabled()) menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpenAction); addOpenWithMenu(menu, selection); if (size == 1) addOpenNewWindowAction(menu, selection.getFirstElement()); ContextMenuGroup.add(menu, fStandardGroups, fViewer); menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, fRefreshAction); fRefreshAction.selectionChanged(selection); fStandardActionGroups.get(2).fillContextMenu(menu); fStandardActionGroups.get(3).fillContextMenu(menu); fStandardActionGroups.get(4).fillContextMenu(menu); menu.add(new Separator()); if (fPropertyDialogAction.isApplicableForSelection()) menu.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, fPropertyDialogAction); } private void addOpenNewWindowAction(IMenuManager menu, Object element) { if (element instanceof IJavaElement) { try { element= ((IJavaElement)element).getCorrespondingResource(); } catch(JavaModelException e) { }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
} if (!(element instanceof IContainer)) return; menu.appendToGroup( IContextMenuConstants.GROUP_OPEN, new PatchedOpenInNewWindowAction(getSite().getWorkbenchWindow(), (IContainer)element)); } private void createActions() { ISelectionProvider provider= getSelectionProvider(); fOpenAction= new OpenAction(getViewSite()); fPropertyDialogAction= new PropertyDialogAction(getShell(), provider); fShowNavigatorAction= new ShowInNavigatorViewAction(getViewSite()); fBuildGroup= new BuildGroup(this, true); fStandardGroups= new ContextMenuGroup[] { fBuildGroup, new GenerateGroup(), new JavaSearchGroup() }; fStandardActionGroups= new CompositeActionGroup(new ActionGroup[] { new OpenEditorActionGroup(this), new OpenViewActionGroup(this), new ShowActionGroup(this), fCCPActionGroup= new CCPActionGroup(this), new RefactorActionGroup(this), new GenerateActionGroup(this)}); fRefreshAction= new RefreshAction(getShell()); String viewId= getConfigurationElement().getAttribute("id"); Assert.isNotNull(viewId);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
IPropertyChangeListener titleUpdater= new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { String property= event.getProperty(); if (IWorkbenchPage.CHANGE_WORKING_SET_REPLACE.equals(property)) updateTitle(); else if (IWorkingSet.CHANGE_WORKING_SET_NAME_CHANGE.equals(property)) updateTitle(); } }; fWorkingSetFilterActionGroup= new WorkingSetFilterActionGroup(fViewer, viewId, getShell(), titleUpdater); } private void addOpenWithMenu(IMenuManager menu, IStructuredSelection selection) { if (selection.size() != 1) return; IAdaptable element= (IAdaptable)selection.getFirstElement(); Object resource= element.getAdapter(IResource.class); if (!(resource instanceof IFile)) return; MenuManager submenu= new MenuManager(PackagesMessages.getString("PackageExplorer.openWith")); submenu.add(new OpenWithMenu(getSite().getPage(), (IFile) resource)); menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, submenu); } /** * Returns the shell to use for opening dialogs.
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
* Used in this class, and in the actions. */ private Shell getShell() { return fViewer.getControl().getShell(); } protected final Display getDisplay() { return fViewer.getControl().getDisplay(); } /** * Returns the selection provider. */ ISelectionProvider getSelectionProvider() { return fViewer; } /** * Answers if the given <code>element</code> is a valid * input for this part. * * @param element the object to test * @return <true> if the given element is a valid input */ abstract protected boolean isValidInput(Object element); /** * Answers if the given <code>element</code> is a valid * element for this part. * * @param element the object to test * @return <true> if the given element is a valid element */ protected boolean isValidElement(Object element) {
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
if (element == null) return false; element= getSuitableJavaElement(element); if (element == null) return false; Object input= getViewer().getInput(); if (input == null) return false; if (input instanceof Collection) return ((Collection)input).contains(element); else return input.equals(element); } private boolean isInputResetBy(Object newInput, Object input, IWorkbenchPart part) { if (newInput == null) return part == fPreviousSelectionProvider; if (input instanceof IJavaElement && newInput instanceof IJavaElement) return getTypeComparator().compare(newInput, input) > 0; else return false; } private boolean isInputResetBy(IWorkbenchPart part) { if (!(part instanceof JavaBrowsingPart)) return true; Object thisInput= getViewer().getInput(); Object partInput= ((JavaBrowsingPart)part).getViewer().getInput(); if (thisInput instanceof IJavaElement && partInput instanceof IJavaElement) return getTypeComparator().compare(partInput, thisInput) > 0; else
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
return true; } protected boolean isAncestorOf(Object ancestor, Object element) { if (element instanceof IJavaElement && ancestor instanceof IJavaElement) return !element.equals(ancestor) && internalIsAncestorOf((IJavaElement)ancestor, (IJavaElement)element); return false; } private boolean internalIsAncestorOf(IJavaElement ancestor, IJavaElement element) { if (element != null) return element.equals(ancestor) || internalIsAncestorOf(ancestor, element.getParent()); else return false; } public void selectionChanged(IWorkbenchPart part, ISelection selection) { if (!fProcessSelectionEvents || part == this || !(selection instanceof IStructuredSelection)) return; Object selectedElement= getSingleElementFromSelection(selection); if (selectedElement != null && part.equals(fPreviousSelectionProvider) && selectedElement.equals(fPreviousSelectedElement)) return; fPreviousSelectedElement= selectedElement; Object currentInput= (IJavaElement)getViewer().getInput(); if (selectedElement != null && selectedElement.equals(currentInput)) { IJavaElement elementToSelect= findElementToSelect(getSingleElementFromSelection(selection)); if (elementToSelect != null && getTypeComparator().compare(selectedElement, elementToSelect) < 0)
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
setSelection(new StructuredSelection(elementToSelect), true); fPreviousSelectionProvider= part; return; } if (part != fPreviousSelectionProvider && selectedElement != null && !selectedElement.equals(currentInput) && isInputResetBy(selectedElement, currentInput, part)) { if (!isAncestorOf(selectedElement, currentInput)) setInput(null); fPreviousSelectionProvider= part; return; } else if (selection.isEmpty() && !isInputResetBy(part)) { fPreviousSelectionProvider= part; return; } else if (selectedElement == null && part == fPreviousSelectionProvider) { setInput(null); fPreviousSelectionProvider= part; return; } fPreviousSelectionProvider= part; if (selectedElement instanceof IJavaElement) adjustInputAndSetSelection((IJavaElement)selectedElement); else setSelection(StructuredSelection.EMPTY, true); } protected void setInput(Object input) { if (input == null) setTitleImage(fOriginalTitleImage);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
else if (input instanceof Collection) { if (((Collection)input).isEmpty()) setTitleImage(fOriginalTitleImage); else { Object firstElement= ((Collection)input).iterator().next(); setTitleImage(fTitleProvider.getImage(firstElement)); } } else setTitleImage(fTitleProvider.getImage(input)); setViewerInput(input); updateTitle(); } private void setViewerInput(Object input) { fProcessSelectionEvents= false; fViewer.setInput(input); fProcessSelectionEvents= true; } void updateTitle() { setTitleToolTip(getToolTipText(fViewer.getInput())); } /** * Returns the tool tip text for the given element. */ String getToolTipText(Object element) { String result; if (!(element instanceof IResource)) { result= JavaElementLabels.getTextLabel(element, StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS); } else { IPath path= ((IResource) element).getFullPath(); if (path.isRoot()) {
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
result= getConfigurationElement().getAttribute("name"); } else { result= path.makeRelative().toString(); } } if (fWorkingSetFilterActionGroup == null || fWorkingSetFilterActionGroup.getWorkingSet() == null) return result; IWorkingSet ws= fWorkingSetFilterActionGroup.getWorkingSet(); String wsstr= JavaBrowsingMessages.getFormattedString("JavaBrowsingPart.toolTip", new String[] { ws.getName() }); if (result.length() == 0) return wsstr; return JavaBrowsingMessages.getFormattedString("JavaBrowsingPart.toolTip2", new String[] { result, ws.getName() }); } public String getTitleToolTip() { if (fViewer == null) return super.getTitleToolTip(); return getToolTipText(fViewer.getInput()); } /** * Sets or clears the title image of this part and * store the orignal image on the first call. */ protected void setTitleImage(Image titleImage) { if (fOriginalTitleImage == null) fOriginalTitleImage= getTitleImage(); if (titleImage == null) titleImage= fOriginalTitleImage; super.setTitleImage(titleImage);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
} protected final StructuredViewer getViewer() { return fViewer; } protected ILabelProvider createLabelProvider() { return new StandardJavaUILabelProvider( StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS, StandardJavaUILabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS, StandardJavaUILabelProvider.getAdornmentProviders(true, null) ); } protected ILabelProvider createTitleProvider() { return new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_SMALL_ICONS); } protected final ILabelProvider getLabelProvider() { return fLabelProvider; } protected final ILabelProvider getTitleProvider() { return fTitleProvider; } /** * Creates the the viewer of this part. * * @param parent the parent for the viewer */ protected StructuredViewer createViewer(Composite parent) { return new ProblemTableViewer(parent, SWT.MULTI); } protected int getLabelProviderFlags() {
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS | JavaElementLabelProvider.SHOW_SMALL_ICONS | JavaElementLabelProvider.SHOW_VARIABLE | JavaElementLabelProvider.SHOW_PARAMETERS; } /** * Adds filters the viewer of this part. */ protected void addFilters() { } /** * Creates the the content provider of this part. */ protected BaseJavaElementContentProvider createContentProvider() { return new JavaElementContentProvider(true, this); } protected void setInitialInput() { ISelection selection= getSite().getPage().getSelection(); Object input= getSingleElementFromSelection(selection); if (!(input instanceof IJavaElement)) { input= getSite().getPage().getInput(); if (!(input instanceof IJavaElement) && input instanceof IAdaptable) input= ((IAdaptable)input).getAdapter(IJavaElement.class); } setInput(findInputForJavaElement((IJavaElement)input)); } protected void setInitialSelection() { Object input;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
ISelection selection= getSite().getPage().getSelection(); if (selection != null && !selection.isEmpty()) input= getSingleElementFromSelection(selection); else { input= getSite().getPage().getInput(); if (!(input instanceof IJavaElement)) { if (input instanceof IAdaptable) input= ((IAdaptable)input).getAdapter(IJavaElement.class); else return; } } if (findElementToSelect((IJavaElement)input) != null) adjustInputAndSetSelection((IJavaElement)input); } final protected void setHelp() { JavaUIHelp.setHelp(fViewer, getHelpContextId()); } /** * Returns the context ID for the Help system * * @return the string used as ID for the Help context */ abstract protected String getHelpContextId(); /** * Adds additional listeners to this view. */ protected void hookViewerListeners() { fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
public void selectionChanged(SelectionChangedEvent event) { if (!fProcessSelectionEvents) return; if (JavaBrowsingPreferencePage.openEditorOnSingleClick()) new ShowInEditorAction().run(event.getSelection(), getSite().getPage()); else if (JavaBrowsingPart.this.equals(getSite().getPage().getActivePart())) linkToEditor((IStructuredSelection)event.getSelection()); } }); fViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { if (fProcessSelectionEvents && !JavaBrowsingPreferencePage.openEditorOnSingleClick()) new ShowInEditorAction().run(event.getSelection(), getSite().getPage()); } }); } void adjustInputAndSetSelection(IJavaElement je) { je= getSuitableJavaElement(je); IJavaElement elementToSelect= findElementToSelect(je); IJavaElement newInput= findInputForJavaElement(je); if (elementToSelect == null && !isValidInput(newInput)) setInput(null); else if (elementToSelect == null || getViewer().testFindItem(elementToSelect) == null) setInput(findInputForJavaElement(je)); if (elementToSelect != null) setSelection(new StructuredSelection(elementToSelect), true); else
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
setSelection(StructuredSelection.EMPTY, true); } /** * Finds the closest Java element which can be used as input for * this part and has the given Java element as child * * @param je the Java element for which to search the closest input * @return the closest Java element used as input for this part */ protected IJavaElement findInputForJavaElement(IJavaElement je) { if (je == null || !je.exists()) return null; if (isValidInput(je)) return je; return findInputForJavaElement(je.getParent()); } final protected IJavaElement findElementToSelect(Object obj) { if (obj instanceof IJavaElement) return findElementToSelect((IJavaElement)obj); return null; } /** * Finds the element which has to be selected in this part. * * @param je the Java element which has the focus */ abstract protected IJavaElement findElementToSelect(IJavaElement je);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
private Object getSingleElementFromSelection(ISelection selection) { if (!(selection instanceof StructuredSelection) || selection.isEmpty()) return null; Iterator iter= ((StructuredSelection)selection).iterator(); Object firstElement= iter.next(); if (!(firstElement instanceof IJavaElement)) { if (firstElement instanceof IAdaptable) return (IJavaElement)((IAdaptable)firstElement).getAdapter(IJavaElement.class); else return firstElement; } Object currentInput= (IJavaElement)getViewer().getInput(); if (currentInput == null || !currentInput.equals(findInputForJavaElement((IJavaElement)firstElement))) if (iter.hasNext()) return null; else return firstElement; while (iter.hasNext()) { Object element= iter.next(); if (!(element instanceof IJavaElement)) return null; if (!currentInput.equals(findInputForJavaElement((IJavaElement)element))) return null; } return firstElement; }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
/** * Gets the typeComparator. * @return Returns a JavaElementTypeComparator */ protected Comparator getTypeComparator() { return fTypeComparator; } /** * Links to editor (if option enabled) */ private void linkToEditor(IStructuredSelection selection) { if (selection == null || selection.isEmpty()) return; Object obj= selection.getFirstElement(); Object element= null; if (selection.size() == 1) { if (obj instanceof IJavaElement) { IJavaElement cu= ((IJavaElement)obj).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) element= getResourceFor(cu); if (element == null) element= ((IJavaElement)obj).getAncestor(IJavaElement.CLASS_FILE); } else if (obj instanceof IFile) element= obj; if (element == null) return; IWorkbenchPage page= getSite().getPage(); IEditorPart editorArray[]= page.getEditors();
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
for (int i= 0; i < editorArray.length; ++i) { IEditorPart editor= editorArray[i]; Object input= getElementOfInput(editor.getEditorInput()); if (input != null && input.equals(element)) { page.bringToTop(editor); if (obj instanceof IJavaElement) EditorUtility.revealInEditor(editor, (IJavaElement) obj); return; } } } } private void setSelectionFromEditor(IWorkbenchPart part) { if (part == null) return; IWorkbenchPartSite site= part.getSite(); if (site == null) return; ISelectionProvider provider= site.getSelectionProvider(); if (provider != null) setSelectionFromEditor(part, provider.getSelection()); } private void setSelectionFromEditor(IWorkbenchPart part, ISelection selection) { if (part instanceof IEditorPart && JavaBrowsingPreferencePage.linkViewSelectionToEditor()) { IEditorInput ei= ((IEditorPart)part).getEditorInput(); if (selection instanceof ITextSelection) { int offset= ((ITextSelection)selection).getOffset(); IJavaElement element= getElementForInputAt(ei, offset); if (element != null) { adjustInputAndSetSelection(element);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
return; } } if (ei instanceof IFileEditorInput) { IFile file= ((IFileEditorInput)ei).getFile(); IJavaElement je= (IJavaElement)file.getAdapter(IJavaElement.class); if (je == null) { setSelection(null, false); return; } adjustInputAndSetSelection(je); } else if (ei instanceof IClassFileEditorInput) { IClassFile cf= ((IClassFileEditorInput)ei).getClassFile(); adjustInputAndSetSelection(cf); } return; } } /** * Returns the element contained in the EditorInput */ Object getElementOfInput(IEditorInput input) { if (input instanceof IClassFileEditorInput) return ((IClassFileEditorInput)input).getClassFile(); else if (input instanceof IFileEditorInput) return ((IFileEditorInput)input).getFile(); else if (input instanceof JarEntryEditorInput) return ((JarEntryEditorInput)input).getStorage(); return null;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
} private IResource getResourceFor(Object element) { if (element instanceof IJavaElement) { if (element instanceof IWorkingCopy) { IWorkingCopy wc= (IWorkingCopy)element; IJavaElement original= wc.getOriginalElement(); if (original != null) element= original; } try { element= ((IJavaElement)element).getUnderlyingResource(); } catch (JavaModelException e) { return null; } } if (!(element instanceof IResource) || ((IResource)element).isPhantom()) { return null; } return (IResource)element; } private void setSelection(ISelection selection, boolean reveal) { if (selection != null && selection.equals(fViewer.getSelection())) return; fProcessSelectionEvents= false; fViewer.setSelection(selection, reveal); fProcessSelectionEvents= true; } /** * Tries to find the given element in a workingcopy.
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
*/ protected static IJavaElement getWorkingCopy(IJavaElement input) { try { if (input instanceof ICompilationUnit) return EditorUtility.getWorkingCopy((ICompilationUnit)input); else return EditorUtility.getWorkingCopy(input, false); } catch (JavaModelException ex) { } return null; } /** * Returns the original element from which the specified working copy * element was created from. This is a handle only method, the * returned element may or may not exist. * * @param workingCopy the element for which to get the original * @return the original Java element or <code>null</code> if this is not a working copy element */ protected static IJavaElement getOriginal(IJavaElement workingCopy) { ICompilationUnit cu= getCompilationUnit(workingCopy); if (cu != null) return ((IWorkingCopy)cu).getOriginal(workingCopy); return null; } /** * Returns the compilation unit for the given java element. * * @param element the java element whose compilation unit is searched for * @return the compilation unit of the given java element
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
*/ protected static ICompilationUnit getCompilationUnit(IJavaElement element) { if (element == null) return null; if (element instanceof IMember) return ((IMember) element).getCompilationUnit(); int type= element.getElementType(); if (IJavaElement.COMPILATION_UNIT == type) return (ICompilationUnit) element; if (IJavaElement.CLASS_FILE == type) return null; return getCompilationUnit(element.getParent()); } /** * Converts the given Java element to one which is suitable for this * view. It takes into account wether the view shows working copies or not. * * @param element the Java element to be converted * @return an element suitable for this view */ protected IJavaElement getSuitableJavaElement(Object obj) { if (!(obj instanceof IJavaElement)) return null; IJavaElement element= (IJavaElement)obj; if (fTypeComparator.compare(element, IJavaElement.COMPILATION_UNIT) > 0) return element; if (element.getElementType() == IJavaElement.CLASS_FILE)
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
return element; if (((BaseJavaElementContentProvider)getViewer().getContentProvider()).getProvideWorkingCopy()) { IJavaElement wc= getWorkingCopy(element); if (wc != null) element= wc; return element; } else { ICompilationUnit cu= getCompilationUnit(element); if (cu != null && ((IWorkingCopy)cu).isWorkingCopy()) return ((IWorkingCopy)cu).getOriginal(element); else return element; } } /** * @see JavaEditor#getElementAt(int) */ protected IJavaElement getElementForInputAt(IEditorInput input, int offset) { if (input instanceof IClassFileEditorInput) { try { return ((IClassFileEditorInput)input).getClassFile().getElementAt(offset); } catch (JavaModelException ex) { return null; } } IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); ICompilationUnit unit= manager.getWorkingCopy(input); if (unit != null) try {
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
unit.reconcile(); return unit.getElementAt(offset); } catch (JavaModelException ex) { } return null; } protected IType getTypeForCU(ICompilationUnit cu) { cu= (ICompilationUnit)getSuitableJavaElement(cu); IType primaryType= cu.findPrimaryType(); if (primaryType != null) return primaryType; try { IType[] types= cu.getTypes(); if (types.length > 0) return types[0]; else return null; } catch (JavaModelException ex) { return null; } } void setProcessSelectionEvents(boolean state) { fProcessSelectionEvents= state; } }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
/******************************************************************************* * Copyright (c) 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html * * Contributors: * IBM Corporation - initial API and implementation ******************************************************************************/ package org.eclipse.jdt.internal.ui.packageview; import org.eclipse.core.resources.IContainer; import org.eclipse.swt.SWT; import org.eclipse.swt.events.KeyEvent;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IToolBarManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IMemento; import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkingSet; import org.eclipse.ui.actions.ActionGroup; import org.eclipse.ui.actions.NewWizardMenu; import org.eclipse.ui.actions.OpenInNewWindowAction; import org.eclipse.ui.actions.RefreshAction; import org.eclipse.ui.views.framelist.BackAction; import org.eclipse.ui.views.framelist.ForwardAction; import org.eclipse.ui.views.framelist.FrameList; import org.eclipse.ui.views.framelist.GoIntoAction; import org.eclipse.ui.views.framelist.UpAction; import org.eclipse.jdt.core.IClassFile; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IOpenable;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.IContextMenuConstants; import org.eclipse.jdt.ui.JavaUI; import org.eclipse.jdt.ui.actions.BuildActionGroup; import org.eclipse.jdt.ui.actions.CCPActionGroup; import org.eclipse.jdt.ui.actions.GenerateActionGroup; import org.eclipse.jdt.ui.actions.ImportActionGroup; import org.eclipse.jdt.ui.actions.JavaSearchActionGroup; import org.eclipse.jdt.ui.actions.JdtActionConstants; import org.eclipse.jdt.ui.actions.MemberFilterActionGroup; import org.eclipse.jdt.ui.actions.NavigateActionGroup; import org.eclipse.jdt.ui.actions.OpenAction; import org.eclipse.jdt.ui.actions.RefactorActionGroup; import org.eclipse.jdt.ui.actions.ShowActionGroup; import org.eclipse.jdt.internal.ui.actions.CompositeActionGroup; import org.eclipse.jdt.internal.ui.preferences.JavaBasePreferencePage; import org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup; public class PackageExplorerActionGroup extends CompositeActionGroup { private PackageExplorerPart fPart; private GoIntoAction fZoomInAction; private BackAction fBackAction; private ForwardAction fForwardAction; private UpAction fUpAction; private GotoTypeAction fGotoTypeAction; private GotoPackageAction fGotoPackageAction; private NavigateActionGroup fNavigateActionGroup; private BuildActionGroup fBuildActionGroup; private CCPActionGroup fCCPActionGroup; private WorkingSetFilterActionGroup fWorkingSetFilterActionGroup;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
private MemberFilterActionGroup fMemberFilterActionGroup; private ShowLibrariesAction fShowLibrariesAction; private FilterSelectionAction fFilterAction; public PackageExplorerActionGroup(PackageExplorerPart part) { super(); fPart= part; Shell shell= fPart.getSite().getShell(); setGroups(new ActionGroup[] { fNavigateActionGroup= new NavigateActionGroup(fPart), new ShowActionGroup(fPart), fCCPActionGroup= new CCPActionGroup(fPart), new RefactorActionGroup(fPart), new ImportActionGroup(fPart), new GenerateActionGroup(fPart), fBuildActionGroup= new BuildActionGroup(fPart), new JavaSearchActionGroup(fPart, fPart.getViewer()), fWorkingSetFilterActionGroup= new WorkingSetFilterActionGroup(part.getViewer(), JavaUI.ID_PACKAGES, shell, createTitleUpdater())}); PackagesFrameSource frameSource= new PackagesFrameSource(fPart); FrameList frameList= new FrameList(frameSource); frameSource.connectTo(frameList); fZoomInAction= new GoIntoAction(frameList); fBackAction= new BackAction(frameList); fForwardAction= new ForwardAction(frameList); fUpAction= new UpAction(frameList); fGotoTypeAction= new GotoTypeAction(fPart); fGotoPackageAction= new GotoPackageAction(fPart);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
fMemberFilterActionGroup= new MemberFilterActionGroup(fPart.getViewer(), "PackageView"); fShowLibrariesAction = new ShowLibrariesAction(fPart, PackagesMessages.getString("PackageExplorer.referencedLibs")); fFilterAction = new FilterSelectionAction(shell, fPart, PackagesMessages.getString("PackageExplorer.filters")); } void restoreState(IMemento memento) { fMemberFilterActionGroup.restoreState(memento); fWorkingSetFilterActionGroup.restoreState(memento); } void saveState(IMemento memento) { fMemberFilterActionGroup.saveState(memento); fWorkingSetFilterActionGroup.saveState(memento); } public void fillActionBars(IActionBars actionBars) { super.fillActionBars(actionBars); setGlobalActionHandlers(actionBars); fillToolBar(actionBars.getToolBarManager()); fillViewMenu(actionBars.getMenuManager()); } private void setGlobalActionHandlers(IActionBars actionBars) { actionBars.setGlobalActionHandler(IWorkbenchActionConstants.GO_INTO, fZoomInAction); actionBars.setGlobalActionHandler(IWorkbenchActionConstants.BACK, fBackAction); actionBars.setGlobalActionHandler(IWorkbenchActionConstants.FORWARD, fForwardAction); actionBars.setGlobalActionHandler(IWorkbenchActionConstants.UP, fUpAction); actionBars.setGlobalActionHandler(JdtActionConstants.GOTO_TYPE, fGotoTypeAction);
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
actionBars.setGlobalActionHandler(JdtActionConstants.GOTO_PACKAGE, fGotoPackageAction); } void fillToolBar(IToolBarManager toolBar) { toolBar.removeAll(); toolBar.add(fBackAction); toolBar.add(fForwardAction); toolBar.add(fUpAction); if (JavaBasePreferencePage.showCompilationUnitChildren()) { toolBar.add(new Separator()); fMemberFilterActionGroup.contributeToToolBar(toolBar); } } void fillViewMenu(IMenuManager menu) { menu.add(fFilterAction); menu.add(fShowLibrariesAction); menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS+"-end")); } void handleSelectionChanged(SelectionChangedEvent event) { fZoomInAction.update(); } public void fillContextMenu(IMenuManager menu) { IStructuredSelection selection= (IStructuredSelection)getContext().getSelection(); int size= selection.size(); Object element= selection.getFirstElement();
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
IJavaElement jElement= element instanceof IJavaElement ? (IJavaElement)element : null; if (size == 1 && isNewTarget(jElement)) { IMenuManager newMenu= new MenuManager(PackagesMessages.getString("PackageExplorer.new")); menu.appendToGroup(IContextMenuConstants.GROUP_NEW, newMenu); new NewWizardMenu(newMenu, fPart.getSite().getWorkbenchWindow(), false); } addGotoMenu(menu, element, size); addOpenNewWindowAction(menu, element); super.fillContextMenu(menu); } private void addGotoMenu(IMenuManager menu, Object element, int size) { if (size == 1 && fPart.getViewer().isExpandable(element) && isGoIntoTarget(element)) menu.appendToGroup(IContextMenuConstants.GROUP_GOTO, fZoomInAction); /* MenuManager gotoMenu= new MenuManager(PackagesMessages.getString("PackageExplorer.gotoTitle")); menu.appendToGroup(IContextMenuConstants.GROUP_GOTO, gotoMenu); gotoMenu.add(fBackAction); gotoMenu.add(fForwardAction); gotoMenu.add(fUpAction); gotoMenu.add(fGotoTypeAction); gotoMenu.add(fGotoPackageAction); */ }
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
private boolean isNewTarget(IJavaElement element) { if (element == null) return false; int type= element.getElementType(); return type == IJavaElement.JAVA_PROJECT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT || type == IJavaElement.PACKAGE_FRAGMENT; } private boolean isGoIntoTarget(Object element) { if (element == null) return false; if (element instanceof IJavaElement) { int type= ((IJavaElement)element).getElementType(); return type == IJavaElement.JAVA_PROJECT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT || type == IJavaElement.PACKAGE_FRAGMENT; } return false; } private void addOpenNewWindowAction(IMenuManager menu, Object element) { if (element instanceof IJavaElement) { try { element= ((IJavaElement)element).getCorrespondingResource(); } catch(JavaModelException e) { } } if (!(element instanceof IContainer)) return;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
menu.appendToGroup( IContextMenuConstants.GROUP_OPEN, new OpenInNewWindowAction(fPart.getSite().getWorkbenchWindow(), (IContainer)element)); } void handleDoubleClick(DoubleClickEvent event) { OpenAction openAction= fNavigateActionGroup.getOpenAction(); if (openAction != null && openAction.isEnabled()) { openAction.run(); return; } TreeViewer viewer= fPart.getViewer(); Object element= ((IStructuredSelection)event.getSelection()).getFirstElement(); if (viewer.isExpandable(element)) { if (JavaBasePreferencePage.doubleClickGoesInto()) { if (element instanceof IOpenable && !(element instanceof ICompilationUnit) && !(element instanceof IClassFile)) { fZoomInAction.run(); } } else { viewer.setExpandedState(element, !viewer.getExpandedState(element)); } } } void handleKeyEvent(KeyEvent event) { if (event.stateMask != 0) return;
14,898
Bug 14898 working set class cast exception
20020425 with plugin export .5 on Linux-Motif and W2k: 1) Edit an existing working set from package view. 2) Select and Unselect a project -> Finish button is enabled now. 3) Press Finish -> see result below ---8<--- java.lang.ClassCastException: java.lang.String at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyCha nge(PackageExplorerActionGroup.java:299) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetFilterActionGroup$2.propertyCh ange(WorkingSetFilterActionGroup.java:223) at org.eclipse.ui.internal.WorkingSet.firePropertyChange (WorkingSet.java:74) at org.eclipse.ui.internal.WorkingSet.setName(WorkingSet.java:214) at org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage.finish (ResourceWorkingSetPage.java:189) at org.eclipse.ui.internal.dialogs.WorkingSetEditWizard.performFinish (WorkingSetEditWizard.java:78) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.editSelectedWorkingSet (WorkingSetSelectionDialog.java:246) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.access$1 (WorkingSetSelectionDialog.java:214) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog$2.widgetSelected (WorkingSetSelectionDialog.java:110) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.dialogs.WorkingSetSelectionDialog.open (WorkingSetSelectionDialog.java:297) at org.eclipse.jdt.internal.ui.workingsets.SelectWorkingSetAction.run (SelectWorkingSetAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:842) at org.eclipse.ui.internal.Workbench.run(Workbench.java:825) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:643) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:160) at org.eclipse.core.launcher.Main.run(Main.java:548) at org.eclipse.core.launcher.Main.main(Main.java:403)
resolved fixed
18ba29a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T14:37:43Z
2002-04-30T12:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java
if (event.keyCode == SWT.F5) { RefreshAction action= fBuildActionGroup.getRefreshAction(); if (action.isEnabled()) action.run(); } else if (event.character == SWT.DEL) { IAction delete= fCCPActionGroup.getDeleteAction(); if (delete.isEnabled()) delete.run(); } } private IPropertyChangeListener createTitleUpdater() { return new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { String property= event.getProperty(); if (IWorkbenchPage.CHANGE_WORKING_SET_REPLACE.equals(property) || IWorkingSet.CHANGE_WORKING_SET_NAME_CHANGE.equals(property)) { Object workingSet= (IWorkingSet)event.getNewValue(); String workingSetName= null; if (workingSet instanceof IWorkingSet) workingSetName= ((IWorkingSet)workingSet).getName(); fPart.setWorkingSetName(workingSetName); fPart.updateTitle(); } } }; } }
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
package org.eclipse.jdt.internal.ui.text.java; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.DefaultAutoIndentStrategy; import org.eclipse.jface.text.DocumentCommand; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.ITypedRegion; import org.eclipse.jdt.internal.ui.preferences.CodeFormatterPreferencePage; import org.eclipse.jdt.internal.ui.text.JavaPartitionScanner; /** * Auto indent strategy sensitive to brackets. */ public class JavaAutoIndentStrategy extends DefaultAutoIndentStrategy {
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
public JavaAutoIndentStrategy() { } protected int findMatchingOpenBracket(IDocument d, int line, int end, int closingBracketIncrease) throws BadLocationException { int start= d.getLineOffset(line); int brackcount= getBracketCount(d, start, end, false) - closingBracketIncrease; while (brackcount < 0) { line--; if (line < 0) { return -1; } start= d.getLineOffset(line); end= start + d.getLineLength(line) - 1; brackcount += getBracketCount(d, start, end, false); } return line; } private int getBracketCount(IDocument d, int start, int end, boolean ignoreCloseBrackets) throws BadLocationException { int bracketcount= 0;
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
while (start < end) { char curr= d.getChar(start); start++; switch (curr) { case '/' : if (start < end) { char next= d.getChar(start); if (next == '*') { start= getCommentEnd(d, start + 1, end); } else if (next == '/') { start= end; } } break; case '*' : if (start < end) { char next= d.getChar(start); if (next == '/') { bracketcount= 0; start++; } } break; case '{' : bracketcount++; ignoreCloseBrackets= false; break;
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
case '}' : if (!ignoreCloseBrackets) { bracketcount--; } break; case '"' : case '\'' : start= getStringEnd(d, start, end, curr); break; default : } } return bracketcount; } private int getCommentEnd(IDocument d, int pos, int end) throws BadLocationException { while (pos < end) { char curr= d.getChar(pos); pos++; if (curr == '*') { if (pos < end && d.getChar(pos) == '/') { return pos + 1; } } } return end; } protected String getIndentOfLine(IDocument d, int line) throws BadLocationException { if (line > -1) { int start= d.getLineOffset(line);
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
int end= start + d.getLineLength(line) - 1; int whiteend= findEndOfWhiteSpace(d, start, end); return d.get(start, whiteend - start); } else { return ""; } } private int getStringEnd(IDocument d, int pos, int end, char ch) throws BadLocationException { while (pos < end) { char curr= d.getChar(pos); pos++; if (curr == '\\') { pos++; } else if (curr == ch) { return pos; } } return end; } protected void smartInsertAfterBracket(IDocument d, DocumentCommand c) { if (c.offset == -1 || d.getLength() == 0) return; try { int p= (c.offset == d.getLength() ? c.offset - 1 : c.offset); int line= d.getLineOfOffset(p); int start= d.getLineOffset(line); int whiteend= findEndOfWhiteSpace(d, start, c.offset); if (whiteend == c.offset) {
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
int indLine= findMatchingOpenBracket(d, line, c.offset, 1); if (indLine != -1 && indLine != line) { StringBuffer replaceText= new StringBuffer(getIndentOfLine(d, indLine)); replaceText.append(d.get(whiteend, c.offset - whiteend)); replaceText.append(c.text); c.length += c.offset - start; c.offset= start; c.text= replaceText.toString(); } } } catch (BadLocationException excp) { System.out.println(JavaTextMessages.getString("AutoIndent.error.bad_location.message1")); } } protected void smartIndentAfterNewLine(IDocument d, DocumentCommand c) { int docLength= d.getLength(); if (c.offset == -1 || docLength == 0) return; try { int p= (c.offset == docLength ? c.offset - 1 : c.offset); int line= d.getLineOfOffset(p); StringBuffer buf= new StringBuffer(c.text); if (c.offset < docLength && d.getChar(c.offset) == '}') { int indLine= findMatchingOpenBracket(d, line, c.offset, 0); if (indLine == -1) { indLine= line;
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
} buf.append(getIndentOfLine(d, indLine)); } else { int start= d.getLineOffset(line); IDocumentPartitioner partitioner= d.getDocumentPartitioner(); if (partitioner != null) { ITypedRegion region= partitioner.getPartition(start); if (JavaPartitionScanner.JAVA_DOC.equals(region.getType())) start= d.getLineInformationOfOffset(region.getOffset()).getOffset(); } int whiteend= findEndOfWhiteSpace(d, start, c.offset); buf.append(d.get(start, whiteend - start)); if (getBracketCount(d, start, c.offset, true) > 0) { buf.append(getOneIndentLevel()); } } c.text= buf.toString(); } catch (BadLocationException excp) { System.out.println(JavaTextMessages.getString("AutoIndent.error.bad_location.message2")); } } private String getOneIndentLevel() { if (CodeFormatterPreferencePage.useSpaces()) { StringBuffer buf= new StringBuffer(); for (int i= CodeFormatterPreferencePage.getTabSize() - 1; i >= 0; i--) { buf.append(' '); } return buf.toString();
14,409
Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
resolved fixed
67596b4
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-30T17:28:30Z
2002-04-23T13:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
} return String.valueOf('\t'); } /** * Returns whether the text ends with one of the given search strings. */ private boolean endsWithDelimiter(IDocument d, String txt) { String[] delimiters= d.getLegalLineDelimiters(); for (int i= 0; i < delimiters.length; i++) { if (txt.endsWith(delimiters[i])) return true; } return false; } /** * @see IAutoIndentStrategy#customizeDocumentCommand */ public void customizeDocumentCommand(IDocument d, DocumentCommand c) { if (c.length == 0 && c.text != null && endsWithDelimiter(d, c.text)) smartIndentAfterNewLine(d, c); else if ("}".equals(c.text)) { smartInsertAfterBracket(d, c); } } }
14,975
Bug 14975 Resource exception while running plug-in import
Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
resolved fixed
de1d940
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-01T10:02:57Z
2002-04-30T23:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java
package org.eclipse.jdt.internal.ui.viewsupport; import java.util.Iterator; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.Position; import org.eclipse.jface.text.source.Annotation; import org.eclipse.jface.text.source.IAnnotationModel; import org.eclipse.ui.part.FileEditorInput; import org.eclipse.ui.texteditor.MarkerAnnotation; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.core.ISourceReference; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; public class ErrorTickAdornmentProvider implements IAdornmentProvider { private static final int ERRORTICK_WARNING= JavaElementImageProvider.OVERLAY_WARNING; private static final int ERRORTICK_ERROR= JavaElementImageProvider.OVERLAY_ERROR; /* * @see IAdornmentProvider#computeAdornmentFlags(Object, int) */ public int computeAdornmentFlags(Object obj) { try { if (obj instanceof IJavaElement) { IJavaElement element= (IJavaElement) obj; if (!element.exists()) {
14,975
Bug 14975 Resource exception while running plug-in import
Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
resolved fixed
de1d940
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-01T10:02:57Z
2002-04-30T23:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java
return 0; } int type= element.getElementType(); switch (type) { case IJavaElement.JAVA_PROJECT: case IJavaElement.PACKAGE_FRAGMENT_ROOT: return getErrorTicksFromMarkers(element.getCorrespondingResource(), IResource.DEPTH_INFINITE, null); case IJavaElement.PACKAGE_FRAGMENT: case IJavaElement.CLASS_FILE: return getErrorTicksFromMarkers(element.getCorrespondingResource(), IResource.DEPTH_ONE, null); case IJavaElement.COMPILATION_UNIT: case IJavaElement.PACKAGE_DECLARATION: case IJavaElement.IMPORT_DECLARATION: case IJavaElement.IMPORT_CONTAINER: case IJavaElement.TYPE: case IJavaElement.INITIALIZER: case IJavaElement.METHOD: case IJavaElement.FIELD: ICompilationUnit cu= (ICompilationUnit) element.getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null && cu.exists()) { ISourceRange range= ((ISourceReference)element).getSourceRange(); if (cu.isWorkingCopy()) { return getErrorTicksFromWorkingCopy((ICompilationUnit) cu.getOriginalElement(), range); } return getErrorTicksFromMarkers(cu.getCorrespondingResource(), IResource.DEPTH_ONE, range); } default:
14,975
Bug 14975 Resource exception while running plug-in import
Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
resolved fixed
de1d940
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-01T10:02:57Z
2002-04-30T23:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java
} } else if (obj instanceof IResource) { return getErrorTicksFromMarkers((IResource) obj, IResource.DEPTH_INFINITE, null); } } catch (CoreException e) { JavaPlugin.log(e); } return 0; } /* * @see IAdornmentProvider#dispose() */ public void dispose() { } private int getErrorTicksFromMarkers(IResource res, int depth, ISourceRange range) throws CoreException { if (res == null) { return 0; } int info= 0; IMarker[] markers= res.findMarkers(IMarker.PROBLEM, true, depth); if (markers != null) { for (int i= 0; i < markers.length && (info != ERRORTICK_ERROR); i++) { IMarker curr= markers[i]; if (range == null || isMarkerInRange(curr, range)) { int priority= curr.getAttribute(IMarker.SEVERITY, -1); if (priority == IMarker.SEVERITY_WARNING) { info= ERRORTICK_WARNING;
14,975
Bug 14975 Resource exception while running plug-in import
Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
resolved fixed
de1d940
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-01T10:02:57Z
2002-04-30T23:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java
} else if (priority == IMarker.SEVERITY_ERROR) { info= ERRORTICK_ERROR; } } } } return info; } private boolean isMarkerInRange(IMarker marker, ISourceRange range) throws CoreException { if (marker.isSubtypeOf(IMarker.TEXT)) { int pos= marker.getAttribute(IMarker.CHAR_START, -1); int offset= range.getOffset(); return (offset <= pos && offset + range.getLength() > pos); } return false; } private int getErrorTicksFromWorkingCopy(ICompilationUnit original, ISourceRange range) throws CoreException { int info= 0; if (!original.exists()) { return 0; } FileEditorInput editorInput= new FileEditorInput((IFile) original.getCorrespondingResource()); IAnnotationModel model= JavaPlugin.getDefault().getCompilationUnitDocumentProvider().getAnnotationModel(editorInput); if (model != null) { Iterator iter= model.getAnnotationIterator(); while ((info != ERRORTICK_ERROR) && iter.hasNext()) {
14,975
Bug 14975 Resource exception while running plug-in import
Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
resolved fixed
de1d940
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-05-01T10:02:57Z
2002-04-30T23:40:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java
Annotation curr= (Annotation) iter.next(); IMarker marker= isAnnotationInRange(model, curr, range); if (marker != null) { int priority= marker.getAttribute(IMarker.SEVERITY, -1); if (priority == IMarker.SEVERITY_WARNING) { info= ERRORTICK_WARNING; } else if (priority == IMarker.SEVERITY_ERROR) { info= ERRORTICK_ERROR; } } } } return info; } private IMarker isAnnotationInRange(IAnnotationModel model, Annotation annot, ISourceRange range) throws CoreException { if (annot instanceof MarkerAnnotation) { IMarker marker= ((MarkerAnnotation)annot).getMarker(); if (marker.exists() && marker.isSubtypeOf(IMarker.PROBLEM)) { Position pos= model.getPosition(annot); if (pos.overlapsWith(range.getOffset(), range.getLength())) { return marker; } } } return null; } }