Skip to main content



      Home
Home » Modeling » EMF » Missing resource for XSDWildCard
Missing resource for XSDWildCard [message #398466] Fri, 10 February 2006 16:18 Go to next message
Eclipse UserFriend
I have a CreateChildCommand for a New WildCard. When i try to call the getImage method, it gives an exception:
The image resource 'full/obj16/XSDWildcard' could not be located
at org.eclipse.emf.common.EMFPlugin.delegatedGetImage(EMFPlugin .java:323)

at org.eclipse.emf.common.EMFPlugin.getImage(EMFPlugin.java:266 )

at org.eclipse.xsd.provider.XSDItemProviderAdapter.getCreateChi ldImage(XSDItemProviderAdapter.java:960)

at org.eclipse.emf.edit.command.CreateChildCommand.getImage(Cre ateChildCommand.java:334)

I'm using the emf standalone integration build
emf-sdo-xsd-Standalone-I200602090000

I looked inside the emf.edit zip file and there are no images named XSDWildCard. There's only XSDWildCardAttribute and XSDWildCardElement
Re: Missing resource for XSDWildCard [message #398467 is a reply to message #398466] Fri, 10 February 2006 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Frank,

Please open a bugzilla. Does this happen with the Sample XML Schema Editor?


frank wrote:
> I have a CreateChildCommand for a New WildCard. When i try to call the getImage method, it gives an exception:
> The image resource 'full/obj16/XSDWildcard' could not be located
> at org.eclipse.emf.common.EMFPlugin.delegatedGetImage(EMFPlugin .java:323)
>
> at org.eclipse.emf.common.EMFPlugin.getImage(EMFPlugin.java:266 )
>
> at org.eclipse.xsd.provider.XSDItemProviderAdapter.getCreateChi ldImage(XSDItemProviderAdapter.java:960)
>
> at org.eclipse.emf.edit.command.CreateChildCommand.getImage(Cre ateChildCommand.java:334)
>
> I'm using the emf standalone integration build
> emf-sdo-xsd-Standalone-I200602090000
>
> I looked inside the emf.edit zip file and there are no images named XSDWildCard. There's only XSDWildCardAttribute and XSDWildCardElement
>
Re: Missing resource for XSDWildCard [message #398495 is a reply to message #398467] Mon, 13 February 2006 10:48 Go to previous messageGo to next message
Eclipse UserFriend
No, it doesn't happen with the sample xml schema editor. But since I'm using the standalone version, maybe the image was missed when creating the package?
I have created the bugzilla entry. bug#127478
Re: Missing resource for XSDWildCard [message #398496 is a reply to message #398467] Mon, 13 February 2006 10:48 Go to previous messageGo to next message
Eclipse UserFriend
No, it doesn't happen with the sample xml schema editor. But since I'm using the standalone version, maybe the image was missed when creating the package?
I have created the bugzilla entry. bug#127478
Re: Missing resource for XSDWildCard [message #398498 is a reply to message #398496] Mon, 13 February 2006 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Frank,

There isn't such an image, nor should there be. So, as I said in the
bugzilla, I'll need to understand how your code path got you to this point.


frank wrote:

>No, it doesn't happen with the sample xml schema editor. But since I'm using the standalone version, maybe the image was missed when creating the package?
>I have created the bugzilla entry. bug#127478
>
>
Re: Missing resource for XSDWildCard [message #398504 is a reply to message #398498] Mon, 13 February 2006 13:11 Go to previous messageGo to next message
Eclipse UserFriend
When s is an instance of XSDParticleImpl in the following code the error occurs. Specifically, when I trace into it, the error occurs on the instanceof ccc with the label "New Wildcard"
XSDConcreteComponent s = (XSDConcreteComponent)((DefaultMutableTreeNode)selectedNode.getParent()).getUserObject();
ItemProviderAdapter sipa = (ItemProviderAdapter)m_ipaf.createAdapter(s);
Collection sd = sipa.getNewChildDescriptors(s, m_editingDomain, null);
if(sd.size() > 0) {
  JMenu newSibling = new JMenu("New Sibling");
  Iterator iter = sd.iterator();
  CommandParameter cp = null;
  while (iter.hasNext()) {
    cp = (CommandParameter)iter.next();
    CreateChildCommand ccc = new CreateChildCommand(m_editingDomain, s, cp.getEStructuralFeature(), cp.getEValue(), cd, ipa);
    Object image = ccc.getImage();
  }

}
Re: Missing resource for XSDWildCard [message #398506 is a reply to message #398504] Mon, 13 February 2006 13:36 Go to previous messageGo to next message
Eclipse UserFriend
Frank,

Given that a particle can't exist without a child element, wildcard, or
model group, I expect the particle and its child to be created
simultaneously as our sample editor does. Do you have code that creates
a "bare" particle? I don't think that will work so well and we'd never
expect to find a model in this state...


frank wrote:

>When s is an instance of XSDParticleImpl in the following code the error occurs. Specifically, when I trace into it, the error occurs on the instanceof ccc with the label "New Wildcard"
>
>XSDConcreteComponent s = (XSDConcreteComponent)((DefaultMutableTreeNode)selectedNode.getParent()).getUserObject();
>ItemProviderAdapter sipa = (ItemProviderAdapter)m_ipaf.createAdapter(s);
>Collection sd = sipa.getNewChildDescriptors(s, m_editingDomain, null);
>if(sd.size() > 0) {
>  JMenu newSibling = new JMenu("New Sibling");
>  Iterator iter = sd.iterator();
>  CommandParameter cp = null;
>  while (iter.hasNext()) {
>    cp = (CommandParameter)iter.next();
>    CreateChildCommand ccc = new CreateChildCommand(m_editingDomain, s, cp.getEStructuralFeature(), cp.getEValue(), cd, ipa);
>    Object image = ccc.getImage();
>  }
>

>}
>
>
Re: Missing resource for XSDWildCard [message #398512 is a reply to message #398506] Mon, 13 February 2006 14:07 Go to previous messageGo to next message
Eclipse UserFriend
No, the particle has a element as a child
Re: Missing resource for XSDWildCard [message #398513 is a reply to message #398512] Mon, 13 February 2006 14:42 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040206070108040800070400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Frank,

If the particle has an element as the child, it can't also have a
wildcard as the child, so creating a child wildcard is not making much
sense. I really need a meaning set of steps to reproduce your problem
or I'll be forced to return it. After all, if I can't make the problem
happen, I won't know if any change I make fixes it. I could blindly add
more cases to the following to handle XSDParticle and XSDAttributeUse,
but I need to be sure that makes sense and fixes a meaningful problem.

private String getQualifier(Object parent, EReference feature,
Object child)
{
///

* else if (child instanceof XSDWildcard)
{
if (parent instanceof XSDAttributeGroupDefinition ||
parent instanceof XSDComplexTypeDefinition)
{
qualifier = "attribute";
}
else if (parent instanceof XSDModelGroup)
{
qualifier = "element";
}
}*



frank wrote:

>No, the particle has a element as a child
>
>


--------------040206070108040800070400
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Frank,<br>
<br>
If the particle has an element as the child, it can't also have a
wildcard as the child, so creating a child wildcard is not making much
sense.&nbsp; I really need a meaning set of steps to reproduce your problem
or I'll be forced to return it. After all, if I can't make the problem
happen, I won't know if any change I make fixes it.&nbsp; I could blindly
add more cases to the following to handle XSDParticle and
XSDAttributeUse, but I need to be sure that makes sense and fixes a
meaningful problem.<br>
<blockquote><small>private String getQualifier(Object parent,
EReference feature, Object child)</small><br>
<small>{</small><br>
<small>&nbsp;&nbsp; ///</small><br>
<br>
<b><small>&nbsp;&nbsp;&nbsp; else if (child instanceof XSDWildcard)</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (parent instanceof XSDAttributeGroupDefinition ||</small><br>
<small> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; parent instanceof XSDComplexTypeDefinition)</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</small><br>
<small> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; qualifier = "attribute";</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (parent instanceof XSDModelGroup)</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</small><br>
<small> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; qualifier = "element";</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</small><br>
<small>&nbsp;&nbsp;&nbsp; }</small></b><br>
</blockquote>
<br>
<br>
frank wrote:
<blockquote
cite="mid30484895.1139857684445.JavaMail.root@cp1.javalobby.org"
type="cite">
<pre wrap="">No, the particle has a element as a child
</pre>
</blockquote>
<br>
</body>
</html>

--------------040206070108040800070400--
Re: Missing resource for XSDWildCard [message #398514 is a reply to message #398513] Mon, 13 February 2006 16:44 Go to previous messageGo to next message
Eclipse UserFriend
The current case is very integrated with my whole program, so I cannot extract a compilable example from it. But i will try to write a seperate test program and see if the error occurs.
Re: Missing resource for XSDWildCard [message #734389 is a reply to message #398514] Fri, 07 October 2011 11:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi All,

As I am facing problem in creating a working exe file for a plugin project.
I have created a plugin project and I was trying to create an executable of it but after creating when I launch exe, I get the error which says that it is Missing resource "not able to locate an image resource".
Please find the image that shows the error when I launch exe file.

Regards,
Vinay
  • Attachment: EXE error.JPG
    (Size: 252.49KB, Downloaded 188 times)
Re: Missing resource for XSDWildCard [message #734412 is a reply to message #734389] Fri, 07 October 2011 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Does this image exist in your generated *.edit project?

On 07/10/2011 8:42 AM, vinny503 wrote:
> Hi All,
>
> As I am facing problem in creating a working exe file for a plugin project.
> I have created a plugin project and I was trying to create an executable of it but after creating when I launch exe, I get the error which says that it is Missing resource "not able to locate an image resource".
> Please find the image that shows the error when I launch exe file.
>
> Regards,
> Vinay
Re: Missing resource for XSDWildCard [message #734818 is a reply to message #734412] Mon, 10 October 2011 00:59 Go to previous messageGo to next message
Eclipse UserFriend
Yes.

Regards,
Vinay
Re: Missing resource for XSDWildCard [message #734823 is a reply to message #734818] Mon, 10 October 2011 01:26 Go to previous messageGo to next message
Eclipse UserFriend
Does the editor plugin delegate to the bundle that contains the image?

On 10/10/2011 6:59 AM, vinny503 wrote:
> Yes.
>
> Regards,
> Vinay
Re: Missing resource for XSDWildCard [message #734827 is a reply to message #734823] Mon, 10 October 2011 02:01 Go to previous messageGo to next message
Eclipse UserFriend
Okay I just resolved it.
The problem was with the extension of the image. It was .GIF, I changed it to .gif...
But when I run it in another system it says that "The publisher could not be verified" and when I click on run button nothing happens.

Regards,
Vinay

[Updated on: Mon, 10 October 2011 03:16] by Moderator

Re: Missing resource for XSDWildCard [message #734878 is a reply to message #734827] Mon, 10 October 2011 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I am able to create a working exe file of my plugin project.
But when I try to run it in another PC, I found the Runtime Exception error.
Please find the attached error text file.

Regards,
Vinay

Re: Missing resource for XSDWildCard [message #734884 is a reply to message #734878] Mon, 10 October 2011 05:41 Go to previous message
Eclipse UserFriend
Vinay,

I don't know anything about creating an exe.


On 10/10/2011 11:25 AM, vinny503 wrote:
> Hi
>
> I am able to create a working exe file of my plugin project.
> But when I try to run it in another PC, I found the Runtime Exception error.
> Please find the attached error text file.
>
> Regards,
> Vinay
>
>
Previous Topic:EMF & TableViewers
Next Topic:Retain the expanded state of CNF TreeViewer using AdapterFactoryContentProvider
Goto Forum:
  


Current Time: Fri Jul 04 11:55:08 EDT 2025

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

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

Back to the top