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

Bug 351920

Summary: Replace Details with a property concept
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 311355    

Description Holger Staudacher CLA 2011-07-13 03:59:29 EDT
Currently our messages has many operations. Each operation consist of a type, a target and some details. This looks like this e.g. fpr a create operation:
  {
    "target" : "w1",
    "type" : "CREATE",
		"details" : {
			"parentId" : "w1",
			"type" : "org.eclipse.rap.Button"
		}
  }
  
I think we could change this by moving the mandatory properties to the top of the operation and introduce a properties object that can contain free defined properties. This could look something like this:
 {
    "target" : "w1",
    "type" : "CREATE",
		"nature" : "org.eclipse.rap.Button"
		"properties" : {
			"visibility" : true,
			"styles" : {
				"PUSH" : true
				"BORDER" : true
			},
			"parent" : "w1",
		}
  }
  
This will clean up the operations and avoids clutter.
Comment 1 Holger Staudacher CLA 2011-07-13 06:43:25 EDT
Changes are in CVS HEAD.