Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/LanguageBodyEditor.java')
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/LanguageBodyEditor.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/LanguageBodyEditor.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/LanguageBodyEditor.java
new file mode 100644
index 00000000000..c37c139a610
--- /dev/null
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/LanguageBodyEditor.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2018 CEA LIST and others.
+ *
+ * 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:
+ * Vincent Lorenzo (CEA LIST) - vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.properties.widgets;
+
+/**
+ * This class allows to manage the change of the language to use in a body editor.
+ * This interface has been created to fix the Bug 536594: [Properties][OpaqueExpression][XText] the change of the language to use doesn't work propertly with Xtext editor
+ *
+ * @author Vincent LORENZO
+ * @since 3.2
+ */
+public interface LanguageBodyEditor extends BodyEditor {
+
+ /**
+ *
+ * @param language
+ * the language associated to the editor, it can't be <code>null</code>
+ */
+ public default void setLanguage(final String language) { // default to ensure implementation and avoid API break
+ // do nothing
+ }
+
+ /**
+ *
+ * @return
+ * the language associated to the editor, it can be an empty string if the language is not yet defined
+ * it can't return <code>null</code>
+ */
+ public default String getLanguage() {
+ return ""; //$NON-NLS-1$ //to ensure implementation and avoid API break
+ }
+}

Back to the top