@Override
	public void setPage(HelpViewer viewer) {
		if(isDirectory){
			String header = "<html><body><ul>";
			String footer = "</ul></body></html>";
			StringBuffer content = new StringBuffer();
			File[] children = base.listFiles();
			if((children != null)&&(children.length>0)){
				for(int i=0;i<children.length;++i){
					content.append("<li>"+children[i].getName()+"</li>");
				}
			}
			viewer.set(header+content.toString()+footer);
		}else{
		FileReader stream;
		try {
			stream = new FileReader(base);
		char[] buffer = new char[10240];
		StringBuffer fileBuffer = new StringBuffer();
		int read = 0;
		while((read = stream.read(buffer)) >0){
			fileBuffer.append(buffer, 0, read);
		}
		String file = fileBuffer.toString();

		Pattern  lt = Pattern.compile("<");
		Matcher match = lt.matcher(file);
		file = match.replaceAll("&lt;");

		Pattern  gt = Pattern.compile(">");
		match = gt.matcher(file);
		file = match.replaceAll("&gt;");

		Pattern  amp = Pattern.compile("&");
		match = amp.matcher(file);
		file = match.replaceAll("&amp;");	
		viewer.set("<html><body><pre>"+file+"</pre></body></html>");
		} catch (FileNotFoundException e) {
			ResourceBundle bundle =ResourceBundle.getBundle("Translations");
			viewer.set(String.format(bundle.getString("html.body.error.help.file.s.not.found.body.html1"),base.getAbsolutePath()));
			e.printStackTrace();
		} catch (IOException e) {
			ResourceBundle bundle =ResourceBundle.getBundle("Translations");
			viewer.set(String.format(bundle.getString("html.body.error.help.file.s.had.an.io.error.body.html1"),base.getAbsolutePath()));
			e.printStackTrace();
		}
		}
	}