blob: 85048ca991ec57cbb7f981113fc74d22aed52c5f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.internal.consumption.ui.extension;
import org.eclipse.wst.command.env.core.data.DataMappingRegistry;
import org.eclipse.wst.command.env.core.fragment.SequenceFragment;
import org.eclipse.wst.command.env.core.fragment.SimpleFragment;
import org.eclipse.wst.ws.internal.extensions.AssembleClientFragment;
import org.eclipse.wst.ws.internal.extensions.DeployClientFragment;
import org.eclipse.wst.ws.internal.extensions.DevelopClientFragment;
import org.eclipse.wst.ws.internal.extensions.InstallClientFragment;
import org.eclipse.wst.ws.internal.extensions.RunClientFragment;
public class ClientRootFragment extends SequenceFragment
{
public ClientRootFragment()
{
add( new SimpleFragment( new PreClientDevelopCommand(), "" ) );
add( new DevelopClientFragment() );
add( new SimpleFragment( new PreClientAssembleCommand(), "" ) );
add( new AssembleClientFragment() );
add( new SimpleFragment( new PreClientDeployCommand(), "" ) );
add( new DeployClientFragment() );
add( new SimpleFragment( new PreClientInstallCommand(), "" ) );
add( new InstallClientFragment() );
add( new SimpleFragment( new PreClientRunCommand(), "" ) );
add( new RunClientFragment() );
}
public void registerDataMappings(DataMappingRegistry registry)
{
registry.addMapping( PreClientDevelopCommand.class, "WebService", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Environment", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Context", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Selection", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Module", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Ear", DevelopClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "WebService", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Environment", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Context", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Selection", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Module", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Ear", AssembleClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "WebService", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Environment", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Context", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Selection", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Module", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Ear", DeployClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "WebService", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Environment", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Context", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Selection", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Module", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Ear", InstallClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "WebService", RunClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Environment", RunClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Context", RunClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Selection", RunClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Module", RunClientFragment.class );
registry.addMapping( PreClientDevelopCommand.class, "Ear", RunClientFragment.class );
}
}