
edu.stanford.smi.protege.action.DisplayHtml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protege Show documentation
Show all versions of protege Show documentation
Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.
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