@Override public String getMessage() { if (fMessage == null) { fMessage = ApiProblemFactory.getLocalizedMessage(this); } return fMessage; }
public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if(value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args); } catch (CoreException e) {} return null; }
public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if(value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args); } catch (CoreException e) {} return null; }
/** * Returns the localized message for the given {@link IApiProblem}. Returns * <code>null</code> if no localized message cannot be created. * * @param problemid the id of the problem to create a message for * @param arguments the arguments to pass into the localized string. The * arguments are passed in to the string in the order they appear * in the array. * * @return a localized message for the given {@link IApiProblem} or * <code>null</code> */ public static String getLocalizedMessage(IApiProblem problem) { return getLocalizedMessage(problem.getMessageid(), problem.getMessageArguments()); }
@Override public String getMessage() { if (DeltaProcessor.isCompatible(this)) { return Messages.getCompatibleLocalizedMessage(this); } int id = ApiProblemFactory.getProblemMessageId(IApiProblem.CATEGORY_COMPATIBILITY, this.elementType, this.kind, this.flags); return ApiProblemFactory.getLocalizedMessage(id, (this.datas != null ? this.datas : null)); }
@Override public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if (value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return MessageFormat.format(MarkerMessages.ExplainProblemResolution_explain_incompatibility_desc, ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args)); } catch (CoreException e) { } return null; }
@Override public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if (value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return MessageFormat.format(MarkerMessages.FilterProblemResolution_0_desc, ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args), resolveCategoryName()); } catch (CoreException e) { } return null; }
@Override public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if (value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return MessageFormat.format(MarkerMessages.FilterProblemWithCommentResolution_create_commented_filter_desc, ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args), resolveCategoryName()); } catch (CoreException e) { } return null; }
@Override public String getDescription() { try { String value = (String) fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_MESSAGE_ARGUMENTS); String[] args = new String[0]; if (value != null) { args = value.split("#"); //$NON-NLS-1$ } int id = fBackingMarker.getAttribute(IApiMarkerConstants.MARKER_ATTR_PROBLEM_ID, 0); return MessageFormat.format(MarkerMessages.ConfigureProblemSeverity_desc, ApiProblemFactory.getLocalizedMessage(ApiProblemFactory.getProblemMessageId(id), args), resolveCategoryName()); } catch (CoreException e) { } return null; }