Bug 110620 Can Chart dialogs be made available ?
Standalone Development We are trying to develop a standalone application which will output a BIRT '.rptdesign' file. As creating charts in particular requires the user to choose or set a large number of parameters, would it be possible to add the chart creation dialog to the API so that other plugins or applications may use it and thus avoid re-inventing the wheel ? In truth all of the various dialogs, data source, data set etc would be useful additions to the API or pluggin set for anyone embedding BIRT into their own project. Regards, Brian Compston
core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/utils/UIHelper.java
* @param shell
	 *            The shell to be centered on screen
	 */
	public static void centerOnScreen( Shell shell )
	{
		shell.setLocation( Display.getCurrent( )
				.getPrimaryMonitor( )
				.getClientArea( ).width
				/ 2 - ( shell.getSize( ).x / 2 ), Display.getCurrent( )
				.getPrimaryMonitor( )
				.getClientArea( ).height
				/ 2 - ( shell.getSize( ).y / 2 ) );
	}
	/**
	 * This method returns an URL for a resource given its plugin relative path.
	 * It is intended to be used to abstract out the usage of the UI as a plugin
	 * or standalone component when it comes to accessing resources.
	 * 
	 * @param sPluginRelativePath
	 *            The path to the resource relative to the plugin location.
	 * @return URL representing the location of the resource.
	 */
	public static URL getURL( String sPluginRelativePath )
	{
		URL url = null;
		if ( Platform.getExtensionRegistry( ) != null )
		{
			try
			{
				url = new URL( CoreUIPlugin.getDefault( )