blob: 2291adfe17ae46988f4377f6e1580445d49fa43e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2012 IBM Corporation and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* IBM Corporation - initial API and implementation
* Tasktop Technologies - improvements for Mylyn
*******************************************************************************/
package org.eclipse.mylyn.internal.commons.repositories.ui.wizards;
import org.eclipse.mylyn.internal.commons.repositories.ui.RepositoriesUiPlugin;
import org.eclipse.ui.internal.wizards.AbstractExtensionWizardRegistry;
import org.eclipse.ui.internal.wizards.NewWizardRegistry;
/**
* Based on {@link NewWizardRegistry}.
*
* @author Steffen Pingel
*/
@SuppressWarnings("restriction")
public final class NewRepositoryWizardRegistry extends AbstractExtensionWizardRegistry {
private static NewRepositoryWizardRegistry singleton;
/**
* Return the singleton instance of this class.
*
* @return the singleton instance of this class
*/
public static synchronized NewRepositoryWizardRegistry getInstance() {
if (singleton == null) {
singleton = new NewRepositoryWizardRegistry();
}
return singleton;
}
/**
* Private constructor.
*/
private NewRepositoryWizardRegistry() {
}
@Override
protected String getExtensionPoint() {
return "newWizards"; //$NON-NLS-1$
}
@Override
protected String getPlugin() {
return RepositoriesUiPlugin.ID_PLUGIN;
}
}