public boolean isThemeConstant(String constantName,boolean def){
  String c=getThemeConstant(constantName,null);
  if (c == null) {
    return def;
  }
  return c.equalsIgnoreCase("true") || c.equals("1");
}

public boolean isThemeConstant ( String constantName , boolean def ) { String c = getThemeConstant ( constantName , null ) ; if ( c == null ) { return def ; } return c . equalsIgnoreCase ( "true" ) || c . equals ( "1" ) ; }
returns a theme constant defined in the resource editor as a boolean value
