Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.sirius.diagram/src/org/eclipse/sirius/diagram/business/api/refresh/CanonicalSynchronizerFactory.java')
-rw-r--r--plugins/org.eclipse.sirius.diagram/src/org/eclipse/sirius/diagram/business/api/refresh/CanonicalSynchronizerFactory.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.diagram/src/org/eclipse/sirius/diagram/business/api/refresh/CanonicalSynchronizerFactory.java b/plugins/org.eclipse.sirius.diagram/src/org/eclipse/sirius/diagram/business/api/refresh/CanonicalSynchronizerFactory.java
new file mode 100644
index 0000000000..a38822e892
--- /dev/null
+++ b/plugins/org.eclipse.sirius.diagram/src/org/eclipse/sirius/diagram/business/api/refresh/CanonicalSynchronizerFactory.java
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2011 THALES GLOBAL SERVICES.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.sirius.diagram.business.api.refresh;
+
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.sirius.diagram.business.internal.dialect.CanonicalSynchronizerFactoryImpl;
+
+/**
+ * Factory for {@link CanonicalSynchronizer}.
+ *
+ * @author edugueperoux
+ *
+ * @since 0.9.0
+ * @noimplement This interface is not intended to be implemented by clients,
+ * only used for internal implementation.
+ */
+public interface CanonicalSynchronizerFactory {
+
+ /**
+ * The extension point ID.
+ */
+ String ID = "org.eclipse.sirius.diagram.canonicalSynchronizerFactoryOverride"; //$NON-NLS-1$
+
+ /**
+ * Extension point attribute for the factory class.
+ */
+ String CLASS_ATTRIBUTE = "class"; //$NON-NLS-1$
+
+
+ /**
+ * The shared default implementation of the validator factory interface.
+ */
+ CanonicalSynchronizerFactory INSTANCE = CanonicalSynchronizerFactoryImpl.init();
+
+ /**
+ * Operation to create a new {@link CanonicalSynchronizer}.
+ *
+ * @param gmfDiagram
+ * a {@link Diagram} to synchronize.
+ *
+ * @return the newly created {@link CanonicalSynchronizer}
+ */
+ CanonicalSynchronizer createCanonicalSynchronizer(Diagram gmfDiagram);
+}

Back to the top