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

Add toString() to ParserLanguage.

This commit is contained in:
John Camelon 2005-04-13 02:44:15 +00:00
parent 68d068fd86
commit da287f19be

View file

@ -32,4 +32,9 @@ public class ParserLanguage extends Enum {
public boolean isCPP() {
return ( this == CPP );
}
public String toString() {
if( isCPP() ) return "C++"; //$NON-NLS-1$
return "C"; //$NON-NLS-1$
}
}