Bug 186451 - [PropertiesView] Custom control at root node of property view
Summary: [PropertiesView] Custom control at root node of property view
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-10 15:53 EDT by Patrick Chuong CLA
Modified: 2019-09-06 16:10 EDT (History)
1 user (show)

See Also:


Attachments
patch (8.20 KB, patch)
2007-05-10 16:08 EDT, Patrick Chuong CLA
no flags Details | Diff
screen capture of result (27.43 KB, image/pjpeg)
2007-05-10 16:10 EDT, Patrick Chuong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Chuong CLA 2007-05-10 15:53:19 EDT
For the property view, it will be nice to have a custom editor at the root node other than the child nodes. There is a way to create custom editor for child node, such as checkbox (image) and combo-box already, but why not allowing custom control at the parent nodes as well. 

Not sure if this is already implemented for 3.2+, I am using 3.2 and I have added this capability in the proerty view to my local copy of eclipse.
Comment 1 Patrick Chuong CLA 2007-05-10 16:08:03 EDT
Created attachment 66769 [details]
patch

this is how you use it. Create a container and add the descriptor info to the container and than set the input of the viewer with the container object.

Each text descriptor, checkbox descriptor, and textbox descriptor are custom descriptor, with lable provider and cell editor implemented.
-----------

PropertyContainer container = new PropertyContainer();	

PropertyContainer nestedTextContainer = new PropertyContainer("foo");

nestedTextContainer.addDescriptorInfo(new PropertyDescriptorInfo(new ComboBoxPropertyDescriptor("nestedText_ComboBoxID", "comboBox", new String[] {"first", "second", "third"}), 0));

nestedTextContainer.addDescriptorInfo(new PropertyDescriptorInfo(new CheckBoxPropertyDescriptor("nestedText_CheckBoxID", "checkBox"), Boolean.TRUE));

nestedTextContainer.addDescriptorInfo(new PropertyDescriptorInfo(new TextPropertyDescriptor("nestedText_TextID", "text"), "myText"));

container.addDescriptorInfo(new PropertyDescriptorInfo(new TextPropertyDescriptor("nestedTextContainerID", "nested text container"), nestedTextContainer));
Comment 2 Patrick Chuong CLA 2007-05-10 16:10:52 EDT
Created attachment 66770 [details]
screen capture of result
Comment 3 Mike Wilson CLA 2008-06-09 14:59:39 EDT
Assuming nothing was done about this for 3.4. Clearing target milestone.

Comment 4 Eclipse Webmaster CLA 2019-09-06 16:10:01 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.