This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81470 - Exception on pasting of copied element
Summary: Exception on pasting of copied element
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 13:40 UTC by kozlov
Modified: 2006-08-07 23:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2006-07-31 13:40:55 UTC
Reproduced in build 060730.

To reproduce the bug:

- create a 'newpo' schema;
- copy 'shipTo' element;
- move 'shipTo' element down in sequence;
- paste an element.

Exception:

java.lang.IllegalStateException: Cannot copy component already removed from model
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.copy(AbstractDocumentComponent.java:585)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.copy(AbstractDocumentComponent.java:49)
	at
org.netbeans.modules.xml.schema.ui.nodes.ComponentPasteType$PasteTypeImpl.paste(ComponentPasteType.java:173)
	at org.openide.actions.PasteAction$ActionPT.actionPerformed(PasteAction.java:779)
	at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:80)
	at org.openide.actions.PasteAction$ActionPT.run(PasteAction.java:803)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Nathan Fiedler 2006-07-31 19:24:21 UTC
Fixed in release55 branch.

schema/schemaui/src/org/netbeans/modules/xml/schema/ui/nodes/ComponentPasteType.java;
new revision: 1.1.2.8; previous revision: 1.1.2.7
Comment 2 lchang 2006-08-07 23:04:29 UTC
You can now copy/paste elements in the WSDL Editor.