Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors/src/org/eclipse/papyrus/infra/gmfdiag/extensionpoints/editors/configuration/IModelGenerator.java')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors/src/org/eclipse/papyrus/infra/gmfdiag/extensionpoints/editors/configuration/IModelGenerator.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors/src/org/eclipse/papyrus/infra/gmfdiag/extensionpoints/editors/configuration/IModelGenerator.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors/src/org/eclipse/papyrus/infra/gmfdiag/extensionpoints/editors/configuration/IModelGenerator.java
new file mode 100644
index 00000000000..16d4c08100e
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors/src/org/eclipse/papyrus/infra/gmfdiag/extensionpoints/editors/configuration/IModelGenerator.java
@@ -0,0 +1,44 @@
+/*****************************************************************************
+ * Copyright (c) 2008 CEA LIST.
+ *
+ *
+ * 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:
+ * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.configuration;
+
+import org.eclipse.core.runtime.IStatus;
+
+/**
+ * Standard interface for classes in charge of model validation and modification from a text
+ * representation of a UML element
+ */
+public interface IModelGenerator {
+
+ /**
+ * validates the element, given its textual representation
+ *
+ * @param label
+ * the label to validate
+ * @return the {@link IStatus} corresponding to the validation
+ */
+ public IStatus validate(String label);
+
+ /**
+ * modifies the element, given its textual representation
+ *
+ * @param label
+ * the label to validate
+ * @return the {@link IStatus} corresponding to the validation
+ */
+ // @unused
+ public IStatus modify(String label);
+}

Back to the top