path.addFileExtension( IReportEditorInput.FILE_EXTENTION );
path.addFileExtension( IReportEditorInput.DESIGN_FILE_EXTENTION );
	protected void okPressed( )	{		// Get new path.		IPath path = support.getFileLocationFullPath( )				.append( support.getFileName( ) );		// If the user does not supply a file extension and if the save		// as dialog was provided a default file name append the extension		// of the default filename to the new name		if ( !path.toOSString( ).endsWith( IReportEditorInput.FILE_EXTENTION ) )		{			path.addFileExtension( IReportEditorInput.FILE_EXTENTION );		}		// If the path already exists then confirm overwrite.		File file = path.toFile( );		if ( file.exists( ) )		{			String[] buttons = new String[]{					IDialogConstants.YES_LABEL,					IDialogConstants.NO_LABEL,					IDialogConstants.CANCEL_LABEL			};			String question = Messages.getFormattedString( "SaveAsDialog.overwriteQuestion", //$NON-NLS-1$					new Object[]{						path.toOSString( )					} );			MessageDialog d = new MessageDialog( getShell( ),					Messages.getString( "SaveAsDialog.Question" ), //$NON-NLS-1$					null,					question,					MessageDialog.QUESTION,					buttons,					0 );			int overwrite = d.open( );			switch ( overwrite )			{				case 0 : // Yes					break;				case 1 : // No					return;				case 2 : // Cancel				default :					cancelPressed( );					return;			}		}		// Store path and close.		result = path;		close( );	}