|Triggering validation on LibraryFacetInstallPage [message #553470]
||Tue, 17 August 2010 15:48
| Eric Peters
Registered: July 2009
In the article http://www.eclipse.org/fproj/articles/libprov/1/index.html there is a description of how to do this (i.e. The next step is to embed the library provider UI into the facet's install and version change action pages. Similarly to the action config classes, the easiest way of doing this is to subclass LibraryFacetInstallPage class. If the action page needs to display other controls besides the library provider UI, the createPageContents and performValidation methods can be overridden.)
I suspect the article actually refers to methods org.eclipse.wst.common.frameworks.internal.datamodel.ui.Data ModelWizardPage.createTopLevelComposite(Composite) & e.g. org.eclipse.wst.common.frameworks.internal.datamodel.ui.Data ModelWizardPage.validatePage(boolean)?
I get a NPE in call to validatePage except when I have actually arrived on my facet install UI page, so please advise how to perform validation on my install UI page before I actually get there so I can disable finish say on first page of new project creation wizard if my facet page has validation errors?
I am using org.eclipse.wst.common.frameworks.internal.datamodel.ui.Data ModelWizardPage.showValidationErrorsOnEnter() which allows for the errors to be shown when I enter the page.
Powered by FUDForum
. Page generated in 0.01544 seconds