diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/EMFCommandGEFAdapter.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/EMFCommandGEFAdapter.java | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/EMFCommandGEFAdapter.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/EMFCommandGEFAdapter.java deleted file mode 100644 index 456c1b888..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/EMFCommandGEFAdapter.java +++ /dev/null @@ -1,124 +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 org.eclipse.gef.commands.Command; - -/** - * This class is used to adapter EMF Command to GEF Command. - * - * @author xgzhang - * @version - */ -/*package*/ class EMFCommandGEFAdapter extends Command { - private org.eclipse.emf.common.command.Command emfCommand; - - /** - * @param emfCommand - */ - public EMFCommandGEFAdapter( - org.eclipse.emf.common.command.Command emfCommand) { - super(); - this.emfCommand = emfCommand; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#canExecute() - */ - public boolean canExecute() { - if (emfCommand == null) { - return false; - } - return emfCommand.canExecute(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#canUndo() - */ - public boolean canUndo() { - if (emfCommand == null) { - return false; - } - return emfCommand.canUndo(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#dispose() - */ - public void dispose() { - if (emfCommand == null) { - return; - } - emfCommand.dispose(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#execute() - */ - public void execute() { - if (emfCommand == null) { - return; - } - emfCommand.execute(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#getLabel() - */ - public String getLabel() { - if (emfCommand == null) { - return null; - } - return emfCommand.getLabel(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#redo() - */ - public void redo() { - if (emfCommand == null) { - return; - } - emfCommand.redo(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.gef.commands.Command#undo() - */ - public void undo() { - if (emfCommand == null) { - return; - } - emfCommand.undo(); - } - - /** - * - */ - org.eclipse.emf.common.command.Command getEMFCommand() { - return emfCommand; - } -} |