Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348078 - classcast exception when dragging a detached window
Summary: classcast exception when dragging a detached window
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 11:11 EDT by Erki CLA
Modified: 2011-06-09 10:42 EDT (History)
4 users (show)

See Also:


Attachments
detached window before classcast exception is thrown. (56.48 KB, image/jpeg)
2011-06-02 11:12 EDT, Erki CLA
no flags Details
log of detached window exceptions (117.69 KB, text/plain)
2011-06-02 11:32 EDT, Erki CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erki CLA 2011-06-02 11:11:06 EDT
Build Identifier: I20110529-2200 

I get a ClassCastException with a detached window.

java.lang.ClassCastException: org.eclipse.e4.ui.model.application.ui.basic.impl.TrimmedWindowImpl cannot be cast to org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement



Reproducible: Always

Steps to Reproduce:
1. Detatch a java editor window
2. Drag the tab of the detached editor so that the green placement box is shown in the same detached window.
3. After letting go of the mouse button an error is displayed.
Comment 1 Erki CLA 2011-06-02 11:12:18 EDT
Created attachment 197236 [details]
detached window before classcast exception is thrown.

A picture of the detached window
Comment 2 Erki CLA 2011-06-02 11:32:51 EDT
Created attachment 197238 [details]
log of detached window exceptions
Comment 3 Erki CLA 2011-06-02 11:33:19 EDT
If I drag this detached window back to Eclipse main window, I get an AssertionFailedException. The window is placed in the main window, "corrupting" it (I can't close the new tab, because of a NullPointerException.)

Also why can't I maximize the detached window to my second monitor? 

I only have this empty blue bar on the top, as you can see in the previous screenshot.
The only way to close it seems to be to close all the tabs it contains.
Comment 4 Eric Moffatt CLA 2011-06-08 09:34:52 EDT
Erki, I expect that this has been addressed by the fixes for bug 348215. Let me know if it isn't.

The inability to maximize a detached window is just something we haven't gotten to yet. The missing close box is intentional; what do you think hitting the red 'x' should mean ?
Comment 5 Erki CLA 2011-06-09 10:42:36 EDT
(In reply to comment #4)
> Erki, I expect that this has been addressed by the fixes for bug 348215. Let me
> know if it isn't.
> 
> The inability to maximize a detached window is just something we haven't gotten
> to yet. The missing close box is intentional; what do you think hitting the red
> 'x' should mean ?

It seems to be fixed now. Thanks!

I think hitting the x should close the detached window, along with all the "things" it contains. I just wanted an easy (1-click) way for getting rid of the detached window.

I'm probably not seeing it all the way through though :).
Can it contain anything that is not closable?