/*
 * Created on 2004-11-23
 *
 * Part of the Symbian development plug-in for Eclipse
 * Copyright (C) Mikołaj Zalewski, 2004
 */
package pl.zalewski.mikolaj.symbdev.utils;

import org.eclipse.swt.program.Program;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

/**
 * Listens to hyperlink event and lanuches the system browser when a link
 * is selected
 * 
 * @author mikolaj
 */
public class SystemBrowserHyperlinkListener extends HyperlinkAdapter {

    public SystemBrowserHyperlinkListener() {
        super();
    }
    
    /**
     * Launches the system browser.
     * 
     * @see HyperlinkListenerAdapter#linkActivated(HyperlinkEvent)
     */
    public void linkActivated(HyperlinkEvent e) {
        Program.launch(e.getHref().toString());
    }
}
