1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix getCommandLinePattern to check its superclass when the value is null.

This commit is contained in:
Leo Treggiari 2004-12-17 03:53:10 +00:00
parent 840aece508
commit b6d40feacd

View file

@ -1104,11 +1104,14 @@ public class Tool extends BuildObject implements ITool, IOptionCategory {
* @see org.eclipse.cdt.managedbuilder.core.ITool#getCommandLinePattern()
*/
public String getCommandLinePattern() {
if (commandLinePattern != null) {
return commandLinePattern;
} else {
return new String(DEFAULT_PATTERN); // Default pattern
if (commandLinePattern == null) {
if (superClass != null) {
return superClass.getCommandLinePattern();
} else {
return new String(DEFAULT_PATTERN); // Default pattern
}
}
return commandLinePattern;
}
/* (non-Javadoc)