From 737b5c69491262c4d5c2bb96addbc88ee1e25b2f Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 23 Aug 2012 10:23:44 -0700 Subject: [PATCH] Removed public visibility from the Messages class. --- .../org.eclipse.cdt.ui/.settings/.api_filters | 11 ++++++++++ .../cdt/ui/refactoring/actions/Messages.java | 22 +++++-------------- ...essages.properties => Messages.properties} | 3 ++- 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 core/org.eclipse.cdt.ui/.settings/.api_filters rename core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/{messages.properties => Messages.properties} (90%) diff --git a/core/org.eclipse.cdt.ui/.settings/.api_filters b/core/org.eclipse.cdt.ui/.settings/.api_filters new file mode 100644 index 00000000000..6d77fc00926 --- /dev/null +++ b/core/org.eclipse.cdt.ui/.settings/.api_filters @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.java index fb089c82729..f9a0a1c908d 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.java @@ -1,45 +1,33 @@ /******************************************************************************* - * Copyright (c) 2008, 2009 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2012 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Markus Schorn - initial API and implementation + * Markus Schorn - initial API and implementation *******************************************************************************/ package org.eclipse.cdt.ui.refactoring.actions; import org.eclipse.osgi.util.NLS; -/** - * @noextend This class is not intended to be subclassed by clients. - * @noinstantiate This class is not intended to be instantiated by clients. - */ -public class Messages extends NLS { - private static final String BUNDLE_NAME = "org.eclipse.cdt.ui.refactoring.actions.messages"; //$NON-NLS-1$ - +class Messages extends NLS { public static String CRefactoringActionGroup_menu; public static String CRenameAction_label; public static String ExtractConstantAction_label; - /** - * @since 5.1 - */ public static String ExtractLocalVariableAction_label; public static String ExtractFunctionAction_label; public static String HideMethodAction_label; public static String ImplementMethodAction_label; public static String GettersAndSetters_label; - /** - * @since 5.3 - */ public static String ToggleFunctionAction_label; static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); + NLS.initializeMessages(Messages.class.getName(), Messages.class); } + // Do not instantiate private Messages() { } } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/messages.properties b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.properties similarity index 90% rename from core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/messages.properties rename to core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.properties index 251ae6ccb5e..e773cef4301 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/messages.properties +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/refactoring/actions/Messages.properties @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2008 Wind River Systems, Inc. and others. +# Copyright (c) 2008, 2012 Wind River Systems, Inc. and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ # # Contributors: # Markus Schorn (Wind River Systems) +# Sergey Prigogin (Google) ############################################################################### CRefactoringActionGroup_menu=Refactor CRenameAction_label=Rename...