@SuppressWarnings("unchecked")
	private void loadViewers() {
		// add filters in the filters folder
		File filtersFolder = new File("viewers");
		File [] classes = filtersFolder.listFiles(new FilenameFilter () {
			public boolean accept(File dir, String name) {
				return name.endsWith(".class");
			}
		});
		for (File className : classes) {
			try {
				String s = className.getName();
				Class<Viewer> viewerClass = (Class<Viewer>) Class.forName(s.substring(0, s.lastIndexOf('.')));
				Viewer viewer = viewerClass.newInstance();
				for (String mimeType : viewer.getSupportedViewerMimeTypes())
					viewers.put(mimeType+viewer.getWidgetToolkit(), viewerClass);
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
				// Do nothing! Just ignore the class;
			} catch (SecurityException e) {
				// Do nothing! Just ignore the class;
			} catch (IllegalArgumentException e) {
				// Do nothing! Just ignore the class;
			} catch (InstantiationException e) {
				// Do nothing! Just ignore the class;
			} catch (IllegalAccessException e) {
				// Do nothing! Just ignore the class;
			} catch (ClassCastException e) {
				// Do nothing! Just ignore the class;
			}	
		}

	}