Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/emf/facet/custom/ui/ICustomizedContentProviderFactory.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/emf/facet/custom/ui/ICustomizedContentProviderFactory.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/emf/facet/custom/ui/ICustomizedContentProviderFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/emf/facet/custom/ui/ICustomizedContentProviderFactory.java
new file mode 100644
index 00000000000..ced6cf1d4f1
--- /dev/null
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/emf/facet/custom/ui/ICustomizedContentProviderFactory.java
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * 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 v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * 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.emf.facet.custom.ui;
+
+import org.eclipse.emf.facet.custom.core.ICustomizationManager;
+import org.eclipse.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);
+}

Back to the top