1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

new methods hasSameContentAs()

and getModifiers.
This commit is contained in:
Alain Magloire 2003-03-20 16:44:05 +00:00
parent d213e4b109
commit aada361558

View file

@ -22,9 +22,12 @@ import org.eclipse.cdt.core.model.CModelException;
/* package */
class SourceManipulationInfo extends CElementInfo {
int modifiers;
protected SourceManipulationInfo(CElement element) {
super(element);
setIsStructureKnown(true);
modifiers = 0;
}
protected ISourceRange getSourceRange() {
@ -128,4 +131,20 @@ class SourceManipulationInfo extends CElementInfo {
String[] renamings= new String[] {name};
getElement().getCRoot().rename(elements, dests, renamings, force, monitor);
}
/**
* return the element modifiers
* @return int
*/
public int getModifiers(){
return modifiers;
}
/**
* subclasses should override
*/
public boolean hasSameContentsAs( SourceManipulationInfo otherInfo){
return true;
}
}