/**********************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- *
+ * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
* 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:
- * IBM - Initial API and implementation
- * Bernd Hufmann - Updated for TMF
+ * IBM - Initial API and implementation
+ * Bernd Hufmann - Updated for TMF
**********************************************************************/
+
package org.eclipse.linuxtools.tmf.ui.views.uml2sd.load;
import java.util.ArrayList;
/**
* Map for caching information (view ID to loader class)
*/
- protected Map<String, IUml2SDLoader> fViewLoaderMap = new HashMap<String, IUml2SDLoader>();
+ private Map<String, IUml2SDLoader> fViewLoaderMap = new HashMap<>();
/**
* Map for caching information (view ID to list of configuration elements)
*/
- protected Map<String, ArrayList<IConfigurationElement>> fViewLoadersList = new HashMap<String, ArrayList<IConfigurationElement>>();
+ private Map<String, ArrayList<IConfigurationElement>> fViewLoadersList = new HashMap<>();
// ------------------------------------------------------------------------
// Constructor
*
* @return the manager instance
*/
- public synchronized static LoadersManager getInstance() {
+ public static synchronized LoadersManager getInstance() {
if (fLoadersManager == null) {
fLoadersManager = new LoadersManager();
}
return list;
}
- ArrayList<IConfigurationElement> ret = new ArrayList<IConfigurationElement>();
+ ArrayList<IConfigurationElement> ret = new ArrayList<>();
IExtensionPoint iep = Platform.getExtensionRegistry().getExtensionPoint(Activator.PLUGIN_ID, LOADER_TAG);
if (iep == null) {
return ret;