blob: dc9e6198513c7943d04fb3c9d7a14c6cc8ac7696 [file] [log] [blame]
/**
* Copyright (c) 2011, 2019 Mia-Software and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Nicolas Guyomar (Mia-Software) - Bug 349546 - EMF Facet facetSet editor
* Gregoire Dupe (Mia-Software) - Bug 361617 - Deprecation of APIs for the old Facet metamodels
*/
package org.eclipse.modisco.facet.efacet.ui.internal;
import java.util.Map;
import org.eclipse.emf.ecore.EClass;
/**
* This interface is dedicated to the registry
*
* TODO: This interface has to be renamed to IQueryCreationPagePartRegistry before the release of 0.2
*
* @since 0.2
*/
//TODO: This interface has to be renamed to IQueryCreationPagePartRegistry before the release of 0.2
public interface IQueryCreationPagePart2Registry {
/**
* Returns an instance of {@link QueryCreationPagePartRegistryImpl}.
*/
IQueryCreationPagePart2Registry INSTANCE = null; //TODO cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=364601
/**
* Return a registered {@link IQueryCreationPagePart} corresponding to the given type name.
*
* @param managedTypeName
* the type we need a part for.
* @return a registered {@link IQueryCreationPagePart} corresponding to the given type name.
*/
public IQueryCreationPagePart2 getWizardPagePartFor(EClass managedQueryType);
/**
* Returns every registered {@link IQueryCreationPagePart} associated with their managed type.
*
* @return
*/
public Map<String, IQueryCreationPagePart2> getRegisteredWizardPageParts();
}