Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b88e2122115efe9831f33699d0290c201db66701 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
 * Copyright (c) 2011 Mia-Software.
 *
 * 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:
 * 	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.papyrus.emf.facet.efacet.ui.internal;

import java.util.Map;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.wizard.IQueryCreationPagePart;

/**
 * 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();

}

Back to the top