[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] FIX 1_0_1 branch cdt.core/model
|
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.54
diff -u -r1.54 ChangeLog
--- ChangeLog 23 Dec 2002 18:55:31 -0000 1.54
+++ ChangeLog 6 Mar 2003 15:32:56 -0000
@@ -1,3 +1,10 @@
+2003-03-06 Alain Magloire
+
+ Overload isBinary()/isArchive()/isTranslationUnit()
+ * model/org/eclipse/cdt/internal/core/model/Archive.java:
+ * model/org/eclipse/cdt/internal/core/model/Binary.java:
+ * model/org/eclipse/cdt/internal/core/model/TanslationUnit.java:
+
2002-12-23 Alain Magloire
* src/org/eclipse/cdt/internal/core/CBuilder.java (invokeMake):
Index: model/org/eclipse/cdt/internal/core/model/Archive.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Archive.java,v
retrieving revision 1.3
diff -u -r1.3 Archive.java
--- model/org/eclipse/cdt/internal/core/model/Archive.java 18 Nov 2002 15:44:12 -0000 1.3
+++ model/org/eclipse/cdt/internal/core/model/Archive.java 6 Mar 2003 15:32:56 -0000
@@ -47,4 +47,25 @@
protected ArchiveInfo getArchiveInfo() {
return (ArchiveInfo)getElementInfo();
}
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isArchive()
+ */
+ public boolean isArchive() {
+ return true;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isBinary()
+ */
+ public boolean isBinary() {
+ return false;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isTranslationUnit()
+ */
+ public boolean isTranslationUnit() {
+ return false;
+ }
+
}
Index: model/org/eclipse/cdt/internal/core/model/Binary.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java,v
retrieving revision 1.4
diff -u -r1.4 Binary.java
--- model/org/eclipse/cdt/internal/core/model/Binary.java 22 Nov 2002 16:32:19 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/Binary.java 6 Mar 2003 15:32:56 -0000
@@ -25,10 +25,6 @@
super(parent, file, name);
}
- public boolean isBinary() {
- return true;
- }
-
public boolean hasDebug () {
return ((BinaryInfo)getElementInfo()).hasDebug();
}
@@ -85,6 +81,34 @@
public CElementInfo createElementInfo() {
return new BinaryInfo(this);
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isArchive()
+ */
+ public boolean isArchive() {
+ return false;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isBinary()
+ */
+ public boolean isBinary() {
+ return true;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isTranslationUnit()
+ */
+ public boolean isTranslationUnit() {
+ return false;
+ }
+
+ /**
+ * @see org.eclipse.cdt.internal.core.model.CFile#setLocation(IPath)
+ */
+ public void setLocation(IPath location) {
+ super.setLocation(location);
}
}
Index: model/org/eclipse/cdt/internal/core/model/TranslationUnit.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java,v
retrieving revision 1.1
diff -u -r1.1 TranslationUnit.java
--- model/org/eclipse/cdt/internal/core/model/TranslationUnit.java 26 Jun 2002 20:37:14 -0000 1.1
+++ model/org/eclipse/cdt/internal/core/model/TranslationUnit.java 6 Mar 2003 15:32:56 -0000
@@ -180,4 +180,25 @@
protected CElementInfo createElementInfo () {
return new TranslationUnitInfo(this);
}
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isArchive()
+ */
+ public boolean isArchive() {
+ return false;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isBinary()
+ */
+ public boolean isBinary() {
+ return false;
+ }
+
+ /**
+ * @see org.eclipse.cdt.core.model.ICFile#isTranslationUnit()
+ */
+ public boolean isTranslationUnit() {
+ return true;
+ }
+
}