Bug 322346 Refactor data set editor pages' codes[29803]
Build Identifier: 20100810 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
List<URL> urls )
	{
		Iterator it = handle.scriptLibsIterator( );
		while ( it.hasNext( ) )
		{
			ScriptLibHandle libHandle = (ScriptLibHandle) it.next( );
			URL url = handle.findResource( libHandle.getName( ),
					IResourceLocator.LIBRARY );
			if ( url != null )
				urls.add( url );
		}
	}
	private static List<URL> getClassPathURLs( String reportFilePath )
	{
		List<URL> urls = new ArrayList<URL>( );
		urls.addAll( getDefaultViewerScriptLibURLs( ) );
		urls.addAll( getWorkspaceProjectURLs( reportFilePath ) );
		return urls;
	}
	/**
	 * Return the URLs of ScriptLib jars.
	 * 
	 * @return
	 */
	private static List<URL> getDefaultViewerScriptLibURLs( )
	{
		List<URL> urls = new ArrayList<URL>( );
		try
		{
			Bundle bundle = Platform.getBundle( VIEWER_NAMESPACE );