Examples of renameAlternative()


Examples of eu.scape_project.planning.model.Plan.renameAlternative()

            String name = oldName.trim();
            if (!name.equals(oldName)) {
                name = p.getAlternativesDefinition().createUniqueName(name);
                try {
                    log.debug("Renaming alternative {} to {}", oldName, name);
                    p.renameAlternative(a, name);
                    a.setDescription(a.getDescription() + "\r\n(PLATO: Alternative name normalization: '" + oldName
                        + "' to '" + name + "')");
                    fixed = true;
                } catch (PlanningException e) {
                    log.error("Failed to rename alternative for plan " + pid, e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.