本文整理匯總了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;
}