diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/CreateBendpointCommand.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/CreateBendpointCommand.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/CreateBendpointCommand.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/CreateBendpointCommand.java deleted file mode 100644 index 60df11d4a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/CreateBendpointCommand.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 Sybase, Inc. and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sybase, Inc. - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.jsf.facesconfig.ui.pageflow.command; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.jsf.facesconfig.ui.pageflow.PageflowMessages; -import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowFactory; -import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowLinkBendpoint; -import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowPackage; - -/** - * Create a new bend point command - * - */ -public class CreateBendpointCommand extends BendpointCommand { - /** - * Default constructor - */ - public CreateBendpointCommand() { - // Pageflow.Commands.CreateBendpointCommand.Label = Create Bendpoint - super(PageflowMessages.Pageflow_Commands_CreateBendpointCommand_Label); - - } - - /* - * (non-Javadoc) - * - * @see Command#execute() - */ - public void execute() { - Map registry = EPackage.Registry.INSTANCE; - String pageflowURI = PageflowPackage.eNS_URI; - PageflowPackage pageflowPackage = (PageflowPackage) registry - .get(pageflowURI); - PageflowFactory factory = pageflowPackage.getPageflowFactory(); - PageflowLinkBendpoint _newBendpoint = factory.createPFLinkBendpoint(); - - _newBendpoint.setRelativeDimensions(getFirstRelativeDimension(), - getSecondRelativeDimension()); - getPFLink().insertBendpoint(getIndex(), _newBendpoint); - super.execute(); - } - - /* - * (non-Javadoc) - * - * @see Command#undo() - */ - public void undo() { - super.undo(); - getPFLink().removeBendpoint(getIndex()); - } - -} |