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