Replies if the given SRE is provided by the Eclipse platform
through an extension point.

@param sre the sre.
@return <code>true</code> if the SRE was provided through an extension
point.
519068
public static boolean isPlatformSRE(ISREInstall sre) {
		if (sre != null) {
			LOCK.lock();
			try {
				return platformSREInstalls.contains(sre.getId());
			} finally {
				LOCK.unlock();
			}
		}
		return false;
	}
603704
public IStatus validate(ISREInstall sre) {
		final IStatus status;
		if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) {
			if (SARLRuntime.getDefaultSREInstall() == null) {
				status = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, Messages.SREConfigurationBlock_5);
			} else {
				status = SARLEclipsePlugin.getDefault().createOkStatus();
			}
		} else if (!this.projectProviderFactories.isEmpty() && this.projectSREButton.getSelection()) {
			if (retreiveProjectSRE() == null) {
				status = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR,
							Messages.SREConfigurationBlock_6);
			} else {
				status = SARLEclipsePlugin.getDefault().createOkStatus();
			}
		} else if (this.runtimeEnvironments.isEmpty()) {
			status = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR,
					Messages.SREConfigurationBlock_8);
		} else {
			status = sre.getValidity();
		}
		return status;
	}
32090
public boolean contains(Coordinate coord) {
		if (coord.getX() < this.getX()) {
			return false;
		}
		if (coord.getY() < this.getY()) {
			return false;
		}
		if (coord.getX() > this.getEndPoint().getX()) {
			return false;
		}
		if (coord.getY() > this.getEndPoint().getY()) {
			return false;
		}
		return true;
	}
932300
protected boolean has(String extensionName, String tableName,
			String columnName) {
		Extensions extension = get(extensionName, tableName, columnName);
		return extension != null;
	}
1232942
public static boolean isHtmlFileExtension(String extension) {
		for (final String ext : HTML_FILE_EXTENSIONS) {
			if (Strings.equal(ext, extension)) {
				return true;
			}
		}
		return false;
	}
1344929
public static boolean isSafeExtension(final String extension) {
        return extension != null && VALID_EXTENSION.matcher(extension).matches()
                && !DANGEROUS_EXTENSIONS.contains(extension);
    }
447728
protected boolean isPossibleExtension(JvmFeature feature) {
		if (!(feature instanceof JvmOperation)) {
			return false;
		}
		List<JvmFormalParameter> parameters = ((JvmExecutable) feature).getParameters();
		if (parameters.isEmpty()) {
			return false;
		}
		return true;
	}
1139077
private static boolean isExtendedWebpSupported() {
    // Lossless and extended formats are supported on Android 4.2.1+
    // Unfortunately SDK_INT is not enough to distinguish 4.2 and 4.2.1
    // (both are API level 17 (JELLY_BEAN_MR1))
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {
      return false;
    }

    if (Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN_MR1) {
      // Let's test if extended webp is supported
      // To this end we will try to decode bounds of vp8x webp with alpha channel
      byte[] decodedBytes = Base64.decode(VP8X_WEBP_BASE64, Base64.DEFAULT);
      BitmapFactory.Options opts = new BitmapFactory.Options();
      opts.inJustDecodeBounds = true;
      BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length, opts);

      // If Android managed to find appropriate decoder then opts.outHeight and opts.outWidth
      // should be set. We can not assume that outMimeType is set.
      // Android guys forgot to update logic for mime types when they introduced support for webp.
      // For example, on 4.2.2 this field is not set for webp images.
      if (opts.outHeight != 1 || opts.outWidth != 1) {
        return false;
      }
    }

    return true;
  }
1306210
protected boolean isExternal(String namespace, String name) {
    String resolved = resolveNamespace(namespace, name);
    if (resolved != null) {
      return isExternal(getMetaStoreUtil().getTable(resolved, name));
    }
    return false;
  }
1182856
static boolean isJavaPropertyMethod(final String methodName) {
        return (methodName.length() > PROPERTY_METHOD_PREFIX_LEN
                && (methodName.startsWith("get") || methodName.startsWith(("set"))));
    }
646369
public boolean isSupported(String feature, String version) {
        if (feature.equalsIgnoreCase("Core"))
            return true;
        if (feature.equalsIgnoreCase("XML"))
            return true;
        return false;
    }
563878
public boolean has() {

		boolean exists = has(EXTENSION_NAME, null, null);

		if (exists) {
			exists = hasColumn();
		}

		return exists;
	}
431674
public boolean isBefore(final T element) {
        if (element == null) {
            return false;
        }

        return upperEndpoint.includes(element) == false;
    }
136142
public boolean has() {

		boolean exists = false;
		try {
			exists = has(EXTENSION_NAME, null, null)
					&& contentsIdDao.isTableExists();
		} catch (SQLException e) {
			throw new GeoPackageException(
					"Failed to check for contents id for GeoPackage: "
							+ geoPackage.getName(), e);
		}

		return exists;
	}
379584
public static boolean isJavaIdentifier( String s )
    {
        if (!Character.isJavaIdentifierStart( s.codePointAt( 0 ) )) return false;

        for (int i = 1; i < s.length(); i++)
        {
            if (!Character.isJavaIdentifierPart( s.codePointAt( i ) )) return false;
        }
        return true;
    }
349063
public boolean has(Element ele) {
        return tmap.containsKey(ele) && !tmap.get(ele).isEmpty();
    }
1301864
private static boolean isBundledInJre(String className) {
    if (className.startsWith("javax.accessibility.")
        || className.startsWith("javax.activation.")
        || className.startsWith("javax.activity.")
        || className.startsWith("javax.annotation.")
        || className.startsWith("javax.crypto.")
        || className.startsWith("javax.imageio.")
        || className.startsWith("javax.jws.")
        || className.startsWith("javax.lang.model.")
        || className.startsWith("javax.management.")
        || className.startsWith("javax.naming.")
        || className.startsWith("javax.net.")
        || className.startsWith("javax.print.")
        || className.startsWith("javax.rmi.")
        || className.startsWith("javax.script.")
        || className.startsWith("javax.security.")
        || className.startsWith("javax.sound.")
        || className.startsWith("javax.sql.")
        || className.startsWith("javax.swing.")
        || className.startsWith("javax.tools.")
        || className.startsWith("javax.transaction.")
        || className.startsWith("javax.xml.")) {
      return true;
    }
    return false;
  }