summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Çela2012-07-19 18:13:08 (EDT)
committerLars Vogel2012-07-19 18:13:08 (EDT)
commitec4c851a21cf834b19c4ef41b0a3aa830d0cdab2 (patch)
tree4d56f6f7233f0402a0e34faa65fc3869e7d4226c
parent7641e72c682a6401af43f4c7c98212ccd9044a87 (diff)
downloadorg.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.zip
org.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.tar.gz
org.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.tar.bz2
Bug 385556 - Warn if Binding Context name is left empty
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java2
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties1
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingContextEditor.java2
3 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java
index 708e717..e0a2e6e 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java
@@ -321,6 +321,7 @@ public class Messages {
public String BindingContextEditor_Description;
public String BindingContextEditor_Subcontexts;
public String BindingContextEditor_AddContext;
+ public String BindingContextEditor_NameWarning;
public String CommandParameterEditor_TreeLabel;
public String CommandParameterEditor_TreeLabelDescritpion;
@@ -611,4 +612,5 @@ public class Messages {
public String ObjectViewer_Script;
public String CommandWizard_ShellTitle;
+
} \ No newline at end of file
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties
index 2ecc656..609bcdc 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties
@@ -321,6 +321,7 @@ BindingContextEditor_Name=Name
BindingContextEditor_Description=Description
BindingContextEditor_Subcontexts=Subcontexts
BindingContextEditor_AddContext=Binding Context
+BindingContextEditor_NameWarning=Binding Context name should be left empty
CommandParameterEditor_TreeLabel=Command Parameter
CommandParameterEditor_TreeLabelDescritpion=Command Parameter Bla Bla Bla
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingContextEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingContextEditor.java
index 0b4f7d1..f6c2d51 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingContextEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingContextEditor.java
@@ -160,7 +160,7 @@ public class BindingContextEditor extends AbstractComponentEditor {
}
ControlFactory.createTextField(parent, Messages.ModelTooling_Common_Id, master, context, textProp, EMFEditProperties.value(getEditingDomain(), ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__ELEMENT_ID));
- ControlFactory.createTextField(parent, Messages.BindingContextEditor_Name, master, context, textProp, EMFEditProperties.value(getEditingDomain(), CommandsPackageImpl.Literals.BINDING_CONTEXT__NAME));
+ ControlFactory.createTextField(parent, Messages.BindingContextEditor_Name, master, context, textProp, EMFEditProperties.value(getEditingDomain(), CommandsPackageImpl.Literals.BINDING_CONTEXT__NAME), Messages.BindingContextEditor_NameWarning);
ControlFactory.createTextField(parent, Messages.BindingContextEditor_Description, master, context, textProp, EMFEditProperties.value(getEditingDomain(), CommandsPackageImpl.Literals.BINDING_CONTEXT__DESCRIPTION));
Label l = new Label(parent, SWT.NONE);