Summary: | Need more support for creating/deleting resources | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | James Moody <James_Moody> |
Component: | Compare | Assignee: | Andre Weinand <andre_weinand> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P1 | CC: | erich_gamma, jean-michel_lemieux |
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
James Moody
2002-02-14 17:13:01 EST
fixed in 20020305. No API change. Addition case: ICompareInput.copy(boolean) is called (on your DiffNode) where you can create and copy the resource. If the resource is not only copied but modified too, a call to ITypedElement.setContents() follows immediately after the call to copy(). Deletion case: ICompareInput.copy(boolean) is called where you can delete the resource. The default implementation of DiffNode.copy interprets the above cases and calls the replace and setContents methods on the affected ITypedElements. See org.eclipse.compare.internal.BufferedResourceNode for an example. |