Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Manifest editor is unable to find referenced resource in plugin.xml
Manifest editor is unable to find referenced resource in plugin.xml [message #464430] Mon, 05 March 2007 05:39 Go to next message
Eclipse UserFriend
Hi all,

We have the following definition for actionset extension points in our
plugin.xml:

...
<action
id="menu.edit.cancel.id"
class="com.farbeyond.core.actions.Edit"
definitionId="com.farbeyond.core.commands.edit.cancel"
icon="%menu.edit.cancel.icon"
disabledIcon="%menu.edit.cancel.icon.disabled"
label="%menu.edit.cancel.caption"
menubarPath="menu.edit.id/Group1"
toolbarPath="additions/slot.edit/Group1"
retarget="true"
tooltip="%menu.edit.cancel.tooltip"/>
...

And here's in our plugin.properties:

...
menu.edit.cancel.icon=icons/cancel.gif
menu.edit.cancel.icon.disabled=icons/disabledcancel.gif
menu.edit.cancel.caption=&Cancel
menu.edit.cancel.tooltip=Cancel
...

For above configuration our manifest editor gives warning 'Referenced
resource '%menu.edit.cancel.icon' in attribute 'icon' cannot be found'.

Similiar warning also exists for attribute 'disabledIcon', but not for
'label' and 'tooltip' attribute.

This happens after we migrate to Eclipse 3.2.2, but we didn't have this
message in 3.1.

Any help would be greatly appreciated.


Regards,

Setya
Re: Manifest editor is unable to find referenced resource in plugin.xml [message #464443 is a reply to message #464430] Tue, 06 March 2007 07:33 Go to previous messageGo to next message
Eclipse UserFriend
Well ? Has anybody experienced similiar problem ?

Regards,

Setya
Re: Manifest editor is unable to find referenced resource in plugin.xml [message #464444 is a reply to message #464430] Tue, 06 March 2007 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Setya wrote:
> Hi all,
>
> We have the following definition for actionset extension points in our
> plugin.xml:
>
> ..
> <action id="menu.edit.cancel.id"
> class="com.farbeyond.core.actions.Edit"
> definitionId="com.farbeyond.core.commands.edit.cancel"
> icon="%menu.edit.cancel.icon"
> disabledIcon="%menu.edit.cancel.icon.disabled"
> label="%menu.edit.cancel.caption"
> menubarPath="menu.edit.id/Group1"
> toolbarPath="additions/slot.edit/Group1"
> retarget="true"
> tooltip="%menu.edit.cancel.tooltip"/>
> ..
>
> And here's in our plugin.properties:
>
> ..
> menu.edit.cancel.icon=icons/cancel.gif
> menu.edit.cancel.icon.disabled=icons/disabledcancel.gif
> menu.edit.cancel.caption=&Cancel
> menu.edit.cancel.tooltip=Cancel
> ..
>
> For above configuration our manifest editor gives warning 'Referenced
> resource '%menu.edit.cancel.icon' in attribute 'icon' cannot be found'.
>
> Similiar warning also exists for attribute 'disabledIcon', but not for
> 'label' and 'tooltip' attribute.

Have you checked whether exactly these string keys do exist in
the corresponding plugin.properties file?
If yes: Do you use an internationalized RCP where you put these
strings into corresponding fragments?

Greetings from Bremen,

Daniel Krügler
Re: Manifest editor is unable to find referenced resource in plugin.xml [message #464452 is a reply to message #464444] Wed, 07 March 2007 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the response,

> Have you checked whether exactly these string keys do exist in
> the corresponding plugin.properties file?
> If yes: Do you use an internationalized RCP where you put these
> strings into corresponding fragments?

> Greetings from Bremen,

> Daniel Krügler

This happens after I migrate from Eclipse 3.1 to 3.2, I didn't change
anything in plugin.properties file and no I don't use int'l RCP.

Apparently, starts from 3.2, Eclipse forces us to put relative path to the
icon/disabledIcon attributes instead of reference to keys in
plugin.properties.

Regards,

Setya
Re: Manifest editor is unable to find referenced resource in plugin.xml [message #464459 is a reply to message #464452] Wed, 07 March 2007 10:09 Go to previous message
Eclipse UserFriend
Setya wrote:
> This happens after I migrate from Eclipse 3.1 to 3.2, I didn't change
> anything in plugin.properties file and no I don't use int'l RCP.
>
> Apparently, starts from 3.2, Eclipse forces us to put relative path to
> the icon/disabledIcon attributes instead of reference to keys in
> plugin.properties.

Ooops - I overlooked that you specified icon positions in the
plugin.properties file! AFAIK this behaviour was *never* guaranteed, so
you are forced to adapt these entries.

Best regards,

Daniel
Previous Topic:Document Viewer for multiple formats ?
Next Topic:ViewPart not listening to drop event on another ViewPart
Goto Forum:
  


Current Time: Mon Mar 17 01:19:27 EDT 2025

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

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

Back to the top