String xmlPath = getReportPath( ).replaceFirst( ".rptdesign", ".xml" ); File f = new File( xmlPath ); chkBoxCheetSheet.setEnabled( f.exists( ) );
for ( Iterator iter = ReportPlugin.getDefault( ) .getReportExtensionNameList( ) .iterator( ); iter.hasNext( ); ) { String extensionName = "." + iter.next( ); if ( getReportPath( ).endsWith( extensionName ) ) { String xmlPath = getReportPath( ).substring( 0, getReportPath( ).length( ) - extensionName.length( ) ) + ".xml"; File f = new File( xmlPath ); chkBoxCheetSheet.setEnabled( f.exists( ) ); return; } }
	protected void updateChkBox( )	{		String xmlPath = getReportPath( ).replaceFirst( ".rptdesign", ".xml" ); //$NON-NLS-1$ //$NON-NLS-2$		File f = new File( xmlPath );		chkBoxCheetSheet.setEnabled( f.exists( ) );	}