List of usage examples for com.google.gwt.core.ext.linker SelectionProperty tryGetValue
String tryGetValue();
null if the value of the property is not constant. From source file:com.arcbees.chosen.rebind.VersionInspectorLinker.java
License:Apache License
private boolean isSuperDevMode(LinkerContext context) { boolean isSdm = false; for (SelectionProperty property : context.getProperties()) { if ("superdevmode".equals(property.getName())) { isSdm = "on".equals(property.tryGetValue()); break; }// ww w. j av a 2 s . co m } return isSdm; }
From source file:gwt.ns.webworker.linker.WorkerModuleLinker.java
License:Apache License
/** * Output the deferred binding properties to the logger to help the user of * this linker determine what is causing multiple compilation permutations. * /* w w w. j av a2s. c o m*/ * @param logger the TreeLogger to record to * @param properties The deferred binding properties */ protected void logPermutationProperties(TreeLogger logger, SortedSet<SelectionProperty> properties) { logger.log(TreeLogger.INFO, "Deferred binding properties of current " + "module:"); for (SelectionProperty property : properties) { String name = property.getName(); String value = property.tryGetValue(); if (value == null) { value = "**Varies. Probable cause of multiple permutations.**"; } else { value = value + ". (constant)"; } logger.log(TreeLogger.INFO, "Property Name: " + name); logger.log(TreeLogger.INFO, " Value: " + value); } }