Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Problem to use the RCPMultiPageReportEditor in a RCP application
Problem to use the RCPMultiPageReportEditor in a RCP application [message #1064517] Wed, 19 June 2013 15:30
werner heisenberg is currently offline werner heisenbergFriend
Messages: 3
Registered: June 2013
Junior Member
Hi everybody !
I've a little problem to open a rptdesign file in a BIRT editor (RCPMultiPageReportEditor) in my own RCP application. I've got the following message :
Unable to create editor ID The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml. + java.lang.ClassNotFoundException:

here's my code in the handler which open the editor :
 IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
        IWorkbenchPage page = window.getActivePage();
        IWorkspace ws = ResourcesPlugin.getWorkspace();
        IProject project = ws.getRoot().getProject("External Files");
        IPath location = new Path("/src/stock_report.rptdesign");
        IFile file = project.getFile(location.lastSegment());
        IEditorDescriptor desc = PlatformUI.getWorkbench().getEditorRegistry().getDefaultEditor(file.getName());
        File fileToOpen = new File("bob.rptdesign");
        try {
        } catch (IOException e1) {
            // TODO Auto-generated catch block
        try {
            page.openEditor(new ReportEditorInput(fileToOpen), IReportEditorContants.DESIGN_EDITOR_ID);
        } catch (PartInitException e) {
            // TODO Auto-generated catch block

the IReportEditorContants.DESIGN_EDITOR_ID is in the package and = String DESIGN_EDITOR_ID = "";

here's my code in the plugin.xml :

the .jar (where we can find RCPMultiPageReportEditor) is added in the class path of the plugin, the package is added in the imported packages , and the plugin is added in the Required plug-ins.

Anyone have ever tried that, or at least see where is the problem? Any help would be most welcome.
Previous Topic:populate a textbox
Next Topic:Maximo-BIRT Previous or Next Record
Goto Forum:

Current Time: Sat Dec 07 12:29:09 GMT 2019

Powered by FUDForum. Page generated in 0.02282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top