From 74269187424750d88469931377f5cad33c308199 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Fri, 3 Dec 2004 20:37:40 +0000 Subject: [PATCH] Add in Resource/WorkingCopy locations. --- .../core/dom/ast/IASTResourceLocation.java | 21 ++++++++++++++++++ .../core/dom/ast/IASTWorkingCopyLocation.java | 22 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTResourceLocation.java create mode 100644 core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTWorkingCopyLocation.java diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTResourceLocation.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTResourceLocation.java new file mode 100644 index 00000000000..b841099d861 --- /dev/null +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTResourceLocation.java @@ -0,0 +1,21 @@ +/********************************************************************** + * Copyright (c) 2004 IBM 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: + * IBM - Initial API and implementation + **********************************************************************/ +package org.eclipse.cdt.core.dom.ast; + +import org.eclipse.core.resources.IResource; + +/** + * @author jcamelon + */ +public interface IASTResourceLocation extends IASTFileLocation { + + public IResource getResource(); +} diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTWorkingCopyLocation.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTWorkingCopyLocation.java new file mode 100644 index 00000000000..c72c5c0d4b4 --- /dev/null +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/dom/ast/IASTWorkingCopyLocation.java @@ -0,0 +1,22 @@ +/********************************************************************** + * Copyright (c) 2004 IBM 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: + * IBM - Initial API and implementation + **********************************************************************/ +package org.eclipse.cdt.core.dom.ast; + +import org.eclipse.cdt.core.model.IWorkingCopy; + +/** + * @author jcamelon + */ +public interface IASTWorkingCopyLocation extends IASTResourceLocation { + + public IWorkingCopy getWorkingCopy(); + +}