Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] patch for 57968 (class wizard fails to release working copies)

This patch ensures the working copies are destroyed once committed.

-Chris

Index: src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java,v
retrieving revision 1.13
diff -u -r1.13 NewClassWizardPage.java
--- src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java	26 Feb 2004 19:30:35 -0000	1.13
+++ src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java	8 Apr 2004 21:19:01 -0000
@@ -587,6 +587,7 @@
 				}
 				//createdClass= (IStructure)headerWC.getElement(getNewClassName());				
 				createdClass= headerWC.getElement(getNewClassName());				
+				headerWC.destroy();
 			}
 			if(parentBodyTU != null){
 				String body = constructBodyFileContent(lineDelimiter);
@@ -596,6 +597,7 @@
 					bodyWC.reconcile();
 					bodyWC.commit(true, monitor);
 				}
+				bodyWC.destroy();
 			}
 		
 			return true;	

Back to the top