debuggercdi/com.nokia.carbide.trk.support/src/com/nokia/carbide/trk/support/service/TracingInstallerProvider.java
author stechong
Wed, 20 Oct 2010 11:19:31 -0500
changeset 2165 2a7b5eccb0bc
parent 1622 f2409b13f0f8
permissions -rw-r--r--
Keeping PlatSim internal only.

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


package com.nokia.carbide.trk.support.service;

import java.util.List;

import org.eclipse.jface.operation.IRunnableContext;

import com.nokia.carbide.installpackages.InstallPackages.IServerData;
import com.nokia.carbide.remoteconnections.interfaces.AbstractPackageInstallerProvider;
import com.nokia.carbide.remoteconnections.interfaces.IRemoteAgentInstallerProvider;
import com.nokia.carbide.remoteconnections.interfaces.IService;

/**
 * @deprecated
 */
public class TracingInstallerProvider extends AbstractPackageInstallerProvider {

	public class ServerData implements IServerData {

	private static final String MASTER_FILE_NAME = "TracingPackages.xml"; //$NON-NLS-1$
		
		public String getMasterFileName() {
			return MASTER_FILE_NAME;
		}

		public IRemoteAgentInstallerProvider getRemoteAgentInstallerProvider() {
			return TracingInstallerProvider.this;
		}

	}

	private IService service;

	public TracingInstallerProvider(IService service) {
		this.service = service;
	}

	@Override
	public List<IRemoteAgentInstaller> getRemoteAgentInstallers(String familyName, String version) {
		return super.getRemoteAgentInstallers(familyName, version);
	}

	@Override
	public List<String> getSDKFamilyNames(IRunnableContext runnableContext) {
		return super.getSDKFamilyNames(runnableContext);
	}

	@Override
	public List<String> getVersions(String familyName) {
		return super.getVersions(familyName);
	}
	
	public IService getService() {
		return service;
	}

	@Override
	protected IServerData getServerData() {
		return new ServerData();
	}
	
}