diff options
Diffstat (limited to 'plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant/src/org/eclipse/papyrus/infra/gmfdiag/assistant/core/IModelingAssistantModelProvider.java')
-rw-r--r-- | plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant/src/org/eclipse/papyrus/infra/gmfdiag/assistant/core/IModelingAssistantModelProvider.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant/src/org/eclipse/papyrus/infra/gmfdiag/assistant/core/IModelingAssistantModelProvider.java b/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant/src/org/eclipse/papyrus/infra/gmfdiag/assistant/core/IModelingAssistantModelProvider.java new file mode 100644 index 00000000000..5019242e4af --- /dev/null +++ b/plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant/src/org/eclipse/papyrus/infra/gmfdiag/assistant/core/IModelingAssistantModelProvider.java @@ -0,0 +1,35 @@ +/***************************************************************************** + * Copyright (c) 2014 Christian W. Damus and others. + * + * 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: + * Christian W. Damus - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.infra.gmfdiag.assistant.core; + +import org.eclipse.emf.ecore.resource.ResourceSet; +import org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.IModelingAssistantProvider; + +/** + * A provider of modeling-assistant models. + */ +public interface IModelingAssistantModelProvider { + /** + * Loads zero or more (presumably model-based) providers into the specified EMF resource set. + * Modeling assistant providers are requested at most once from any given model-provider extension. Therefore, this method + * should not dynamically determine providers to load but should be static. The modeling assistant providers that it + * returns may be more dynamic in the specific modeling assistants that they provide. + * + * @param resourceSet + * a resource set into which resources may be loaded to obtain modeling assistant models + * + * @return zero or more provider instances + */ + Iterable<? extends IModelingAssistantProvider> loadProviders(ResourceSet resourceSet); +} |