mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +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 */
|
/* package */
|
||||||
class SourceManipulationInfo extends CElementInfo {
|
class SourceManipulationInfo extends CElementInfo {
|
||||||
|
|
||||||
|
int modifiers;
|
||||||
|
|
||||||
protected SourceManipulationInfo(CElement element) {
|
protected SourceManipulationInfo(CElement element) {
|
||||||
super(element);
|
super(element);
|
||||||
setIsStructureKnown(true);
|
setIsStructureKnown(true);
|
||||||
|
modifiers = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ISourceRange getSourceRange() {
|
protected ISourceRange getSourceRange() {
|
||||||
|
@ -128,4 +131,20 @@ class SourceManipulationInfo extends CElementInfo {
|
||||||
String[] renamings= new String[] {name};
|
String[] renamings= new String[] {name};
|
||||||
getElement().getCRoot().rename(elements, dests, renamings, force, monitor);
|
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