diff options
author | Lars Vogel | 2017-09-08 14:15:39 +0000 |
---|---|---|
committer | Lars Vogel | 2017-09-08 14:18:07 +0000 |
commit | 9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7 (patch) | |
tree | 8009b62780744fa6bcf045a259cdc8c6d2d8fa3d /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java | |
parent | 991aae18477c3d006719edbccb574932090d9ac6 (diff) | |
download | eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.tar.gz eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.tar.xz eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.zip |
Bug 522059 - Remove redundant specification of type arguments fromI20170911-0405I20170910-2000I20170910-1055I20170910-0800I20170909-1500I20170909-0920I20170909-0800I20170909-0510I20170908-2345I20170908-2000
org.eclipse.debug.ui
Change-Id: Iaa1506dffb86445b0bec008c1a595f90b8a02148
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java index 03e86262e..ab562eb30 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/details/DetailPaneManager.java @@ -263,7 +263,7 @@ public class DetailPaneManager { public static final String PREF_DETAIL_AREAS = "preferredDetailPanes"; //$NON-NLS-1$ private DetailPaneManager(){ - fFactoriesByPaneID = new HashMap<String, IDetailPaneFactory>(); + fFactoriesByPaneID = new HashMap<>(); fFactoriesByPaneID.put(MessageDetailPane.ID, new DefaultDetailPaneFactory()); } @@ -357,7 +357,7 @@ public class DetailPaneManager { * @return The factories enabled for the selection or an empty collection. */ private List<IDetailPaneFactory> getEnabledFactories(IStructuredSelection selection) { - List<IDetailPaneFactory> factoriesForSelection = new ArrayList<IDetailPaneFactory>(); + List<IDetailPaneFactory> factoriesForSelection = new ArrayList<>(); if (fKnownFactories == null) { initializeDetailFactories(); } @@ -380,7 +380,7 @@ public class DetailPaneManager { * @return Set of pane IDs or an empty set */ private Set<String> getPossiblePaneIDs(List<IDetailPaneFactory> factoriesToQuery, IStructuredSelection selection) { - Set<String> idsForSelection = new LinkedHashSet<String>(); + Set<String> idsForSelection = new LinkedHashSet<>(); for (IDetailPaneFactory currentFactory : factoriesToQuery) { for (String currentAreaTypeID : currentFactory.getDetailPaneTypes(selection)) { fFactoriesByPaneID.put(currentAreaTypeID, currentFactory); @@ -438,7 +438,7 @@ public class DetailPaneManager { */ private synchronized void initializeDetailFactories(){ if (fKnownFactories == null){ - fKnownFactories = new ArrayList<DetailPaneFactoryExtension>(); + fKnownFactories = new ArrayList<>(); IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(DebugUIPlugin.getUniqueIdentifier(), IDebugUIConstants.EXTENSION_POINT_DETAIL_FACTORIES); IConfigurationElement[] infos = extensionPoint.getConfigurationElements(); DetailPaneFactoryExtension delegate = null; @@ -522,7 +522,7 @@ public class DetailPaneManager { * @see #storePreferredDetailsAreas() */ private void loadPreferredDetailsAreas() { - fPreferredDetailPanes = new HashMap<Set<String>, String>(); + fPreferredDetailPanes = new HashMap<>(); String preferenceValue = Platform.getPreferencesService().getString(DebugUIPlugin.getUniqueIdentifier(), PREF_DETAIL_AREAS, "", //$NON-NLS-1$ @@ -532,7 +532,7 @@ public class DetailPaneManager { String token = entryTokenizer.nextToken(); int valueStart = token.indexOf(':'); StringTokenizer keyTokenizer = new StringTokenizer(token.substring(0,valueStart),","); //$NON-NLS-1$ - Set<String> keys = new LinkedHashSet<String>(); + Set<String> keys = new LinkedHashSet<>(); while (keyTokenizer.hasMoreTokens()){ keys.add(keyTokenizer.nextToken()); } |