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

edu.stanford.smi.protege.action.ManageIncludedProjectsAction 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 javax.swing.*;

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

/**
 * TODO Class Comment
 *
 * @author Ray Fergerson 
 */
public class ManageIncludedProjectsAction extends LocalProjectAction {
    private static final long serialVersionUID = 7666063531709645920L;

    public ManageIncludedProjectsAction() {
        super(ResourceKey.PROJECT_MANAGE_INCLUDED);
    }

    public void actionPerformed(ActionEvent event) {
        JComponent parent = getMainPanel();
        Project project = getProjectManager().getCurrentProject();
        if (project != null) {
            if (project.getProjectURI() == null) {
                ModalDialog.showMessageDialog(parent, "Cannot include projects until project has been saved");
            } else {
                String title = LocalizedText.getText(ResourceKey.PROJECT_MANAGE_INCLUDED_DIALOG);
                ModalDialog.showDialog(parent, new ManageIncludedProjectsPanel(project), title,
                        ModalDialog.MODE_OK_CANCEL);
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy