Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 790142348ed18e093698e674b1198ca1fa741118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
 * Copyright (C) 2006, 2011 Siemens AG.
 * 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
 *******************************************************************************/

package org.eclipse.cdt.managedbuilder.core.tests;

import org.eclipse.cdt.managedbuilder.core.IOption;
import org.eclipse.cdt.managedbuilder.core.IOptionPathConverter;
import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;

/**
 * This minimalistic testing implementation does not actually change the path
 * It just converts to an IPath object
 * TestPathConverter1 is the converter which can be inherited from the toolchain
 */
public class TestPathConverter1 implements IOptionPathConverter {

	/* (non-Javadoc)
	 * @see org.eclipse.cdt.managedbuilder.core.IOptionPathConverter#convertToPlatformLocation(java.lang.String)
	 */
	@Override
	public IPath convertToPlatformLocation(String toolSpecificPath, IOption option, ITool tool) {
		Path path = new Path(toolSpecificPath);
		return path ;
	}

}

Back to the top