| Summary: | Scrapbook imports | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | Debug | Assignee: | Darin Wright <darin.eclipse> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | darin.eclipse, dirk_baeumer, eclipse |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 M5 | ||
| Hardware: | All | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
| Bug Depends on: | 1546 | ||
| Bug Blocks: | |||
|
Description
Nick Edgar
PRODUCT VERSION: 122 JDK Requires AST evaluation *** Bug 8282 has been marked as a duplicate of this bug. *** Suggest to remove "run in package", and replace with "imports" "Run in" to be replaced with "Select imports" (a multi-selection dialog). Use dialog instead of writing in source code, as Snippet parser does not support import parsing. *** Bug 1526 has been marked as a duplicate of this bug. *** Released initial implementation to head. Implemented in JavaSnippetEditor, SelectImportsAction and SelectImportDialog. Please verify (Darin W) Got an NPE verifying - created a new snippet page in the root of JUnit project, pressed imports button: java.lang.NullPointerException at org.eclipse.jdt.internal.debug.ui.snippeteditor.SelectImportsDialog$ImportsConte ntProvider.populateFilters(SelectImportsDialog.java:120) at org.eclipse.jdt.internal.debug.ui.snippeteditor.SelectImportsDialog$ImportsConte ntProvider.<init>(SelectImportsDialog.java:115) at org.eclipse.jdt.internal.debug.ui.snippeteditor.SelectImportsDialog.createDialog Area(SelectImportsDialog.java:364) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:465) at org.eclipse.jface.window.Window.create(Window.java:263) at org.eclipse.jface.window.Window.open(Window.java:512) at org.eclipse.jdt.internal.debug.ui.snippeteditor.SelectImportsAction.chooseImport s(SelectImportsAction.java:36) at org.eclipse.jdt.internal.debug.ui.snippeteditor.SelectImportsAction.run (SelectImportsAction.java:30) at org.eclipse.jface.action.Action.runWithEvent(Action.java:473) 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:1420) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:722) at org.eclipse.ui.internal.Workbench.run(Workbench.java:705) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14) Re-opened for NPE Sorry about that...fixed in ImportsContentProvider. Please verify. Verify (Darin W again). Verified. |