Bug 122165 Publish template action should warn before overwriting existing template
Publish a template to the templates folder. Make a change to the template. Publish it again. Expected result: Warning dialog that you are about to overwrite the existing template. (Similar to File->Save As warning when overwriting an existing file.) Actual result: The template just gets written without a warning.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishTemplateAction.java
handle.setProperty( ModuleHandle.DESCRIPTION_PROP,
					page.getDescription( ) );
		if ( !page.getPreviewImagePath( ).equals( "" ) ) 
			handle.setIconFile( page.getPreviewImagePath( ) );
		
		
		handle.save( );
		handle.close( );
	}
	private void copyFile( String in, String out ) throws IOException
	{
		FileInputStream fis = new FileInputStream( in );
		FileOutputStream fos = new FileOutputStream( out );
		byte[] buf = new byte[1024];
		int i = 0;
		while ( ( i = fis.read( buf ) ) != -1 )
		{
			fos.write( buf, 0, i );
		}
		fis.close( );
		fos.close( );
	}
}
/**
 * PublishPage
 * 
 * @deprecated change to
 *             org.eclipse.birt.report.designer.internal.ui.wizards.WizardReportSettingPage
 */
class PublishPage extends WizardPage