1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2014-02-11 14:10:07 -08:00
parent f584975ffd
commit 15fb26ea6a
5 changed files with 16 additions and 19 deletions

View file

@ -20,7 +20,7 @@ import org.eclipse.cdt.core.index.IIndexName;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
public class CalledByResult { public class CalledByResult {
private Map<ICElement, List<IIndexName>> fElementToReferences= new HashMap<ICElement, List<IIndexName>>(); private Map<ICElement, List<IIndexName>> fElementToReferences= new HashMap<>();
public ICElement[] getElements() { public ICElement[] getElements() {
Set<ICElement> elements = fElementToReferences.keySet(); Set<ICElement> elements = fElementToReferences.keySet();
@ -35,7 +35,7 @@ public class CalledByResult {
public void add(ICElement elem, IIndexName ref) { public void add(ICElement elem, IIndexName ref) {
List<IIndexName> list= fElementToReferences.get(elem); List<IIndexName> list= fElementToReferences.get(elem);
if (list == null) { if (list == null) {
list= new ArrayList<IIndexName>(); list= new ArrayList<>();
fElementToReferences.put(elem, list); fElementToReferences.put(elem, list);
} }
list.add(ref); list.add(ref);

View file

@ -20,7 +20,7 @@ import org.eclipse.cdt.core.index.IIndexName;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
public class CallsToResult { public class CallsToResult {
private Map<CElementSet, List<IIndexName>> fElementSetsToReferences= new HashMap<CElementSet, List<IIndexName>>(); private Map<CElementSet, List<IIndexName>> fElementSetsToReferences= new HashMap<>();
public CElementSet[] getElementSets() { public CElementSet[] getElementSets() {
Set<CElementSet> elementSets = fElementSetsToReferences.keySet(); Set<CElementSet> elementSets = fElementSetsToReferences.keySet();
@ -36,7 +36,7 @@ public class CallsToResult {
CElementSet key= new CElementSet(elems); CElementSet key= new CElementSet(elems);
List<IIndexName> list= fElementSetsToReferences.get(key); List<IIndexName> list= fElementSetsToReferences.get(key);
if (list == null) { if (list == null) {
list= new ArrayList<IIndexName>(); list= new ArrayList<>();
fElementSetsToReferences.put(key, list); fElementSetsToReferences.put(key, list);
} }
list.add(ref); list.add(ref);

View file

@ -14,9 +14,7 @@ package org.eclipse.cdt.internal.ui.search;
import org.eclipse.osgi.util.NLS; import org.eclipse.osgi.util.NLS;
public final class CSearchMessages extends NLS { public final class CSearchMessages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.cdt.internal.ui.search.CSearchMessages"; //$NON-NLS-1$
public static String group_declarations; public static String group_declarations;
public static String group_references; public static String group_references;
public static String CSearchResultCollector_matches; public static String CSearchResultCollector_matches;
@ -97,7 +95,7 @@ public final class CSearchMessages extends NLS {
public static String PDOMSearchUnresolvedIncludesQuery_title; public static String PDOMSearchUnresolvedIncludesQuery_title;
static { static {
NLS.initializeMessages(BUNDLE_NAME, CSearchMessages.class); NLS.initializeMessages(CSearchMessages.class.getName(), CSearchMessages.class);
} }
private CSearchMessages() { private CSearchMessages() {

View file

@ -15,7 +15,6 @@
group_declarations=Dec&larations group_declarations=Dec&larations
group_references=Re&ferences group_references=Re&ferences
# Examples of the display for the following value are # Examples of the display for the following value are
# "(1 match)", where {0} is 1 and "(5 matches)", where {0} is 2 or more. # "(1 match)", where {0} is 1 and "(5 matches)", where {0} is 2 or more.
CSearchResultCollector_matches= ({0} {0, choice, 0\#matches|1\#match|2\#matches}) CSearchResultCollector_matches= ({0} {0, choice, 0\#matches|1\#match|2\#matches})