Re: What should be my IManagedForm? [message #469536] |
Fri, 17 August 2007 10:19  |
Eclipse User |
|
|
|
Rerouting this question to the UA newsgroup (UA owns forms)
StefanS wrote:
> hello together,
>
> i want to build a control with a tabfolder. in its tabs i have sections.
> now i would set a section expandable. that is not really a problem, but
> in background eclipse throws an exception:
> "java.lang.NullPointerException
> at
> org.eclipse.ui.forms.SectionPart.expansionStateChanged(Secti onPart.java:106)... "
>
>
> there is:
>
> protected void expansionStateChanged(boolean expanded) {
> getManagedForm().getForm().reflow(false);
> }
>
> yes, it is clear..i have no managedForm...so it is null. it is not my
> day today, please could anybody open my eyes and say me what i have to
> add or implement so i get a managedForm with my existing sections???
>
> with best regards
>
> stefan
|
|
|
|
Re: What should be my IManagedForm? [message #469539 is a reply to message #469538] |
Thu, 30 August 2007 03:05  |
Eclipse User |
|
|
|
hi adam,
thank you for your answer and opening my eyes. that is it...i only need
a section with its composite..thats all...damn..
thx a lot and with best regards
stefan
> Hi Stefan,
>
> If you do not have an IManagedForm then there is no reason to use a
> SectionPart. This class is intended to support including sections in
> managed forms. The combination of the two provides life cycle management
> and notifications.
>
> If you want this functionality then you need to use an implementation of
> IFormPage (FormPage for example) that provides the getManagedForm()
> method. You can then call
> SectionPart#initialize(FormPage#getManagedForm()) when you create the
> SectionPart.
>
> If you do not require the features provided by managed forms, then it
> should be good enough to simply create your section with the appropriate
> composite as a parameter.
>
> For more information check the following Eclipse Corner article:
>
> http://www.eclipse.org/articles/Article-Forms/article.html
>
> There is information about managed forms under the "Advanced Topics"
> section near the end of the article.
>
> Adam
>
|
|
|
Re: What should be my IManagedForm? [message #572677 is a reply to message #469536] |
Tue, 28 August 2007 09:11  |
Eclipse User |
|
|
|
Hi Stefan,
If you do not have an IManagedForm then there is no reason to use a
SectionPart. This class is intended to support including sections in
managed forms. The combination of the two provides life cycle management
and notifications.
If you want this functionality then you need to use an implementation of
IFormPage (FormPage for example) that provides the getManagedForm()
method. You can then call
SectionPart#initialize(FormPage#getManagedForm()) when you create the
SectionPart.
If you do not require the features provided by managed forms, then it
should be good enough to simply create your section with the appropriate
composite as a parameter.
For more information check the following Eclipse Corner article:
http://www.eclipse.org/articles/Article-Forms/article.html
There is information about managed forms under the "Advanced Topics"
section near the end of the article.
Adam
|
|
|
Re: What should be my IManagedForm? [message #572724 is a reply to message #469538] |
Thu, 30 August 2007 03:05  |
Eclipse User |
|
|
|
hi adam,
thank you for your answer and opening my eyes. that is it...i only need
a section with its composite..thats all...damn..
thx a lot and with best regards
stefan
> Hi Stefan,
>
> If you do not have an IManagedForm then there is no reason to use a
> SectionPart. This class is intended to support including sections in
> managed forms. The combination of the two provides life cycle management
> and notifications.
>
> If you want this functionality then you need to use an implementation of
> IFormPage (FormPage for example) that provides the getManagedForm()
> method. You can then call
> SectionPart#initialize(FormPage#getManagedForm()) when you create the
> SectionPart.
>
> If you do not require the features provided by managed forms, then it
> should be good enough to simply create your section with the appropriate
> composite as a parameter.
>
> For more information check the following Eclipse Corner article:
>
> http://www.eclipse.org/articles/Article-Forms/article.html
>
> There is information about managed forms under the "Advanced Topics"
> section near the end of the article.
>
> Adam
>
|
|
|
Powered by
FUDForum. Page generated in 0.03756 seconds