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

org.protege.editor.owl.ui.action.CreateNewObjectAction Maven / Gradle / Ivy

package org.protege.editor.owl.ui.action;

import org.protege.editor.owl.ui.view.CreateNewTarget;

import java.awt.event.ActionEvent;


/**
 * Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 09-May-2007

*/ public class CreateNewObjectAction extends FocusedComponentAction { protected boolean canPerform() { return getCurrentTarget().canCreateNew(); } protected Class initialiseAction() { return CreateNewTarget.class; } public void actionPerformed(ActionEvent e) { getCurrentTarget().createNewObject(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy