public void createPageControlsPostconfig ( ) { try { getMainPageButton ( "projectFromArchiveRadio" ) . setSelection ( true ) ; getMainPageButton ( "projectFromArchiveRadio" ) . setEnabled ( false ) ; getMainPageButton ( "projectFromDirectoryRadio" ) . setSelection ( false ) ; getMainPageButton ( "projectFromDirectoryRadio" ) . setEnabled ( false ) ; getMainPageButton ( "browseDirectoriesButton" ) . setEnabled ( false ) ; getMainPageButton ( "browseArchivesButton" ) . setEnabled ( false ) ; invokeMainPageMethod ( "archiveRadioSelected" ) ; Control pathfield = getMainPageField ( "archivePathField" ) ; if ( pathfield instanceof Text ) { ( ( Text ) pathfield ) . setText ( this . inputPath ) ; } else if ( pathfield instanceof Combo ) { ( ( Combo ) pathfield ) . setText ( this . inputPath ) ; } pathfield . setEnabled ( false ) ; } catch ( Exception e ) { VdmUIPlugin . log ( "Failed to configure throug reflection WizardProjectsImportPage" , e ) ; } }
This initializes the page with the graphical selection and sets the input path . The input path must be set prior to the call to this method