[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] Webviewer inside RCP Application not working with Indigo

Hello guys,
I have an Eclipse RCP application, just upgraded to Eclipse Indigo.
Now I noticed the BIRT webviewer is not working anymore.

I also found out the problem:

Due to a bugfix (https://bugs.eclipse.org/bugs/show_bug.cgi?id=336767) the method isValidFilePath returns false.

// check and aply url report path policy
if ( !POLICY_ALL.equalsIgnoreCase( urlReportPathPolicy ) )

This statement inside the method is true, because urlReportPathPolicy is null.

I use following code to run the webviewer:
       Browser browser = new Browser(parent, SWT.NONE);
Bundle bundle = Activator.getDefault().getBundle();
URL url = "">        URL installURL =   bundle.getEntry( "/" );

        // Settings for the report viewer
        HashMap<String,String> myparms = new HashMap<String,String> ();
        myparms.put("SERVLET_NAME_KEY", "frameset");
        myparms.put("FORMAT_KEY", "html");
url = "" URL(installURL, "/bchistory_report_rcp.rptdesign");
    catch (MalformedURLException e)
ModelEditorErrorHandler.showException(e, Activator.PLUGIN_ID);
        // bugfix, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=291551
        browser.addOpenWindowListener(new OpenWindowListener()
           public void open(WindowEvent event)

        if(new BCHistoryReport().getBCHistoryData().size() > 0)
            WebViewer.display(url.toString(), browser, myparms);

I did not find a solution to set urlReportPathPolicy  from my code. Can anybody give me a hint please ?

Sincerly Patrick
Also posted in the newgroups without success: