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

edu.stanford.smi.protege.action.CloseCurrentView 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.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