package com.onaro.sanscreen.client.view.changes.format; import com.onaro.sanscreen.server.changes.*; import com.onaro.util.*; import java.util.*; public class GenericResolvedFormatter extends BaseFormatter{ public GenericResolvedFormatter(String key, ResourceBundle bundle) throws IllegalInitException { super(key, bundle); } /** * If information about the resolution type exist in the change (the resolutuon was automatic), * Use a different format to include it. */ protected String getResourceKey(Change change) throws IllegalInitException { String value = change.getValue(ChangeConstants.RESOLUTION_TYPE); String resourceKey = super.getResourceKey(change); if (value != null) { return new StringBuilder(resourceKey).append(".auto.resolve").toString(); //$NON-NLS-1$ } else { return resourceKey; } } }