Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Customize Properties View
Customize Properties View [message #381790] Thu, 23 September 2004 09:09 Go to next message
Eclipse User
Originally posted by: timothy.janusz.siemens.com

I created a simple properties view (similar to the one mentioned in Dicky's
article) but one question I have is can I customize the default toolbar for
the properties view?

For example, I have no idea how to program against the "show categories" or
the "Show Advanced Categories" buttons/menu items. Since I couldn't find an
API for them I'd like to somehow hide them in my view.

Is this possible? Or am I just missing something with these items?

Thanks in advance.
Re: Customize Properties View [message #382463 is a reply to message #381790] Mon, 27 September 2004 13:12 Go to previous messageGo to next message
Eclipse User
Originally posted by: timothy.janusz.siemens.com

To answer part of my own question, I now know how to control the "show
advanced categories" now via filter flags..

PropertyDescriptor aPDesc = new PropertyDescriptor( PROPERTY_ID,
Messages.getString( "allergyId" ) );
// Filter flags are how to control what's considered "extended"
properties or not
String aStringArray [] = new String[] {
IPropertySheetEntry.FILTER_ID_EXPERT };
aPDesc.setFilterFlags(aStringArray);
descriptors.add( aPDesc );



"TJanusz" <timothy.janusz@siemens.com> wrote in message
news:ciuhlf$v5j$1@eclipse.org...
> I created a simple properties view (similar to the one mentioned in
Dicky's
> article) but one question I have is can I customize the default toolbar
for
> the properties view?
>
> For example, I have no idea how to program against the "show categories"
or
> the "Show Advanced Categories" buttons/menu items. Since I couldn't find
an
> API for them I'd like to somehow hide them in my view.
>
> Is this possible? Or am I just missing something with these items?
>
> Thanks in advance.
>
>
Re: Customize Properties View [message #714373 is a reply to message #381790] Wed, 10 August 2011 08:50 Go to previous messageGo to next message
Jay Mising name is currently offline Jay Mising name
Messages: 9
Registered: August 2011
Junior Member
To set the category, simply do:

TextPropertyDescriptor pd = new TextPropertyDescriptor(id, name);	
pd.setCategory(arbitraryString); 
(no subject) [message #714374 is a reply to message #381790] Wed, 10 August 2011 08:50 Go to previous message
Jay is currently offline Jay
Messages: 14
Registered: July 2009
Junior Member
To set the category, simply do:

TextPropertyDescriptor pd = new TextPropertyDescriptor(id, name);
pd.setCategory(arbitraryString);
Previous Topic:Purpose of Core Runtime Products Extension
Next Topic:Change Update-Site of eclipse 3.5-based RCP application
Goto Forum:
  


Current Time: Wed Apr 16 07:01:39 EDT 2014

Powered by FUDForum. Page generated in 0.01535 seconds