Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: RE: [gef-dev] PropertySheetPage as a different view

Well in this case some of the logic would have to go to the container
(class which contains tabs and embedded property sheets) and you will
have to implement it. Maybe you could define a custom interface which
returns multiple property sources from edit parts and then assign these
different property sources to different tabs. Something like...

public interface IMultiPropertySource
{
  String[] getTabNames();

  IPropertySource[] getPropertySources();
}



-----Original Message-----
From: James Henry [mailto:james@xxxxxxxxxxxxxx] 
Sent: Monday, December 12, 2005 9:03 AM
To: Krzysztof Ogrodnik
Cc: gef-dev@xxxxxxxxxxx
Subject: Re: RE: [gef-dev] PropertySheetPage as a different view

Hello Krzysztof,

Thanks for the information. I will start looking into it right away. 
How will the edit-part control which tab to display a set of properties
in.
That is, I want some properties from the edit part to go to the first
tab and some properties to the second tab. 

regards
James

Krzysztof Ogrodnik wrote:
>
>Hi,
>
>I see no problem with edit parts using the standard IPropertySource.
>IMHO all you need to do in terms of tabbed property sheets is to create

>tabbed main control (container) and embed the standard 
>org.eclipse.ui.views.properties.PropertySheetPage in it. Have a look at

>the classes org.eclipse.ui.views.properties.PropertySheet and 
>PageBookView. All you need to do is to implements a container 
>(something similar to PropertySheet class) but with tabs. Then use the 
>standrad PropertySheetPage as a child control in each of these tabs.=20
>
>Kind regards,
>
>Krzysztof
>
>
>
>-----Original Message-----
>From: gef-dev-bounces@xxxxxxxxxxx [mailto:gef-dev-bounces@xxxxxxxxxxx]
>On Behalf Of James Henry
>Sent: Monday, December 12, 2005 9:13 AM
>To: gef-dev@xxxxxxxxxxx
>Subject: [gef-dev] PropertySheetPage as a different view
>
>Hi,
>
>I want to create a propertysheet that has two additional tabs in it.
>Can the editparts still use the same IPropertySource interface to fill 
>the properties in the individual tabs of the sheet.=20
>
>I'm lost as to where do I start from to implement this feature. I will 
>appreciate any overview/pointers/information in this regard.
>
>Thanks a bunch
>James.
>
>_______________________________________________
>gef-dev mailing list
>gef-dev@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/gef-dev
>
>**********************************************************************
>The information in this e-mail and any attachment is confidential.=20 
>It is intended only for the named recipient(s). If you are not a named 
>recipient please notify the sender immediately and do not disclose the 
>contents to another person or take copies. Although Axxia Systems has 
>taken every reasonable precaution to ensure that any attachment to this

>e-mail has been checked for viruses,=20 it is strongly recommended that

>you carry out your own virus=20 check before opening any attachment, as

>we cannot accept liability for any damage sustained as a result of 
>software virus=20 infection. Axxia Systems reserves the right and 
>senders of messages shall be taken to consent to the monitoring and 
>recording of e-mails addressed to axxia.com.
>**********************************************************************
>
>


**********************************************************************
The information in this e-mail and any attachment is confidential. 
It is intended only for the named recipient(s). If you are not a
named recipient please notify the sender immediately and do not
disclose the contents to another person or take copies. Although
Axxia Systems has taken every reasonable precaution to ensure
that any attachment to this e-mail has been checked for viruses, 
it is strongly recommended that you carry out your own virus 
check before opening any attachment, as we cannot accept
liability for any damage sustained as a result of software virus 
infection. Axxia Systems reserves the right and senders of
messages shall be taken to consent to the monitoring and
recording of e-mails addressed to axxia.com.
**********************************************************************



Back to the top