diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/ConnectionCommandFactory.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/ConnectionCommandFactory.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/ConnectionCommandFactory.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/ConnectionCommandFactory.java deleted file mode 100644 index 8c7397c98..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/command/ConnectionCommandFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2006 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.Request; -import org.eclipse.gef.RequestConstants; - -/** - * The factory helps to create connection commands. - * - * @author hmeng - * - */ -public class ConnectionCommandFactory { - /** - * @param request - * @return the connection command for the request - */ - public static ConnectionCommand createCommand(Request request) { - ConnectionCommand command = null; - if (request.getType() == RequestConstants.REQ_CONNECTION_START - || request.getType() == RequestConstants.REQ_CONNECTION_END) { - command = new AddConnectionCommand(); - } else if (request.getType() == RequestConstants.REQ_RECONNECT_SOURCE - || request.getType() == RequestConstants.REQ_RECONNECT_TARGET) { - command = new ReconnectConnectionCommand(); - } else if (request.getType() == RequestConstants.REQ_DELETE) { - command = new DeleteConnectionCommand(); - } - return command; - } -} |