Problem setting Category in propertysheets [message #169478] |
Fri, 12 December 2003 01:50  |
Eclipse User |
|
|
|
Hi All,
I am having problems setting categories in property sheet.I can set the
root categories, but not the sub categories.I have something like this.
Misc
Loc
Size
Select
Entry1.1[property descriptor for this has category="Select"]
Entry1.2[property descriptor for this has category="Select"]
Category1.1
Entry1.1.1[property descriptor for this has
category="Category1.1"]
Entry1.1.2[property descriptor for this has
category="Category1.1"]
From
Entry2.1[property descriptor for this has category="From"]
I am able to see the Misc,Select and From categories.
But not Category1.1
Any idea why this is happenning..
Does categories only means Root categories.Cant we create sub categories
like ?Category1.1??
On debugging i found that in PropertySheetViewer, updateCategories() is
getting called for the Root categories[i.e for Misc,Select,From].
But for the sub-category Category1.1 it is not getting called...Can this
be the issue??
What am i doing wrong here???
Rgds,
Mark
|
|
|
|
|
|
Re: Problem setting Category in propertysheets [message #169962 is a reply to message #169876] |
Fri, 12 December 2003 17:23  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> There is no way to nest categories. All you can do is say what category
> a property descriptor is in. If you notice there is nothing anywhere
> which you can use to say a category is nested. That is because you don't
> define the categories. They are discovered simply as strings from the
> property descriptor. It simply gathers all of the strings together from
> all of the root property descriptors in a set (i.e. ignore duplicates).
> Then it creates a category for each root entry.
Thanks,Understood this!!!!
> Why do you think that just doing setCategory("Category 1.1") would cause
> a category to be nested? It is simply a string.
Hey,If For Root Entries this API works,then i naturaly expect it to work
for sub-entries.Eclipse makes the difference between root entries and
sub-entries.
I dont!!!!It's simply a string.But this "simple string" works for root
entries while it doesnt for sub-entries..I guess as an API then
setCategory could be misleading..
> Or are you thinking of nested properties (where a property is a
> subproperty of another, and you want the categorization to occur for the
> nested properties)? If this is the case you aren't asking for nested
> categories, you are asking for categories within the nested properties.
> Which is different than nested categories. In that case the
> PropertySheetViewer will not do categorization of nested properties. It
> just doesn't.
Yep,this is what i am trying to achieve.And from ur posting,its not
possible.I guess i should go about in some other way in achieving
this.[found a possible solution in PropertyView article]
Thanks very much for ur inputs..
Rgds,
Mark
|
|
|
Powered by
FUDForum. Page generated in 0.28837 seconds