mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Add toString() to ParserLanguage.
This commit is contained in:
parent
68d068fd86
commit
da287f19be
1 changed files with 5 additions and 0 deletions
|
@ -32,4 +32,9 @@ public class ParserLanguage extends Enum {
|
||||||
public boolean isCPP() {
|
public boolean isCPP() {
|
||||||
return ( this == CPP );
|
return ( this == CPP );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
if( isCPP() ) return "C++"; //$NON-NLS-1$
|
||||||
|
return "C"; //$NON-NLS-1$
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue