RCP - Integrating BIRT [message #1444258] |
Mon, 13 October 2014 21:49 |
Jose Miranda Messages: 1 Registered: October 2014 |
Junior Member |
|
|
I am working on an e4 RCP Plugin project in which I am trying to integrate BIRT into. I am using the Luna all in one IDE that has all the required plugins to work with BIRT (Suggested on your site). I have successfully created a report and am able to preview it in a separate plugin . I have stated a dependency to this plugin that houses the report in my feature (based on features not plugins) and in my main project which contains my view. I have the following code in my post construct method in the part in which I wish to load the report:
@PostConstruct
public void postConstruct(Composite parent) {
String path = "";
URL url =null;
try {
Bundle bundle = Platform.getBundle("plugin where my report is located");
url = FileLocator.find(bundle, new Path("name of the report"), null);
path = FileLocator.toFileURL(url).getPath();
} catch (MalformedURLException me) {
System.out.println(me.getStackTrace());
} catch (IOException e) {
e.printStackTrace();
}
Browser browser = new Browser(parent, SWT.NONE);
WebViewer.display(path, WebViewer.HTML, browser, "frameset");
}
I have added import org.eclipse.birt.report.viewer.utilities.WebViewer as a required dependency. When I try to launch the application from the product I get the following error:
!MESSAGE Could not resolve module: com.aa.flighthub.rcp.gui [82]
Unresolved requirement: Require-Bundle: org.eclipse.birt.report.viewer; bundle-version="4.4.0"
!ENTRY org.eclipse.osgi 4 0 2014-10-13 16:31:39.184
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
Why can't the IDE resolve the dependency is the BIRT plugin's are installed?
|
|
|
Powered by
FUDForum. Page generated in 0.06362 seconds