Java 类org.eclipse.ui.dialogs.PropertyPage 实例源码
项目:birt
文件:DataSourceEditor.java
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 );
}
}
项目:birt
文件:DataSetEditor.java
/**
* get current PropertyPage
*
* @return
*/
private PropertyPage getCurrentPropertyPage( )
{
if ( getCurrentNode( ) != null )
{
IPropertyPage ipropertyPage = getCurrentNode( ).getPage( );
if ( ipropertyPage instanceof PropertyPageWrapper )
return ( (PropertyPageWrapper) ipropertyPage ).getPropertyPage( );
}
return null;
}
项目:birt
文件:DataSetEditor.java
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( ) );
}
}
}
项目:birt
文件:DataSetEditor.java
public void updateMessage( )
{
PropertyPage propertyPage = getCurrentPropertyPage( );
if ( propertyPage != null )
setMessage( propertyPage.getMessage( ),
propertyPage.getMessageType( ) );
}
项目:birt
文件:DataSourceEditor.java
public void updateButtons( )
{
if ( getOkButton( ) != null )
{
PropertyPage propertyPage = getCurrentPropertyPage( );
if ( propertyPage != null )
getOkButton( ).setEnabled( propertyPage.isValid( ) );
}
}
项目:birt
文件:DataSourceEditor.java
/**
*
* @return
*/
private PropertyPage getCurrentPropertyPage( )
{
if ( getCurrentNode( ) == null )
return null;
IPropertyPage currentPage = getCurrentNode( ).getPage( );
if ( !( currentPage instanceof PropertyPageWrapper ) )
return null;
return ( (PropertyPageWrapper) currentPage ).getPropertyPage( );
}
项目:birt
文件:PropertyPageWrapper.java
public PropertyPageWrapper( PropertyPage propertyPage,
DataSetDesignSession m_designSession )
{
this.propertyPage = propertyPage;
this.dataSetSession = m_designSession;
}
项目:birt
文件:PropertyPageWrapper.java
public PropertyPageWrapper( PropertyPage propertyPage,
DataSourceDesignSession m_designSession )
{
this.propertyPage = propertyPage;
this.dataSourceSession = m_designSession;
}
项目:birt
文件:PropertyPageWrapper.java
public PropertyPage getPropertyPage( )
{
return propertyPage;
}