当前位置: 首页>>代码示例>>Java>>正文


Java BirtException.printStackTrace方法代码示例

本文整理汇总了Java中org.eclipse.birt.core.exception.BirtException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java BirtException.printStackTrace方法的具体用法?Java BirtException.printStackTrace怎么用?Java BirtException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.birt.core.exception.BirtException的用法示例。


在下文中一共展示了BirtException.printStackTrace方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDesignEngine

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private IDesignEngine getDesignEngine( )
{

	DesignConfig config = new DesignConfig( );
	try
	{
		Platform.startup( config );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
	}

	Object factory = Platform.createFactoryObject( IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY );

	return ( (IDesignEngineFactory) factory ).createDesignEngine( config );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:18,代码来源:GroupOnYAxis.java

示例2: getDesignEngine

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private IDesignEngine getDesignEngine( )
{
	DesignConfig config = new DesignConfig( );
	try
	{
		Platform.startup( config );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
	}

	Object factory = Platform.createFactoryObject( IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY );

	return ( (IDesignEngineFactory) factory ).createDesignEngine( config );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:MeterChartExample.java

示例3: testResourceImage

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void testResourceImage( )
{
	path = "file://" + this.genInputFolder( ) + separator + "resources"
			+ separator;
	// path="http://192.168.218.234:88/resource/";
	IResourceLocator locator = new EngineResourceLocator( path );
	try
	{
		renderReport( "resource_image", locator );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
		fail( "Failed to find image resource from custom resource locator" );
	}
	File f = new File( this.genOutputFile( "resource_image.html" ) );
	assertTrue( "Failed render report from image resource", f.exists( ) );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:19,代码来源:ResourceLocatorTest.java

示例4: testResourceProperties

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void testResourceProperties( )
{
	path = "file://" + this.genInputFolder( ) + separator + "resources"
			+ separator;
	// path="http://192.168.218.234:88/resource/";
	IResourceLocator locator = new EngineResourceLocator( path );
	try
	{
		renderReport( "resource_properties", locator );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
		fail( "Failed to find library resource from custom resource locator" );
	}
	File f = new File( this.genOutputFile( "resource_properties.html" ) );
	assertTrue( "Failed render report from properties resource", f.exists( ) );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:19,代码来源:ResourceLocatorTest.java

示例5: testResourceLibrary

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void testResourceLibrary( )
{
	path = "file://" + this.genInputFolder( ) + separator + "resources"
			+ separator;
	// path="http://192.168.218.234:88/resource/";
	IResourceLocator locator = new EngineResourceLocator( path );
	try
	{
		renderReport( "resource_library", locator );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
		fail( "Failed to find properties resource from custom resource locator" );
	}

	File f = new File( this.genOutputFile( "resource_library.html" ) );
	assertTrue( "Failed render report from library", f.exists( ) );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:ResourceLocatorTest.java

示例6: initColumnNames

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private void initColumnNames( )
{
	try
	{
		columns = ( (DataSetEditor) this.getContainer( ) ).getCurrentItemModel( true );
		if ( columns != null )
		{
			columnExpressions = new String[columns.length];
			for ( int n = 0; n < columns.length; n++ )
			{
				columnExpressions[n] = columns[n].getName( );
			}
		}
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:DataSetFiltersPage.java

示例7: contextInitialized

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void contextInitialized( ServletContextEvent event )
{
	ParameterAccessor.initParameters( event.getServletContext( ) );
	IViewerReportService instance = new BirtViewerReportService( event
			.getServletContext( ) );
	BirtReportServiceFactory.init( instance );
	try
	{
		BirtReportServiceFactory.getReportService( ).setContext(
				event.getServletContext( ), null );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:ViewerServletContextListener.java

示例8: checkGetResultMetaData

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private void checkGetResultMetaData( IDataIterator iterator )
{
	try
	{
		IResultMetaData metaData = iterator.getResultMetaData( );
		assertEquals( 4, metaData.getColumnCount( ) );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
		fail( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:14,代码来源:IDataIteratorTest.java

示例9: checkNext

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private void checkNext( IDataIterator iterator )
{
	int count = 0;
	try
	{
		while ( iterator.next( ) )
			count++;
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
		fail( );
	}
	assertEquals( 6, count );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:16,代码来源:IDataIteratorTest.java

示例10: DataSetComputedColumnsPage

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
/**
 * 
 */
public DataSetComputedColumnsPage( )
{
	super( );
	try
	{
		aggregationManager = DataUtil.getAggregationManager( ).getInstance( );
	}
	catch ( BirtException e )
	{
		e.printStackTrace();
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:16,代码来源:DataSetComputedColumnsPage.java

示例11: convertGroup

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
private GroupHandle convertGroup( ElementFactory factory,
		DataGroupHandle dataGroup )
{
	try
	{
		TableGroupHandle group = factory.newTableGroup( );

		group.setName( dataGroup.getGroupName( ) );
		group.setExpressionProperty( IGroupElementModel.KEY_EXPR_PROP,
				(Expression) dataGroup.getExpressionProperty( IDataGroupModel.KEY_EXPR_PROP )
						.getValue( ) );
		group.setInterval( dataGroup.getInterval( ) );
		group.setIntervalBase( dataGroup.getIntervalBase( ) );
		group.setIntervalRange( dataGroup.getIntervalRange( ) );

		group.setSortDirection( dataGroup.getSortDirection( ) );

		// TODO copy sort/filter definitions and other properties, so far
		// only the properties above are used, the main purpose is to
		// populate the value list from UI.

		return group;
	}
	catch ( BirtException e )
	{
		// TODO Auto-generated catch block
		e.printStackTrace( );
	}

	return null;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:32,代码来源:AbstractGroupStructureProvider.java

示例12: BirtViewerReportService

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
/**
 * Default constructor
 * 
 * @param context
 */
public BirtViewerReportService( ServletContext context )
{
	try
	{
		ReportEngineService.initEngineInstance( context );
	}
	catch ( BirtException e )
	{
		e.printStackTrace( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:BirtViewerReportService.java

示例13: testToBoolean

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
@Test
   public void testToBoolean( )
{
	Boolean result;
	for ( int i = 0; i < testObject.length; i++ )
	{
		System.out.println(i);
		try
		{
			result = DataTypeUtil.toBoolean( testObject[i] );
			if ( resultBoolean[i] instanceof Exception )
				fail( "Should throw Exception." );
			assertEquals( result, resultBoolean[i] );
		}
		catch ( BirtException dteEx )
		{
			if ( !( resultBoolean[i] instanceof Exception ) )
				fail( "Should not throw Exception." );
		}
	}
	
	try
	{
		assertTrue( DataTypeUtil.toBoolean( new Double(0.1) ).booleanValue( ));
		assertTrue( DataTypeUtil.toBoolean( new Double(-0.1) ).booleanValue( ));
		assertTrue( DataTypeUtil.toBoolean( new Double(1) ).booleanValue( ));
		assertTrue( DataTypeUtil.toBoolean( new Double(1) ).booleanValue( ));
		assertFalse( DataTypeUtil.toBoolean( new Double(0) ).booleanValue( ));
	}
	catch ( BirtException e )
	{
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
}
 
开发者ID:eclipse,项目名称:birt,代码行数:37,代码来源:DataTypeUtilTest.java

示例14: validateSyntax

import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
protected IStatus validateSyntax( Object structureOrHandle )
		{
			try
			{
				// duplicated columnName check
				if ( !isUniqueColumnName( ) )
					return getMiscStatus( IStatus.ERROR,
							Messages.getString( "DataSetComputedColumnsPage.duplicatedName" ) ); //$NON-NLS-1$

				// blankProperty check
				if ( isBlankProperty( txtColumnName.getText( ) ) )
					return getBlankPropertyStatus( dialogLabels[COLUMN_NAME_INDEX] );
				if ( isBlankProperty( cmbDataType.getText( ) ) )
					return getBlankPropertyStatus( dialogLabels[DATA_TYPE_INDEX] );
				//ColumnName is number
				if ( isNumeric( txtColumnName.getText( ) ) )
				{
					return getMiscStatus( IStatus.ERROR,
							Messages.getString( "DataSetComputedColumnsPage.numberName" ) );
				}
//				if ( expression!=null && isBlankProperty( expression.getText( ) ) )
//				{
//					String funcName = getSelectedFunction( ).getName( );
//					if ( isFunctionCount( funcName ) == false )
//						return getBlankPropertyStatus( cellLabels[EXPRESSION_INDEX] );
//				}
				// validate arguments
				IAggrFunction aggrFunc = getSelectedFunction( );
				if ( aggrFunc != null )
				{
					IParameterDefn[] paramDefns = aggrFunc.getParameterDefn( );
					for ( int i = 0; i < paramDefns.length; i++ )
					{
						if ( !paramDefns[i].isOptional( )
								&& isBlankProperty( txtParams[i].getText( ) ) )
						{
							return getBlankPropertyStatus( paramDefns[i].getDisplayName( ) );
						}
					}
				}
				else if ( txtParams != null
						&& isBlankProperty( txtParams[0].getText( ) ) )
				{
					return getBlankPropertyStatus( dialogLabels[EXPRESSION_INDEX] );
				}


				if ( cmbAggregation != null
						&& cmbAggregation.getText( ).trim( ).length( ) > 0
						&& !checkExpressionBindingFields( ) )
				{
					return getMiscStatus( IStatus.ERROR,
							Messages.getString( "DataSetComputedColumnsPage.InputDialog.message.error.AggregationExpression" ) ); //$NON-NLS-1$
				}
			}
			catch ( BirtException e )
			{
				e.printStackTrace( );
			}
			return getOKStatus( );
		}
 
开发者ID:eclipse,项目名称:birt,代码行数:62,代码来源:DataSetComputedColumnsPage.java


注:本文中的org.eclipse.birt.core.exception.BirtException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。