mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
2004-08-31 Alain Magloire
Fix for 72198 * model/org/eclipse/cdt/internal/core/ExternalTranslationUnit.java * model/org/eclipse/cdt/internal/core/TranslationUnit.java
This commit is contained in:
parent
ac695f59eb
commit
5aaece1941
3 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-08-31 Alain Magloire
|
||||||
|
|
||||||
|
Fix for 72198
|
||||||
|
* model/org/eclipse/cdt/internal/core/ExternalTranslationUnit.java
|
||||||
|
* model/org/eclipse/cdt/internal/core/TranslationUnit.java
|
||||||
|
|
||||||
2004-08-27 Alain Magloire
|
2004-08-27 Alain Magloire
|
||||||
|
|
||||||
Fix for 72550.
|
Fix for 72550.
|
||||||
|
|
|
@ -19,6 +19,7 @@ import java.io.InputStream;
|
||||||
import org.eclipse.cdt.core.model.CModelException;
|
import org.eclipse.cdt.core.model.CModelException;
|
||||||
import org.eclipse.cdt.core.model.IBuffer;
|
import org.eclipse.cdt.core.model.IBuffer;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ public class ExternalTranslationUnit extends TranslationUnit {
|
||||||
* @param path
|
* @param path
|
||||||
*/
|
*/
|
||||||
public ExternalTranslationUnit(ICElement parent, IPath path) {
|
public ExternalTranslationUnit(ICElement parent, IPath path) {
|
||||||
super(parent, path);
|
super(parent, (IResource)null, path.toString());
|
||||||
fPath = path;
|
fPath = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,10 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
super(parent, path, ICElement.C_UNIT);
|
super(parent, path, ICElement.C_UNIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TranslationUnit(ICElement parent, IResource res, String name) {
|
||||||
|
super(parent, res, name, ICElement.C_UNIT);
|
||||||
|
}
|
||||||
|
|
||||||
public ITranslationUnit getTranslationUnit () {
|
public ITranslationUnit getTranslationUnit () {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue