String outputPath = PLUGIN_PATH +getClassFolder( ) + OUTPUT_FOLDER;
String outputPath = getClassFolder( ) + OUTPUT_FOLDER;
	public void testNeedsSave( ) throws Exception	{		String outputPath = PLUGIN_PATH +getClassFolder( ) + OUTPUT_FOLDER; //$NON-NLS-1$		File outputFolder = new File( outputPath );		if ( !outputFolder.exists( ) && !outputFolder.mkdir( ) )		{			throw new IOException( "Can not create the output folder" ); //$NON-NLS-1$		}		ElementFactory factory = new ElementFactory( design );		GridHandle grid = factory.newGridItem( "new grid" ); //$NON-NLS-1$		SlotHandle slot = designHandle.getBody( );		slot.add( grid );		assertTrue( designHandle.needsSave( ) );		designHandle.saveAs( outputPath + "ReportDesignTestNew.xml" ); //$NON-NLS-1$		assertFalse( designHandle.needsSave( ) );		grid = factory.newGridItem( "new second grid" ); //$NON-NLS-1$		slot.add( grid );		assertTrue( designHandle.needsSave( ) );		slot.dropAndClear( grid );		assertTrue( designHandle.needsSave( ) );		ActivityStack as = design.getActivityStack( );		as.undo( );		assertTrue( designHandle.needsSave( ) );		as.undo( );		assertFalse( designHandle.needsSave( ) );		as.undo( );		assertFalse( as.canUndo( ) );		assertTrue( designHandle.needsSave( ) );	}