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/papyrus/emf/facet/custom/ui/internal/PropertiesHandlerFactory.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/PropertiesHandlerFactory.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/PropertiesHandlerFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/PropertiesHandlerFactory.java
new file mode 100644
index 00000000000..cc545fc4445
--- /dev/null
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/PropertiesHandlerFactory.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) 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 369987 - [Restructuring][Table] Switch to the new customization and facet framework
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Nicolas Bros (Mia-Software) - Bug 377866 - selection customization
+ */
+package org.eclipse.emf.facet.custom.ui.internal;
+
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.facet.custom.core.ICustomizationManager;
+import org.eclipse.emf.facet.custom.ui.IContentPropertiesHandler;
+import org.eclipse.emf.facet.custom.ui.IContentPropertiesHandlerFactory;
+import org.eclipse.emf.facet.custom.ui.ISelectionPropertiesHandler;
+import org.eclipse.emf.facet.custom.ui.ISelectionPropertiesHandlerFactory;
+import org.eclipse.emf.facet.custom.ui.internal.exported.ILabelPropertiesHandler;
+import org.eclipse.emf.facet.custom.ui.internal.exported.ILabelPropertiesHandlerFactory;
+
+public class PropertiesHandlerFactory implements
+ IContentPropertiesHandlerFactory, ILabelPropertiesHandlerFactory, ISelectionPropertiesHandlerFactory {
+
+ /**
+ * @deprecated must be replaced by
+ * org.eclipse.emf.facet.custom.ui.internal.PropertiesHandlerFactory
+ * .createIContentPropertiesHandler(ICustomizationManager)
+ */
+ @Deprecated
+ public IContentPropertiesHandler createIContentPropertiesHandler(
+ final ResourceSet resourceSet) {
+ return new PropertiesHandler(resourceSet);
+ }
+
+ public IContentPropertiesHandler createIContentPropertiesHandler(
+ final ICustomizationManager customizationMgr) {
+ return new PropertiesHandler(customizationMgr);
+ }
+
+ public ILabelPropertiesHandler createLabelPropertiesHandler(
+ final ICustomizationManager customizationMgr) {
+ return new PropertiesHandler(customizationMgr);
+ }
+
+ public ISelectionPropertiesHandler createSelectionPropertiesHandler(final ICustomizationManager customManager) {
+ return new PropertiesHandler(customManager);
+ }
+
+}

Back to the top