KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > launchConfigurations > RemoteAntProcessFactory


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ant.internal.ui.launchConfigurations;
13
14 import java.util.HashMap JavaDoc;
15 import java.util.Map JavaDoc;
16
17 import org.eclipse.debug.core.ILaunch;
18 import org.eclipse.debug.core.IProcessFactory;
19 import org.eclipse.debug.core.model.IProcess;
20
21 public class RemoteAntProcessFactory implements IProcessFactory {
22
23     /* (non-Javadoc)
24      * @see org.eclipse.debug.core.IProcessFactory#newProcess(org.eclipse.debug.core.ILaunch, java.lang.Process, java.lang.String, java.util.Map)
25      */

26     public IProcess newProcess(ILaunch launch, Process JavaDoc process, String JavaDoc label, Map JavaDoc attributes) {
27         if (attributes == null) {
28             attributes= new HashMap JavaDoc(1);
29         }
30         attributes.put(IProcess.ATTR_PROCESS_TYPE, IAntLaunchConfigurationConstants.ID_ANT_PROCESS_TYPE);
31         return new RemoteAntRuntimeProcess(launch, process, label, attributes);
32     }
33 }
34
Popular Tags