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:
parent
d213e4b109
commit
aada361558
1 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue