public static String getLabel(final ModifierKeyword keyword) { Assert.isTrue(isVisibilityKeyword(keyword)); if (keyword == null) return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_default"); else if (ModifierKeyword.PUBLIC_KEYWORD.equals(keyword)) return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_public"); else if (ModifierKeyword.PROTECTED_KEYWORD.equals(keyword)) return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_protected"); else return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_private");
public static String getLabel(final IJavaElement element) { Assert.isNotNull(element); return JavaElementLabels.getElementLabel(element, JavaElementLabels.ALL_FULLY_QUALIFIED | JavaElementLabels.M_PARAMETER_TYPES);
	public static String getLabel(final ModifierKeyword keyword) {		Assert.isTrue(isVisibilityKeyword(keyword));		if (keyword == null)			return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_default"); //$NON-NLS-1$		else if (ModifierKeyword.PUBLIC_KEYWORD.equals(keyword))			return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_public"); //$NON-NLS-1$		else if (ModifierKeyword.PROTECTED_KEYWORD.equals(keyword))			return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_protected"); //$NON-NLS-1$		else			return RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_private"); //$NON-NLS-1$	}