Bug 119331 Library - name space terminology and behavior
During BIRT 2.0 library feature review meeting the following change was decided. - Change the term namespace to 'prefix' - By default use the library name as the prefix ( namespace ); the dialog to input prefix should be prompted only if hte auto generated prefix is not unique.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ImportLibraryAction.java
{
				if(libraries[i].getFileName( ).equals(fileName))
					return true;
			}
		}
		return false;
	}
	private void addToPreference( String fileName )
	{
		String[] libraries = ReportPlugin.getDefault( )
				.getLibraryPreference( );
		String[] newLibraries = new String[libraries.length + 1];
		System.arraycopy( libraries,
				0,
				newLibraries,
				0,
				libraries.length );
		newLibraries[libraries.length] = fileName;
		ReportPlugin.getDefault( ).setLibraryPreference( newLibraries );
	}
	
	
	private static String getRelativedPath( String base, String child )
	{
		URI baseUri = new File( base ).getParentFile( ).toURI( );
		URI childUri = new File( child ).toURI( );
		return baseUri.relativize( childUri ).getPath( );
	}
}