本文整理汇总了Java中org.eclipse.birt.report.model.api.ModuleHandle.checkReport方法的典型用法代码示例。如果您正苦于以下问题:Java ModuleHandle.checkReport方法的具体用法?Java ModuleHandle.checkReport怎么用?Java ModuleHandle.checkReport使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.birt.report.model.api.ModuleHandle
的用法示例。
在下文中一共展示了ModuleHandle.checkReport方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getErrorLineFromModuleHandle
import org.eclipse.birt.report.model.api.ModuleHandle; //导入方法依赖的package包/类
private int getErrorLineFromModuleHandle( ModuleHandle handle )
{
handle.checkReport( );
List list = handle.getErrorList( );
if ( list != null )
for ( int i = 0, m = list.size( ); i < m; i++ )
{
Object obj = list.get( i );
if ( obj instanceof ErrorDetail )
{
ErrorDetail errorDetail = (ErrorDetail) list.get( i );
this.errorDetail = errorDetail;
return errorDetail.getLineNo( );
}
}
return 0;
}
示例2: refreshMarkers
import org.eclipse.birt.report.model.api.ModuleHandle; //导入方法依赖的package包/类
@Override
public void refreshMarkers( IEditorInput input ) throws CoreException
{
ModuleHandle reportDesignHandle = getModel( );
if ( reportDesignHandle != null )
{
reportDesignHandle.checkReport( );
}
}
示例3: canPreviewWithErrors
import org.eclipse.birt.report.model.api.ModuleHandle; //导入方法依赖的package包/类
public static boolean canPreviewWithErrors( ModuleHandle model )
{
if ( model == null )
{
return false;
}
model.checkReport( );
List<?> errorList = model.getErrorList( );
if ( errorList.size( ) > 0 )
{
ErrorStatus status = new ErrorStatus( ReportPlugin.REPORT_UI,
1009,
Messages.getString( "UIUtil.previewconfirm.title" ), //$NON-NLS-1$
null );
for ( int i = 0; i < errorList.size( ); i++ )
{
ErrorDetail ed = (ErrorDetail) errorList.get( i );
status.addError( "Line " //$NON-NLS-1$
+ ed.getLineNo( )
+ ": " //$NON-NLS-1$
+ ed.getMessage( ) );
}
return new ErrorDialog( Display.getCurrent( ).getActiveShell( ),
Messages.getString( "UIUtil.previewconfirm.title" ), //$NON-NLS-1$
Messages.getString( "UIUtil.previewconfirm.message" ), //$NON-NLS-1$
status,
IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR ) {
protected void createButtonsForButtonBar( Composite parent )
{
createButton( parent,
IDialogConstants.OK_ID,
IDialogConstants.OK_LABEL,
true );
createButton( parent,
IDialogConstants.CANCEL_ID,
IDialogConstants.CANCEL_LABEL,
false );
createDetailsButton( parent );
};
}.open( ) == Window.OK;
}
return true;
}