/******************************************************************************* * Copyright (c) 2011, 2012 Mia-Software. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning * Nicolas Bros (Mia-Software) - Bug 379683 - customizable Tree content provider *******************************************************************************/ package org.eclipse.papyrus.emf.facet.custom.ui; import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationManager; import org.eclipse.papyrus.emf.facet.custom.ui.internal.CustomizedContentProviderFactory; /** * This is a factory for {@link ICustomizedContentProvider} and {@link ICustomizedTreeContentProvider}. * * @author Gregoire Dupe * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. * */ public interface ICustomizedContentProviderFactory { /** * The default factory instance */ ICustomizedContentProviderFactory DEFAULT = new CustomizedContentProviderFactory(); /** * This method is used to instantiate a {@link ICustomizedContentProvider} * * @param customizationMgr * the customization manager which has to be used by the content provider. * @return a content provider * @deprecated Bug 380229 - [deprecated] ICustomizedContentProvider */ @Deprecated ICustomizedContentProvider createCustomizedContentProvider(ICustomizationManager customizationMgr); /** * Instantiate an {@link ICustomizedTreeContentProvider}. With this content provider, your viewer's input has to be * an EObject or an array or collection of EObjects.F * * @param customManager * the customization manager used by the content provider * @return a tree content provider * @since 0.2 */ ICustomizedTreeContentProvider createCustomizedTreeContentProvider(ICustomizationManager customManager); }