Project: Eclipse_Platform_UI
Bug 56816 [Workbench] Error when dragging properties tab elsewhere on the tool
Reported: 2004-03-30 15:24:05 | Status: resolved fixed

Steps to reproduce: Start the workbench Create a New Simple Project called Test Do File/New/Other, click on show all wizards Expand Example EMF Model Creation Wizards Select Ecore Model Click on Next Select Test Click on Next In the Model Object field, select EPackage Click on Finish Do Window/Show View/Properties (Note that the properties pane is all empty) Drag the properties pane on top of the tasks pane You get: "An error as occurred. See error log for more details" Note that this error seems to cause other issues. Did get errors on closing the tool or files after this one happens. Here is the log content: !SESSION Mar 30, 2004 14:00:19.594 --------------------------------------------- java.fullversion=J2RE 1.4.2 IBM build cxia32dev-20040322 (JIT enabled: jitc) BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US !ENTRY org.eclipse.core.runtime 4 2 Mar 30, 2004 14:00:19.594 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.presentations.BasicStackPresentation.initTab (BasicStackPresentation.java:610) at org.eclipse.ui.internal.presentations.BasicStackPresentation.childPropertyChange d(BasicStackPresentation.java:376) at org.eclipse.ui.internal.presentations.BasicStackPresentation$7.propertyChanged (BasicStackPresentation.java:190) at org.eclipse.ui.internal.PresentableViewPart.firePropertyChange (PresentableViewPart.java:54) at org.eclipse.ui.internal.ViewPane.toolBarResized(ViewPane.java:278) at org.eclipse.ui.internal.ViewPane.access$0(ViewPane.java:269) at org.eclipse.ui.internal.ViewPane$PaneToolBarManager.relayout (ViewPane.java:92) at org.eclipse.jface.action.ToolBarManager.update (ToolBarManager.java:289) at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:566) at org.eclipse.ui.internal.ViewActionBars.updateActionBars (ViewActionBars.java:55) at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:719) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:569) at org.eclipse.ui.views.properties.PropertySheet.partActivated (PropertySheet.java:162) at org.eclipse.ui.internal.PartListenerList$1.run (PartListenerList.java:49) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:610) at org.eclipse.core.runtime.Platform.run(Platform.java:521) at org.eclipse.ui.internal.PartListenerList.firePartActivated (PartListenerList.java:47) at org.eclipse.ui.internal.WorkbenchPage.firePartActivated (WorkbenchPage.java:1296) at org.eclipse.ui.internal.WorkbenchPage.setActivePart (WorkbenchPage.java:2595) at org.eclipse.ui.internal.WorkbenchPage.requestActivation (WorkbenchPage.java:2290) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:290) at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:317) at org.eclipse.ui.internal.PartTabFolder.presentationSelectionChanged (PartTabFolder.java:638) at org.eclipse.ui.internal.PartTabFolder.access$3 (PartTabFolder.java:628) at org.eclipse.ui.internal.PartTabFolder$1.selectPart (PartTabFolder.java:140) at org.eclipse.ui.internal.presentations.BasicStackPresentation$4.handleEvent (BasicStackPresentation.java:159) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:948) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:818) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2904) at org.eclipse.swt.custom.CTabFolder.destroyItem(CTabFolder.java:627) at org.eclipse.swt.custom.CTabItem.dispose(CTabItem.java:148) at org.eclipse.ui.internal.presentations.BasicStackPresentation.removePart (BasicStackPresentation.java:637) at org.eclipse.ui.internal.PartTabFolder.remove(PartTabFolder.java:655) at org.eclipse.ui.internal.PerspectivePresentation.derefPart (PerspectivePresentation.java:486) at org.eclipse.ui.internal.RootLayoutContainer.derefPart (RootLayoutContainer.java:253) at org.eclipse.ui.internal.PartSashContainer.stackPane (PartSashContainer.java:732) at org.eclipse.ui.internal.PartSashContainer.stack (PartSashContainer.java:710) at org.eclipse.ui.internal.PartSashContainer.dropObject (PartSashContainer.java:668) at org.eclipse.ui.internal.RootLayoutContainer.dropObject (RootLayoutContainer.java:191) at org.eclipse.ui.internal.PartSashContainer$3.drop (PartSashContainer.java:627) at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:109) at org.eclipse.ui.internal.PartTabFolder$1.dragStart (PartTabFolder.java:92) at org.eclipse.ui.internal.presentations.BasicStackPresentation$10.handleEvent (BasicStackPresentation.java:274) at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove (PresentationUtil.java:86) at org.eclipse.ui.presentations.PresentationUtil.access$1 (PresentationUtil.java:79) at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent (PresentationUtil.java:58) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:257) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:277) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:239) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:59) at java.lang.reflect.Method.invoke(Method.java:389) at org.eclipse.core.launcher.Main.basicRun(Main.java:267) at org.eclipse.core.launcher.Main.run(Main.java:692) at org.eclipse.core.launcher.Main.main(Main.java:676) !ENTRY org.eclipse.core.runtime 4 2 Mar 30, 2004 14:00:21.757 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.presentations.BasicStackPresentation.initTab (BasicStackPresentation.java:610) at org.eclipse.ui.internal.presentations.BasicStackPresentation.childPropertyChange d(BasicStackPresentation.java:376) at org.eclipse.ui.internal.presentations.BasicStackPresentation$7.propertyChanged (BasicStackPresentation.java:190) at org.eclipse.ui.internal.PresentableViewPart.firePropertyChange (PresentableViewPart.java:54) at org.eclipse.ui.internal.ViewPane.toolBarResized(ViewPane.java:278) at org.eclipse.ui.internal.ViewPane.access$0(ViewPane.java:269) at org.eclipse.ui.internal.ViewPane$PaneToolBarManager.relayout (ViewPane.java:92) at org.eclipse.jface.action.ToolBarManager.update (ToolBarManager.java:289) at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:566) at org.eclipse.ui.internal.ViewActionBars.updateActionBars (ViewActionBars.java:55) at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:719) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:567) at org.eclipse.ui.views.properties.PropertySheet.partActivated (PropertySheet.java:162) at org.eclipse.ui.internal.PartListenerList$1.run (PartListenerList.java:49) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:610) at org.eclipse.core.runtime.Platform.run(Platform.java:521) at org.eclipse.ui.internal.PartListenerList.firePartActivated (PartListenerList.java:47) at org.eclipse.ui.internal.WorkbenchPage.firePartActivated (WorkbenchPage.java:1296) at org.eclipse.ui.internal.WorkbenchPage.setActivePart (WorkbenchPage.java:2595) at org.eclipse.ui.internal.WorkbenchPage.requestActivation (WorkbenchPage.java:2290) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:290) at org.eclipse.ui.internal.EditorPane.requestActivation (EditorPane.java:167) at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:270) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:859) at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2142) at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method) at org.eclipse.swt.widgets.Display.eventProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method) at org.eclipse.swt.widgets.Display.update(Display.java(Inlined Compiled Code)) at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled Code)) at org.eclipse.jface.window.Window.open(Window.java:650) at org.eclipse.jface.dialogs.MessageDialog.openError (MessageDialog.java:285) at org.eclipse.jface.util.SafeRunnable.handleException (SafeRunnable.java:50) at org.eclipse.ui.internal.PartListenerList$1.handleException (PartListenerList.java:52) at org.eclipse.core.internal.runtime.InternalPlatform.handleException (InternalPlatform.java:345) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:612) at org.eclipse.core.runtime.Platform.run(Platform.java:521) at org.eclipse.ui.internal.PartListenerList.firePartActivated (PartListenerList.java:47) at org.eclipse.ui.internal.WorkbenchPage.firePartActivated (WorkbenchPage.java:1296) at org.eclipse.ui.internal.WorkbenchPage.setActivePart (WorkbenchPage.java:2595) at org.eclipse.ui.internal.WorkbenchPage.requestActivation (WorkbenchPage.java:2290) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:290) at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:317) at org.eclipse.ui.internal.PartTabFolder.presentationSelectionChanged (PartTabFolder.java:638) at org.eclipse.ui.internal.PartTabFolder.access$3 (PartTabFolder.java:628) at org.eclipse.ui.internal.PartTabFolder$1.selectPart (PartTabFolder.java:140) at org.eclipse.ui.internal.presentations.BasicStackPresentation$4.handleEvent (BasicStackPresentation.java:159) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:948) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:818) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2904) at org.eclipse.swt.custom.CTabFolder.destroyItem(CTabFolder.java:627) at org.eclipse.swt.custom.CTabItem.dispose(CTabItem.java:148) at org.eclipse.ui.internal.presentations.BasicStackPresentation.removePart (BasicStackPresentation.java:637) at org.eclipse.ui.internal.PartTabFolder.remove(PartTabFolder.java:655) at org.eclipse.ui.internal.PerspectivePresentation.derefPart (PerspectivePresentation.java:486) at org.eclipse.ui.internal.RootLayoutContainer.derefPart (RootLayoutContainer.java:253) at org.eclipse.ui.internal.PartSashContainer.stackPane (PartSashContainer.java:732) at org.eclipse.ui.internal.PartSashContainer.stack (PartSashContainer.java:710) at org.eclipse.ui.internal.PartSashContainer.dropObject (PartSashContainer.java:668) at org.eclipse.ui.internal.RootLayoutContainer.dropObject (RootLayoutContainer.java:191) at org.eclipse.ui.internal.PartSashContainer$3.drop (PartSashContainer.java:627) at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:109) at org.eclipse.ui.internal.PartTabFolder$1.dragStart (PartTabFolder.java:92) at org.eclipse.ui.internal.presentations.BasicStackPresentation$10.handleEvent (BasicStackPresentation.java:274) at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove (PresentationUtil.java:86) at org.eclipse.ui.presentations.PresentationUtil.access$1 (PresentationUtil.java:79) at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent (PresentationUtil.java:58) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:257) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:277) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:239) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:59) at java.lang.reflect.Method.invoke(Method.java:389) at org.eclipse.core.launcher.Main.basicRun(Main.java:267) at org.eclipse.core.launcher.Main.run(Main.java:692) at org.eclipse.core.launcher.Main.main(Main.java:676)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartStack.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/DefaultPartPresentation.java