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

Bug 322631

Summary: [Tree] No check events sent from new tree
Product: [RT] RAP Reporter: Dirk Bernsau <eclipse.bugzilla>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bbarzu
Version: unspecified   
Target Milestone: 1.4 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Test snippet to reproduce the problem none

Description Dirk Bernsau CLA 2010-08-13 05:51:35 EDT
Build Identifier: RAP 1.4M1

The new tree implementation does not send any events when the checkbox of a tree (created with SWT.CHECK style) is checked/unchecked.

Usually, a listener like this recieves events upon checking:

tree.addListener(SWT.Selection, new Listener() {

  public void handleEvent(Event event) {
    if (event.detail == SWT.CHECK) {
      // checkbox state was changed
    }
  }
});

This worked fine with RAP 1.3.0 but is broken with new tree of RAP 1.4M1.



Reproducible: Always

Steps to Reproduce:
1. Create a tree with SWT.CHECK style
2. Add selection listener
3. Check/uncheck any arbitrary tree element
Comment 1 Ivan Furnadjiev CLA 2010-08-13 06:01:16 EDT
This is a duplicate of Bug 322279 and has been fixed 2 days ago before M1 build. Are you sure that you are using 1.4 M1? It's working for me with CVS HEAD.
Comment 2 Dirk Bernsau CLA 2010-08-13 06:05:48 EDT
We're currently using bundle org.eclipse.rap.rwt_1.4.0.20100811-1615 in the target.
Comment 3 Ivan Furnadjiev CLA 2010-08-13 06:12:09 EDT
What about org.eclipse.rap.rwt.q07 bundle?
Comment 4 Dirk Bernsau CLA 2010-08-13 07:13:50 EDT
All org.eclipse.rap.* bundles in the target have the same version 1.4.0.20100811-1615.
Comment 5 Ivan Furnadjiev CLA 2010-08-13 07:32:33 EDT
Strange.... I've just checked it with the same bundles in the target 1.4.0.20100811-1615 and it works. Could you provide a snippet to reproduce it?
Comment 6 Dirk Bernsau CLA 2010-08-13 09:14:12 EDT
Created attachment 176552 [details]
Test snippet to reproduce the problem

Added an test entry point showing the problem.

When run against 1.3 target, the console shows 'Item has been checked' on checking the tree items, with 1.4, it doesn't.
Comment 7 Ivan Furnadjiev CLA 2010-08-13 09:28:46 EDT
Dirk, your snippet works perfect (checked/unchecked is printed) with 1.4.0.20100811-1615 and CVS HEAD on Windows with Firefox 3.6.8, IE8, Sfari 5, Chrome 6 and Opera 10.61. What is your environment? Could you post the list with your bundles from osgi ss command when the snippet is running? Do you have RAP bundles from CVS in your workspace?
Comment 8 Dirk Bernsau CLA 2010-08-13 09:36:48 EDT
0	STARTING    org.eclipse.osgi_3.6.100.v20100730
1	ACTIVE      org.eclipse.equinox.http.registry_1.1.0.v20100503
2	STARTING    org.eclipse.equinox.http.jetty_2.0.0.v20100503
3	RESOLVED    org.mortbay.jetty.util_6.1.23.v201004211559
4	RESOLVED    org.eclipse.core.databinding_1.3.100.I20100601-0800
5	RESOLVED    javax.servlet.jsp_2.0.0.v200806031607
6	RESOLVED    org.eclipse.core.commands_3.6.0.I20100512-1500
7	ACTIVE      org.eclipse.equinox.common_3.6.0.v20100503
8	RESOLVED    org.apache.commons.logging_1.1.1.v200904062255
9	RESOLVED    org.apache.commons.el_1.0.0.v200806031608
10	RESOLVED    com.ibm.icu.base_4.2.1.v20100412
11	RESOLVED    org.eclipse.rap.jface.databinding_1.4.0.20100811-1615
12	RESOLVED    org.eclipse.help_3.5.0.v20100524
13	ACTIVE      org.eclipse.equinox.registry_3.5.0.v20100503
14	RESOLVED    org.eclipse.rap.design.example_1.4.0.20100811-1615
15	ACTIVE      org.eclipse.core.jobs_3.5.0.v20100515
16	ACTIVE      org.eclipse.equinox.http.servlet_1.1.0.v20100503
17	RESOLVED    org.eclipse.core.expressions_3.4.200.v20100505
18	STARTING    org.eclipse.rap.ui.workbench_1.4.0.20100811-1615
19	RESOLVED    org.eclipse.rap.rwt.q07_1.4.0.20100811-1615
	            Master=21
20	RESOLVED    org.mortbay.jetty.server_6.1.23.v201004211559
21	RESOLVED    org.eclipse.rap.rwt_1.4.0.20100811-1615
	            Fragments=19
22	ACTIVE      org.eclipse.equinox.preferences_3.3.0.v20100503
23	ACTIVE      org.eclipse.equinox.app_1.3.100.v20100803
24	ACTIVE      org.eclipse.rap.ui.forms_1.4.0.20100811-1615
25	RESOLVED    org.apache.jasper_5.5.17.v200903231320
26	RESOLVED    org.eclipse.core.databinding.observable_1.3.0.I20100601-0800
27	ACTIVE      org.eclipse.core.runtime_3.6.100.v20100628
28	RESOLVED    org.apache.log4j_1.2.15.v200910021404
29	STARTING    org.eclipse.rap.ui_1.4.0.20100811-1615
30	RESOLVED    com.<company>.rap.widgets_1.0.0
31	RESOLVED    javax.servlet_2.5.0.v200910301333
32	RESOLVED    org.eclipse.core.contenttype_3.4.100.v20100505-1235
33	ACTIVE      com.<company>.rap.test_1.0.0
34	RESOLVED    org.eclipse.osgi.services_3.2.100.v20100503
35	ACTIVE      org.eclipse.rap.jface_1.4.0.20100811-1615
36	RESOLVED    org.eclipse.core.databinding.property_1.3.0.I20100601-0800
Comment 9 Dirk Bernsau CLA 2010-08-13 09:42:34 EDT
Environment is Windows with Firefox 3.6.8 or Chrome 5.0.

Tried with both RWT plugins from CSV HEAD in workspace and without (just 1.4.0 as target platform).
Comment 10 Ivan Furnadjiev CLA 2010-08-13 10:01:49 EDT
This is really strange... You have a lot of resolved/starting bundles instead of active??!! And osgi is starting too?? Maybe there are some cached files left? Try to delete "Eclipse/workspace" folder.
Comment 11 Dirk Bernsau CLA 2010-08-13 10:26:44 EDT
Maybe I've been too fast last time. All non-fragments are finally active...
Comment 12 Ivan Furnadjiev CLA 2010-08-16 05:15:57 EDT
I found the mistery. It's working with debug library, but not with standard. client.js is rebuilt and committed to CVS HEAD.
Comment 13 Dirk Bernsau CLA 2010-08-16 07:52:35 EDT
Ivan, do you see the possibility that we patch the 1.4M1 to fix this issue without waiting for M2?

Is the M2 already scheduled?
Comment 14 Ivan Furnadjiev CLA 2010-08-16 08:49:45 EDT
Get org.eclipse.rap.rwt.q07\resources\client.js from CVS HEAD or run application in debug mode - set "client-side Library Variant" to debug in the lunch configuration. The Eclipse Indigo M2 is scheduled for 09/17/2010.