All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.smi.protege.action.DisplayHtml Maven / Gradle / Ivy

Go to download

Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.

There is a newer version: 3.5.1
Show newest version
package edu.stanford.smi.protege.action;

import java.awt.event.*;

import edu.stanford.smi.protege.resource.*;
import edu.stanford.smi.protege.util.*;

/**
 * Display a URL in a top level browser.  We do not use the built-in html display capabilities since they can't render
 * all HTML. We just delegate to a browser and let them handle it.
 * 
 * @author    Ray Fergerson 
 */
public class DisplayHtml extends StandardAction {
    private static final long serialVersionUID = -2984843815869687450L;
    private String url;

    public DisplayHtml(String text, String url) {
        super(text);
        this.url = url;
    }
    
    public DisplayHtml(ResourceKey key, String url) {
        super(key);
        this.url = url;
    }

    public void actionPerformed(ActionEvent event) {
        SystemUtilities.showHTML(url);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy