"merging" plugins [message #444816] |
Tue, 21 February 2006 15:16 |
cesar 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 |
|
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
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.04314 seconds