public void updateMessage( ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) { String message = propertyPage.getMessage( ); int messageType = propertyPage.getMessageType( ); // if error message exists, it takes precedence over page's non-error message if ( messageType < IMessageProvider.ERROR ) { String errMessage = propertyPage.getErrorMessage(); if ( errMessage != null ) { message = errMessage; messageType = IMessageProvider.ERROR; } } setMessage( message, messageType ); } }
/** * get current PropertyPage * * @return */ private PropertyPage getCurrentPropertyPage( ) { if ( getCurrentNode( ) != null ) { IPropertyPage ipropertyPage = getCurrentNode( ).getPage( ); if ( ipropertyPage instanceof PropertyPageWrapper ) return ( (PropertyPageWrapper) ipropertyPage ).getPropertyPage( ); } return null; }
public void updateButtons( ) { if ( getOkButton( ) != null ) { PropertyPage propertyPage = this.getCurrentPropertyPage( ); if ( propertyPage != null ) { getOkButton( ).setEnabled( propertyPage.okToLeave( ) ); } else if ( getCurrentNode( ).getPage( ) instanceof WizardPage ) { getOkButton( ).setEnabled( ( (WizardPage) getCurrentNode( ).getPage( ) ).isPageComplete( ) ); } } }
public void updateMessage( ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) setMessage( propertyPage.getMessage( ), propertyPage.getMessageType( ) ); }
public void updateButtons( ) { if ( getOkButton( ) != null ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) getOkButton( ).setEnabled( propertyPage.isValid( ) ); } }
/** * * @return */ private PropertyPage getCurrentPropertyPage( ) { if ( getCurrentNode( ) == null ) return null; IPropertyPage currentPage = getCurrentNode( ).getPage( ); if ( !( currentPage instanceof PropertyPageWrapper ) ) return null; return ( (PropertyPageWrapper) currentPage ).getPropertyPage( ); }
public PropertyPageWrapper( PropertyPage propertyPage, DataSetDesignSession m_designSession ) { this.propertyPage = propertyPage; this.dataSetSession = m_designSession; }
public PropertyPageWrapper( PropertyPage propertyPage, DataSourceDesignSession m_designSession ) { this.propertyPage = propertyPage; this.dataSourceSession = m_designSession; }
public PropertyPage getPropertyPage( ) { return propertyPage; }