mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
toString() added to make debugging easier
This commit is contained in:
parent
8aa547ee60
commit
bd8442bf2f
2 changed files with 17 additions and 0 deletions
|
@ -134,4 +134,12 @@ public class CFileDescription extends CDataProxyContainer implements
|
|||
CConfigurationDescription cfg = (CConfigurationDescription)getConfiguration();
|
||||
return cfg.canExclude(getPath(), false, exclude);
|
||||
}
|
||||
|
||||
/**
|
||||
* For debugging purpose only
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return getPath().toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -198,4 +198,13 @@ public class CFolderDescription extends CDataProxyContainer implements
|
|||
CConfigurationDescription cfg = (CConfigurationDescription)getConfiguration();
|
||||
return cfg.canExclude(getPath(), true, exclude);
|
||||
}
|
||||
|
||||
/**
|
||||
* For debugging purpose only
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
String str = getPath().toString();
|
||||
return str.length()==0 ? "/" : str; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue