// Copyright (c) 2009-2010 by the projectusus.org contributors // This software is released under the terms and conditions // of the Eclipse Public License (EPL) 1.0. // See http://www.eclipse.org/legal/epl-v10.html for details. package org.projectusus.ui.internal.proportions.infopresenter.infomodel; class UsusModelElementFormatter { static String format( String label, int value ) { StringBuilder sb = new StringBuilder(); formatKeyValue( label, String.valueOf( value ), sb ); return sb.toString(); } private static void formatKeyValue( String key, String value, StringBuilder sb ) { sb.append( key ); sb.append( ": " ); //$NON-NLS-1$ sb.append( value ); } }