/* * Project Info: http://jcae.sourceforge.net * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * (C) Copyright 2014, by Airbus Group SAS */ package org.jcae.netbeans.mesh; import java.util.Collections; import java.util.List; import org.openide.awt.ActionID; import org.openide.awt.ActionReference; import org.openide.awt.ActionRegistration; /** * * @author Jerome Robert */ @ActionID(id = "org.jcae.netbeans.mesh.RandomAction", category = "jCAE") @ActionRegistration(lazy = false, displayName = "Group random triangles") @ActionReference(path = "Loaders/text/mesh+xml/Actions", position = 46) public class RandomAction extends AlgoAction{ @Override protected String getCommand() { return "random_triangles"; } @Override protected List<String> getArguments(AmibeDataObject node) { return Collections.singletonList(node.getMeshDirectory()); } @Override public String getName() { return "Group random triangles"; } }