Bug 76714 [Dialogs] ContainerSelectDialog: Double clicking node in tree causes AssertionException
Eclipse 20041013 Mac os x 10.3.5 If you double click a node in the tree shown in a ContainerSelectionDialog so that you collapse the tree before its finished expanding you get this exception: !ENTRY org.eclipse.core.runtime 4 2 Oct 20, 2004 22:17:03.943 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". !STACK 0 org.eclipse.jface.util.Assert$AssertionFailedException: null argument; at org.eclipse.jface.util.Assert.isNotNull(Assert.java:143) at org.eclipse.jface.util.Assert.isNotNull(Assert.java:119) at org.eclipse.jface.viewers.AbstractTreeViewer.getExpandedState(AbstractTreeViewer.java:617) at org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup$2.doubleClick(ContainerSelectionGroup.java:250) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:593) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:591) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:813) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:920) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:219) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:216) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:275) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1229) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1086) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2893) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2561) at org.eclipse.jface.window.Window.runEventLoop(Window.java:706) at org.eclipse.jface.window.Window.open(Window.java:684) at com.teaminabox.eclipse.wiki.export.WikiExportWizardPage.handleBrowseFolders(WikiExportWizardPage.java:178) at com.teaminabox.eclipse.wiki.export.WikiExportWizardPage.access$1(WikiExportWizardPage.java:176) at com.teaminabox.eclipse.wiki.export.WikiExportWizardPage$2.widgetSelected(WikiExportWizardPage.java:114) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1229) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1086) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2893) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2561) at org.eclipse.jface.window.Window.runEventLoop(Window.java:706) at org.eclipse.jface.window.Window.open(Window.java:684) at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:166) at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:946) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:896) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:810) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1229) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1086) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2893) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2561) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1443) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1414) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:271) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
}
    /**
     * Creates the contents of the composite.
     * 
     * @param heightHint height hint for the drill down composite
     */
    public void createContents(String message, int heightHint) {
        GridLayout layout = new GridLayout();
        layout.marginWidth = 0;
        setLayout(layout);
        setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        Label label = new Label(this, SWT.WRAP);
        label.setText(message);
        label.setFont(this.getFont());
        if (allowNewContainerName) {
            containerNameField = new Text(this, SWT.SINGLE | SWT.BORDER);
            containerNameField.setLayoutData(new GridData(
                    GridData.FILL_HORIZONTAL));
            containerNameField.addListener(SWT.Modify, listener);
            containerNameField.setFont(this.getFont());
        } else {
            
            new Label(this, SWT.NONE);
        }
        createTreeViewer(heightHint);
        Dialog.applyDialogFont(this);
    }
    /**
     * Returns a new drill down viewer for this dialog.
     *