Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Re: What should be my IManagedForm?
Re: What should be my IManagedForm? [message #469536] Fri, 17 August 2007 14:19 Go to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
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 #469538 is a reply to message #469536] Tue, 28 August 2007 13:11 Go to previous messageGo to next message
Adam Archer is currently offline Adam ArcherFriend
Messages: 30
Registered: July 2009
Member
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 #469539 is a reply to message #469538] Thu, 30 August 2007 07:05 Go to previous message
StefanS is currently offline StefanSFriend
Messages: 2
Registered: July 2009
Junior Member
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 13:11 Go to previous message
Adam Archer is currently offline Adam ArcherFriend
Messages: 30
Registered: July 2009
Member
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 07:05 Go to previous message
StefanS is currently offline StefanSFriend
Messages: 2
Registered: July 2009
Junior Member
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
>
Previous Topic:[Bug 193356] Proposed Article: How to add User Assistance Features to a Rich Client Application
Next Topic:Kudos
Goto Forum:
  


Current Time: Fri Apr 26 02:33:12 GMT 2024

Powered by FUDForum. Page generated in 0.03507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top