|
|
|
|
|
Re: Missing resource for XSDWildCard [message #398504 is a reply to message #398498] |
Mon, 13 February 2006 18:11 |
frank chen Messages: 63 Registered: July 2009 |
Member |
|
|
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 18:36 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
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();
> }
>
>}
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: Missing resource for XSDWildCard [message #398513 is a reply to message #398512] |
Mon, 13 February 2006 19:42 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
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. 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.<br>
<blockquote><small>private String getQualifier(Object parent,
EReference feature, Object child)</small><br>
<small>{</small><br>
<small> ///</small><br>
<br>
<b><small> else if (child instanceof XSDWildcard)</small><br>
<small> {</small><br>
<small> if (parent instanceof XSDAttributeGroupDefinition ||</small><br>
<small> parent instanceof XSDComplexTypeDefinition)</small><br>
<small> {</small><br>
<small> qualifier = "attribute";</small><br>
<small> }</small><br>
<small> else if (parent instanceof XSDModelGroup)</small><br>
<small> {</small><br>
<small> qualifier = "element";</small><br>
<small> }</small><br>
<small> }</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--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
|
Re: Missing resource for XSDWildCard [message #734884 is a reply to message #734878] |
Mon, 10 October 2011 09:41 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
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
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04220 seconds