Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » "merging" plugins
"merging" plugins [message #444816] Tue, 21 February 2006 15:16 Go to next message
cesar is currently offline cesarFriend
Messages: 20
Registered: July 2009
Junior Member
Hi,

I have an RCP application to which I'd like to add a browser view. As a
preliminary test, I tried to use an existing view from another RCP (the RCP
browser example: http://wiki.eclipse.org/index.php/RCP_Browser_Example).
So, I:
-added the browser plugin to the Dependencies;
-added an extension in the plugin.xml to create another view and used the
BrowserView as the class parameter;

However, the sole fact of adding the browser plugin to the dependencies list
raises the following error, when I try to execute my RCP (regardless of the
existence of the new view, i.e. I can even remove the newly created
extension pointing to the BrowserView class and the error persists):

!ENTRY org.eclipse.osgi 2006-02-21 15:48:20.544
!MESSAGE Bundle update@workspace/library.editor/ [95] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2006-02-21 15:48:20.544
!MESSAGE Missing required bundle org.eclipse.ui.examples.rcp.browser_0.0.0.

So what should I do to make it find the bundle? I thought that adding the
plugin to the dependencies list were enough.


In a desperate move, I tried to mode the BrowserView class to the same
package of the rest of my plugin but this obliged me to move also
BrowserPlugin, IBrowserConstants and ISecondaryPart. Even not expecting
anything from this (dumb) try, I went on , only to get the message:

Unable to create view: Plug-in "library.editor" was unable to instantiate
class "org.eclipse.example.library.presentation.BrowserView".


Can anybody tell me a complete recipe to use this browser view with another
RCP?

Thanks in advance,

Cesar
Re: "merging" plugins [message #444871 is a reply to message #444816] Wed, 22 February 2006 13:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

cesar wrote:
> Hi,
>
> I have an RCP application to which I'd like to add a browser view. As a
> preliminary test, I tried to use an existing view from another RCP (the RCP
> browser example: http://wiki.eclipse.org/index.php/RCP_Browser_Example).
> So, I:
> -added the browser plugin to the Dependencies;
> -added an extension in the plugin.xml to create another view and used the
> BrowserView as the class parameter;
>
> However, the sole fact of adding the browser plugin to the dependencies list
> raises the following error, when I try to execute my RCP (regardless of the
> existence of the new view, i.e. I can even remove the newly created
> extension pointing to the BrowserView class and the error persists):
>
> !ENTRY org.eclipse.osgi 2006-02-21 15:48:20.544
> !MESSAGE Bundle update@workspace/library.editor/ [95] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi 2006-02-21 15:48:20.544
> !MESSAGE Missing required bundle org.eclipse.ui.examples.rcp.browser_0.0.0.
>

You have to add all of the required plugins to the dependancy list in
the MANIFEST.MF ... that's so when it's exported the runtime is correct.

You also have to update your launch config within eclipse, so that all
of the required plugins are listed (an easy way to do that is the edit
the launch config and choose Add Required Plugins from the Plugins tab).

Later,
PW


Previous Topic:3.2m5 "os x" plugin dir?
Next Topic:RCP product
Goto Forum:
  


Current Time: Tue Nov 05 11:07:01 GMT 2024

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

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

Back to the top