tmf: Switch tmf.ui to Java 7 + fix warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / project / handlers / SelectTraceTypeContributionItem.java
index 0296fb10934fc01bc2802e75f1698743320a58bc..9328c96bc45add5b5ea1b5a850b547bdf3251b82 100644 (file)
@@ -61,7 +61,7 @@ public class SelectTraceTypeContributionItem extends CompoundContributionItem {
     @Override
     protected IContributionItem[] getContributionItems() {
 
-        Set<String> selectedTraceTypes = new HashSet<String>();
+        Set<String> selectedTraceTypes = new HashSet<>();
         IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
         IWorkbenchPage page = window.getActivePage();
         ISelection selection = page.getSelection();
@@ -74,9 +74,9 @@ public class SelectTraceTypeContributionItem extends CompoundContributionItem {
             }
         }
 
-        List<IContributionItem> list = new LinkedList<IContributionItem>();
+        List<IContributionItem> list = new LinkedList<>();
 
-        Map<String, MenuManager> categoriesMap = new HashMap<String, MenuManager>();
+        Map<String, MenuManager> categoriesMap = new HashMap<>();
         IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(
                 TmfTraceType.TMF_TRACE_TYPE_ID);
         for (IConfigurationElement ce : config) {
@@ -147,7 +147,7 @@ public class SelectTraceTypeContributionItem extends CompoundContributionItem {
             MenuManager subMenu) {
         Map<String, String> params;
 
-        params = new HashMap<String, String>();
+        params = new HashMap<>();
         params.put(BUNDLE_PARAMETER, traceBundle);
         params.put(TYPE_PARAMETER, traceTypeId);
         params.put(ICON_PARAMETER, traceIcon);
This page took 0.027686 seconds and 5 git commands to generate.