Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-02-05 14:17:25 +0000
committerAnton Leherbauer2008-02-05 14:17:25 +0000
commite8c725f6365a4283e1b89bb577bb78daf4d2066a (patch)
tree2b75716b4de9e4fa2f012ba516abcd9814c340fd /core/org.eclipse.cdt.core/model/org
parent3e365c0aac926c27505f98ffcbb436497336f238 (diff)
downloadorg.eclipse.cdt-e8c725f6365a4283e1b89bb577bb78daf4d2066a.tar.gz
org.eclipse.cdt-e8c725f6365a4283e1b89bb577bb78daf4d2066a.tar.xz
org.eclipse.cdt-e8c725f6365a4283e1b89bb577bb78daf4d2066a.zip
Fix Archive constructor for linked resources
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java
index a8f9296ce2f..045332cbe9c 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005 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
@@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
+ * Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@@ -30,7 +31,8 @@ public class Archive extends Openable implements IArchive {
IBinaryArchive binaryArchive;
public Archive(ICElement parent, IFile file, IBinaryArchive ar) {
- this(parent, file.getLocation(), ar);
+ super(parent, file, ICElement.C_ARCHIVE);
+ binaryArchive = ar;
}
public Archive(ICElement parent, IPath path, IBinaryArchive ar) {

Back to the top