use of com.google.security.zynamics.binnavi.config.ColorsConfigItem in project binnavi by google.
the class ZyNodeBuilder method addCommentLines.
/**
* Adds the local and global comment strings to the label content.
*
* @param content The label content the comment strings are added to.
* @param node The clicked raw node.
* @param localComment The local comment string that is added to the label content.
* @param globalComment The global comment string that is added to the label content.
*/
private static void addCommentLines(final ZyLabelContent content, final INaviViewNode node, final List<IComment> localComment, final List<IComment> globalComment) {
Preconditions.checkNotNull(content, "IE01530: Content argument can't be null");
final ColorsConfigItem colorSettings = ConfigManager.instance().getColorSettings();
if (localComment != null) {
addCommentLines(content, localComment, colorSettings.getLocalCommentColor(), new CLocalNodeCommentWrapper(node));
}
if (globalComment != null) {
addCommentLines(content, globalComment, colorSettings.getGlobalCommentColor(), new CGlobalNodeCommentWrapper(node));
}
}
Aggregations