Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313272

Summary: Calling Tree.setEnabled() upon view creation causes crash.
Product: [RT] RAP Reporter: Austin Riddle <austin.riddle>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 Keywords: needinfo
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Sample project illustrating problem none

Description Austin Riddle CLA 2010-05-17 21:58:46 EDT
Created attachment 168850 [details]
Sample project illustrating problem

Using 1.3 M7

Steps to reproduce:

1. Create a view with a tree viewer.
2. Set the tree to setEnabled(false) in createPartControl().
3. Run the app and observe a crash.

I have tested this with IE, Firefox and Chrome and they all give the following error:


Error in property textColor of class qx.ui.layout.HorizontalBoxLayout in method styleTextColor with incoming value 'widget.graytext': Is invalid!


I originally experienced this only in IE in my application, and with an "Invalid Argument" error instead of the one above.  But when attempting to reproduce in a bug demo, I received the error above.  

The sample view loaded by default in the bug-demo project is called IconTreeView.java
Comment 1 Ivan Furnadjiev CLA 2010-05-18 03:09:45 EDT
Hi Austin, maybe it is strange, but I can't reproduce the bug with your demo project and CVS HEAD. Tested on Windows 7, IE8, FF 3.6.3, Chrome 6.0.401.1 beta. All work just fine, view is loaded and tree is disabled. Any special hints how to reproduce it?
Comment 2 Austin Riddle CLA 2010-05-18 10:32:14 EDT
(In reply to comment #1)

After some more digging it turns out that I had a modification to AppearancesBase.js that was causing the error.  Sorry for the trouble.