diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IStructure.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IStructure.java index c0cacfe885d..a2594809d73 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IStructure.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/IStructure.java @@ -8,7 +8,7 @@ package org.eclipse.cdt.core.model; /** * Represent struct(ure), class or union. */ -public interface IStructure extends IInheritance, IParent, ICElement, IVariable { +public interface IStructure extends IInheritance, IParent, ICElement, IVariableDeclaration { //public String instantiatesTemplate(); public IField getField(String name); diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Structure.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Structure.java index 0fcaba3179f..30df405ba43 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Structure.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Structure.java @@ -64,14 +64,6 @@ public class Structure extends SourceManipulation implements IStructure { return new IStructure[0]; } - /** - * Return the access control for each inherited structure. - * @IInheritance - */ - public int getAccessControl(int pos) throws CModelException { - return 0; - } - /** * @see IVariable */ @@ -101,4 +93,20 @@ public class Structure extends SourceManipulation implements IStructure { return new SourceManipulationInfo(this); } + /** + * Return the access control for each inherited structure. + * @IInheritance + */ + public int getAccessControl(int pos) throws CModelException { + return 0; + } + + + /** + * @see org.eclipse.cdt.core.model.IVariableDeclaration#getAccesControl() + */ + public int getAccesControl() { + return 0; + } + }