diff options
author | Sopot Çela | 2012-07-19 22:13:08 +0000 |
---|---|---|
committer | Lars Vogel | 2012-07-19 22:13:08 +0000 |
commit | ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2 (patch) | |
tree | 4d56f6f7233f0402a0e34faa65fc3869e7d4226c | |
parent | 7641e72c682a6401af43f4c7c98212ccd9044a87 (diff) | |
download | org.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.tar.gz org.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.tar.xz org.eclipse.e4.tools-ec4c851a21cf834b19c4ef41b0a3aa830d0cdab2.zip |
Bug 385556 - Warn if Binding Context name is left empty
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 708e717f..e0a2e6eb 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 2ecc6561..609bcdc4 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 0b4f7d17..f6c2d516 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); |