Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351920 - Replace Details with a property concept
Summary: Replace Details with a property concept
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 311355
  Show dependency tree
 
Reported: 2011-07-13 03:59 EDT by Holger Staudacher CLA
Modified: 2011-07-13 06:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.