本文整理汇总了Java中org.eclipse.ui.dialogs.PropertyPage类的典型用法代码示例。如果您正苦于以下问题:Java PropertyPage类的具体用法?Java PropertyPage怎么用?Java PropertyPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertyPage类属于org.eclipse.ui.dialogs包,在下文中一共展示了PropertyPage类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateMessage
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
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 );
}
}
示例2: getCurrentPropertyPage
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
/**
* get current PropertyPage
*
* @return
*/
private PropertyPage getCurrentPropertyPage( )
{
if ( getCurrentNode( ) != null )
{
IPropertyPage ipropertyPage = getCurrentNode( ).getPage( );
if ( ipropertyPage instanceof PropertyPageWrapper )
return ( (PropertyPageWrapper) ipropertyPage ).getPropertyPage( );
}
return null;
}
示例3: updateButtons
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
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( ) );
}
}
}
示例4: updateMessage
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
public void updateMessage( )
{
PropertyPage propertyPage = getCurrentPropertyPage( );
if ( propertyPage != null )
setMessage( propertyPage.getMessage( ),
propertyPage.getMessageType( ) );
}
示例5: updateButtons
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
public void updateButtons( )
{
if ( getOkButton( ) != null )
{
PropertyPage propertyPage = getCurrentPropertyPage( );
if ( propertyPage != null )
getOkButton( ).setEnabled( propertyPage.isValid( ) );
}
}
示例6: getCurrentPropertyPage
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
/**
*
* @return
*/
private PropertyPage getCurrentPropertyPage( )
{
if ( getCurrentNode( ) == null )
return null;
IPropertyPage currentPage = getCurrentNode( ).getPage( );
if ( !( currentPage instanceof PropertyPageWrapper ) )
return null;
return ( (PropertyPageWrapper) currentPage ).getPropertyPage( );
}
示例7: PropertyPageWrapper
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
public PropertyPageWrapper( PropertyPage propertyPage,
DataSetDesignSession m_designSession )
{
this.propertyPage = propertyPage;
this.dataSetSession = m_designSession;
}
示例8: getPropertyPage
import org.eclipse.ui.dialogs.PropertyPage; //导入依赖的package包/类
public PropertyPage getPropertyPage( )
{
return propertyPage;
}