edu.stanford.smi.protege.action.CloseCurrentView 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.ui.*;
/**
*
* @author Ray Fergerson
*/
public class CloseCurrentView extends ProjectAction {
private static final long serialVersionUID = 48257985564189923L;
public CloseCurrentView() {
super(ResourceKey.CLOSE_VIEW);
}
public void actionPerformed(ActionEvent e) {
ProjectView view = getProjectView();
if (view != null) {
view.closeCurrentView();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy