diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java')
-rw-r--r-- | core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java index 58358b12c8a..95235d43d86 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 QNX Software Systems and others. + * Copyright (c) 2000, 2008 QNX Software Systems 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 @@ -8,10 +8,13 @@ * Contributors: * QNX Software Systems - Initial API and implementation * Markus Schorn (Wind River Systems) + * IBM Corporation - EFS support *******************************************************************************/ package org.eclipse.cdt.core.model; +import java.net.URI; + import org.eclipse.cdt.core.CCProjectNature; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.CProjectNature; @@ -75,11 +78,19 @@ public class CoreModel { } /** - * Creates a translation form and IPath. Returns null if not found. + * Creates a translation from an IPath. Returns null if not found. */ public ITranslationUnit createTranslationUnitFrom(ICProject cproject, IPath path) { return manager.createTranslationUnitFrom(cproject, path); } + + /** + * Creates a translation from a location URI. Returns null if not found. + * @since 5.0 + */ + public ITranslationUnit createTranslationUnitFrom(ICProject cproject, URI locationURI) { + return manager.createTranslationUnitFrom(cproject, locationURI); + } /** * Returns the C model element corresponding to the given handle identifier |