1
0
Fork 0
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:
Andrew Gvozdev 2009-10-06 02:20:02 +00:00
parent 8aa547ee60
commit bd8442bf2f
2 changed files with 17 additions and 0 deletions

View file

@ -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();
}
}

View file

@ -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$
}
}