Skip to main content
summaryrefslogtreecommitdiffstats
blob: 64c7d13fe96713d90740d21c50f639804b4af239 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**********************************************************************
 * Copyright (c) 2005 Intel Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors: 
 * Intel Corporation - Initial API and implementation
 **********************************************************************/
package org.eclipse.cdt.managedbuilder.internal.macros;

import org.eclipse.cdt.managedbuilder.core.IBuildObject;
import org.eclipse.cdt.managedbuilder.core.IOption;
import org.eclipse.cdt.managedbuilder.macros.IFileContextData;
import org.eclipse.cdt.managedbuilder.macros.IOptionContextData;
import org.eclipse.core.runtime.IPath;

/**
 * This is a trivial implementation of the IFileContextData used internaly by the MBS
 * 
 * @since 3.0
 */
public class FileContextData implements IFileContextData {
	private IPath fInputFileLocation;
	private IPath fOutputFileLocation;
	private IOptionContextData fOptionContextData;
	
	public FileContextData(IPath inputFileLocation, IPath outputFileLocation, IOption option, IBuildObject optionParent){
		this(inputFileLocation, outputFileLocation, new OptionContextData(option,optionParent));
	}

	public FileContextData(IPath inputFileLocation, IPath outputFileLocation, IOptionContextData optionContextData){
		fInputFileLocation = inputFileLocation;
		fOutputFileLocation = outputFileLocation;
		fOptionContextData = optionContextData;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.cdt.managedbuilder.macros.IFileContextData#getInputFileLocation()
	 */
	public IPath getInputFileLocation() {
		return fInputFileLocation;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.cdt.managedbuilder.macros.IFileContextData#getOutputFileLocation()
	 */
	public IPath getOutputFileLocation() {
		return fOutputFileLocation;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.cdt.managedbuilder.macros.IFileContextData#getOption()
	 */
	public IOptionContextData getOptionContextData() {
		return fOptionContextData;
	}

}

Back to the top