@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals(NEXT)) {
			this.location.setSelectedIndex(this.history_location + 1);
		} else if (e.getActionCommand().equals(PREV)) {
			this.location.setSelectedIndex(this.history_location - 1);
		} else if (e.getActionCommand().equals(LOCATION)) {
			Object path = this.location.getSelectedItem();
			
			try {
				if (path instanceof MyListItemWrapper) {
					int index = this.location.getSelectedIndex();
					if (index >= 0) {
						setHistoryLocation(index);
					}
					
					this.viewer.setPage(((MyListItemWrapper) path).url);
				} else if (path instanceof String) {
					URL url = new URL((String) path);
					
					addURL(url);
					this.viewer.setPage(url);
				}
			} catch (MalformedURLException ex) {
				System.out.println("MalformedURLException: " + ex.getMessage());
			} catch (IOException ex) {
				System.out.println("IOException: " + ex.getMessage());
			}
		}
	}