Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schindl2010-07-18 11:05:44 +0000
committerThomas Schindl2010-07-18 11:05:44 +0000
commitc772cb0ace9f4477103ef69be29d4b8addd4c678 (patch)
treeaede867c2554b2bd82b4d1ea3fd84baddb29f540
parentc180b81093b9e971cdec58256fec1564bed500a5 (diff)
downloadorg.eclipse.e4.tools-c772cb0ace9f4477103ef69be29d4b8addd4c678.tar.gz
org.eclipse.e4.tools-c772cb0ace9f4477103ef69be29d4b8addd4c678.tar.xz
org.eclipse.e4.tools-c772cb0ace9f4477103ef69be29d4b8addd4c678.zip
Bug 304584 - [Tooling] Implement Workbench-Model-Tooling
* some nls stuff
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java44
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties46
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java4
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/RenderedToolBarEditor.java3
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolBarContributionEditor.java15
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java10
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolItemEditor.java34
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimBarEditor.java23
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimContributionEditor.java39
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimmedWindowEditor.java5
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/WindowEditor.java47
11 files changed, 168 insertions, 102 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 10a1bc77..c73dc5ef 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
@@ -295,6 +295,50 @@ public class Messages extends NLS {
public static String RenderedMenuItem_TreeLabel;
public static String RenderedMenuItem_TreeLabelDescription;
+ public static String RenderedToolBarEditor_TreeLabel;
+
+ public static String ToolBarContributionEditor_TreeLabel;
+ public static String ToolBarContributionEditor_TreeLabelDescription;
+
+ public static String ToolItemEditor_Type;
+ public static String ToolItemEditor_Label;
+ public static String ToolItemEditor_ToolTip;
+ public static String ToolItemEditor_IconURI;
+ public static String ToolItemEditor_Enabled;
+ public static String ToolItemEditor_Selected;
+
+ public static String TrimBarEditor_TreeLabel;
+ public static String TrimBarEditor_TreeLabelDescription;
+ public static String TrimBarEditor_Side;
+ public static String TrimBarEditor_Controls;
+
+ public static String TrimContributionEditor_TreeLabel;
+ public static String TrimContributionEditor_TreeLabelDescription;
+ public static String TrimContributionEditor_ParentId;
+ public static String TrimContributionEditor_Position;
+ public static String TrimContributionEditor_Controls;
+
+ public static String TrimmedWindowEditor_TrimBars;
+ public static String TrimmedWindowEditor_TreeLabel;
+
+ public static String WindowEditor_AddMainMenu;
+ public static String WindowEditor_TreeLabel;
+ public static String WindowEditor_TreeLabelDescription;
+ public static String WindowEditor_X;
+ public static String WindowEditor_Y;
+ public static String WindowEditor_Width;
+ public static String WindowEditor_Height;
+ public static String WindowEditor_Label;
+ public static String WindowEditor_Tooltip;
+ public static String WindowEditor_IconURI;
+ public static String WindowEditor_MainMenu;
+ public static String WindowEditor_SelectedElement;
+ public static String WindowEditor_BindingContexts;
+ public static String WindowEditor_Handlers;
+ public static String WindowEditor_Windows;
+ public static String WindowEditor_Controls;
+ public static String WindowEditor_SharedElements;
+
static {
NLS.initializeMessages(Messages.class.getName(), Messages.class);
}
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 3cfa66c4..924f9d57 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
@@ -289,4 +289,48 @@ PopupMenuEditor_TreeLabelDescription=Popup Menu Bla Bla Bla Bla
RenderedMenuEditor_TreeLabel=Rendered Menu
RenderedMenuItem_TreeLabel=Rendered MenuItem
-RenderedMenuItem_TreeLabelDescription=Rendered MenuItem Bla Bla Bla Bla \ No newline at end of file
+RenderedMenuItem_TreeLabelDescription=Rendered MenuItem Bla Bla Bla Bla
+
+RenderedToolBarEditor_TreeLabel=Rendered ToolBar
+
+ToolBarContributionEditor_TreeLabel=ToolBar Contribution
+ToolBarContributionEditor_TreeLabelDescription=ToolBar Contribution Bla Bla Bla Bla
+
+ToolItemEditor_Type=Type
+ToolItemEditor_Label=Label
+ToolItemEditor_ToolTip=Tooltip
+ToolItemEditor_IconURI=Icon URI
+ToolItemEditor_Enabled=Enabled
+ToolItemEditor_Selected=Selected
+
+TrimBarEditor_TreeLabel=Window Trim
+TrimBarEditor_TreeLabelDescription=Window Trim bla bla bla
+TrimBarEditor_Side=Side
+TrimBarEditor_Controls=Controls
+
+TrimContributionEditor_TreeLabel=Trim Contribution
+TrimContributionEditor_TreeLabelDescription=Trim Contribution Bla Bla Bla Bla
+TrimContributionEditor_ParentId=Parent Id
+TrimContributionEditor_Position=Position
+TrimContributionEditor_Controls=Controls
+
+TrimmedWindowEditor_TrimBars=TrimBars
+TrimmedWindowEditor_TreeLabel=Trimmed Window
+
+WindowEditor_AddMainMenu=Add Main Menu
+WindowEditor_TreeLabel=Window
+WindowEditor_TreeLabelDescription=Window bla bla bla
+WindowEditor_X=X
+WindowEditor_Y=Y
+WindowEditor_Width=Width
+WindowEditor_Height=Height
+WindowEditor_Label=Label
+WindowEditor_Tooltip=Tooltip
+WindowEditor_IconURI=Icon URI
+WindowEditor_MainMenu=Main Menu
+WindowEditor_SelectedElement=Selected Element
+WindowEditor_BindingContexts=Binding Contexts
+WindowEditor_Handlers=Handlers
+WindowEditor_Windows=Windows
+WindowEditor_Controls=Controls
+WindowEditor_SharedElements=Shared Elements \ No newline at end of file
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
index 1474e5c6..c26df49c 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
@@ -584,8 +584,8 @@ public class ModelEditor {
registerEditor(MenuPackageImpl.Literals.DIRECT_MENU_ITEM, new DirectMenuItemEditor(modelProvider.getEditingDomain(), this, project));
registerEditor(MenuPackageImpl.Literals.RENDERED_MENU_ITEM, new RenderedMenuItem(modelProvider.getEditingDomain(), this, project));
registerEditor(MenuPackageImpl.Literals.MENU_CONTRIBUTION, new MenuContributionEditor(modelProvider.getEditingDomain(), project, this));
- registerEditor(MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTION, new ToolBarContributionEditor(modelProvider.getEditingDomain(), project, this));
- registerEditor(MenuPackageImpl.Literals.TRIM_CONTRIBUTION, new TrimContributionEditor(modelProvider.getEditingDomain(), project, this));
+ registerEditor(MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTION, new ToolBarContributionEditor(modelProvider.getEditingDomain(), this));
+ registerEditor(MenuPackageImpl.Literals.TRIM_CONTRIBUTION, new TrimContributionEditor(modelProvider.getEditingDomain(), this));
registerEditor(BasicPackageImpl.Literals.PART, new PartEditor(modelProvider.getEditingDomain(), this, project));
registerEditor(BasicPackageImpl.Literals.WINDOW, new WindowEditor(modelProvider.getEditingDomain(), this, project));
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/RenderedToolBarEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/RenderedToolBarEditor.java
index 4cc0c206..9618f31d 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/RenderedToolBarEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/RenderedToolBarEditor.java
@@ -10,6 +10,7 @@
******************************************************************************/
package org.eclipse.e4.tools.emf.ui.internal.common.component;
+import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor;
import org.eclipse.emf.edit.domain.EditingDomain;
@@ -21,6 +22,6 @@ public class RenderedToolBarEditor extends ToolBarEditor {
@Override
public String getLabel(Object element) {
- return "Rendered ToolBar";
+ return Messages.RenderedToolBarEditor_TreeLabel;
}
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolBarContributionEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolBarContributionEditor.java
index 4d0a999e..d4f709e6 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolBarContributionEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolBarContributionEditor.java
@@ -16,7 +16,6 @@ import java.util.List;
import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.databinding.observable.value.WritableValue;
import org.eclipse.core.databinding.property.list.IListProperty;
-import org.eclipse.core.resources.IProject;
import org.eclipse.e4.tools.emf.ui.common.EStackLayout;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
@@ -70,7 +69,6 @@ import org.eclipse.swt.widgets.Text;
public class ToolBarContributionEditor extends AbstractComponentEditor {
private Composite composite;
private EMFDataBindingContext context;
- private IProject project;
private IListProperty ELEMENT_CONTAINER__CHILDREN = EMFProperties.list(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN);
private EStackLayout stackLayout;
@@ -87,9 +85,8 @@ public class ToolBarContributionEditor extends AbstractComponentEditor {
}
}
- public ToolBarContributionEditor(EditingDomain editingDomain, IProject project, ModelEditor editor) {
+ public ToolBarContributionEditor(EditingDomain editingDomain, ModelEditor editor) {
super(editingDomain, editor);
- this.project = project;
}
@Override
@@ -118,7 +115,7 @@ public class ToolBarContributionEditor extends AbstractComponentEditor {
@Override
public String getLabel(Object element) {
- return "ToolBar Contribution";
+ return Messages.ToolBarContributionEditor_TreeLabel;
}
@Override
@@ -128,7 +125,7 @@ public class ToolBarContributionEditor extends AbstractComponentEditor {
@Override
public String getDescription(Object element) {
- return "ToolBar Contribution Bla Bla Bla Bla";
+ return Messages.ToolBarContributionEditor_TreeLabelDescription;
}
@Override
@@ -363,10 +360,10 @@ public class ToolBarContributionEditor extends AbstractComponentEditor {
});
}
- ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
- ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_ToBeRendered, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED));
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_Visible, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE));
- ControlFactory.createStringListWidget(parent, this, "Tags", ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
return parent;
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
index 04b600aa..7fca52fe 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolControlEditor.java
@@ -168,7 +168,7 @@ public class ToolControlEditor extends AbstractComponentEditor {
final Button b = new Button(parent, SWT.PUSH | SWT.FLAT);
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
b.setImage(getImage(t.getDisplay(), SEARCH_IMAGE));
- b.setText("Find ...");
+ b.setText(Messages.ModelTooling_Common_FindEllipsis);
b.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
@@ -178,11 +178,11 @@ public class ToolControlEditor extends AbstractComponentEditor {
});
}
- ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
- ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_ToBeRendered, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED));
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_Visible, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE));
- ControlFactory.createMapProperties(parent, this, "Persisted State", ApplicationPackageImpl.Literals.CONTRIBUTION__PERSISTED_STATE, VERTICAL_LIST_WIDGET_INDENT);
- ControlFactory.createStringListWidget(parent, this, "Tags", ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createMapProperties(parent, this, Messages.ModelTooling_Contribution_PersistedState, ApplicationPackageImpl.Literals.CONTRIBUTION__PERSISTED_STATE, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
return parent;
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolItemEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolItemEditor.java
index 94c5e626..3b893b61 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolItemEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ToolItemEditor.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.tools.emf.ui.common.EStackLayout;
import org.eclipse.e4.tools.emf.ui.common.ImageTooltip;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
+import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor;
import org.eclipse.e4.tools.emf.ui.internal.common.component.dialogs.ToolItemIconDialogEditor;
import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
@@ -108,22 +109,14 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
return parent;
}
- Label l = new Label(parent, SWT.NONE);
- l.setText("Id");
- l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
-
- Text t = new Text(parent, SWT.BORDER);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 2;
- t.setLayoutData(gd);
- context.bindValue(textProp.observeDelayed(200, t), EMFEditProperties.value(getEditingDomain(), ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__ELEMENT_ID).observeDetail(master));
+ ControlFactory.createTextField(parent, Messages.ModelTooling_Common_Id, master, context, textProp, EMFEditProperties.value(getEditingDomain(), ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__ELEMENT_ID));
createFormSubTypeForm(parent, context, master);
return parent;
}
- private void createFormSubTypeForm(Composite parent, EMFDataBindingContext context, final WritableValue master) {
+ protected void createFormSubTypeForm(Composite parent, EMFDataBindingContext context, final WritableValue master) {
IValueProperty textProp = WidgetProperties.text(SWT.Modify);
IWidgetValueProperty checkProp = WidgetProperties.selection();
IWidgetValueProperty enabled = WidgetProperties.enabled();
@@ -131,7 +124,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Type");
+ l.setText(Messages.ToolItemEditor_Type);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
ComboViewer viewer = new ComboViewer(parent);
@@ -147,7 +140,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Label");
+ l.setText(Messages.ToolItemEditor_Label);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -160,7 +153,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Tooltip");
+ l.setText(Messages.ToolItemEditor_ToolTip);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -173,7 +166,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Icon URI");
+ l.setText(Messages.ToolItemEditor_IconURI);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -194,7 +187,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
};
final Button b = new Button(parent, SWT.PUSH | SWT.FLAT);
- b.setText("Find ...");
+ b.setText(Messages.ModelTooling_Common_FindEllipsis);
b.setImage(getImage(b.getDisplay(), SEARCH_IMAGE));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
b.addSelectionListener(new SelectionAdapter() {
@@ -208,7 +201,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Enabled");
+ l.setText(Messages.ToolItemEditor_Enabled);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Button b = new Button(parent, SWT.CHECK);
@@ -218,7 +211,7 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Selected");
+ l.setText(Messages.ToolItemEditor_Selected);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Button b = new Button(parent, SWT.CHECK);
@@ -248,10 +241,10 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
createSubTypeFormElements(parent, context, master);
- ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
- ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_ToBeRendered, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED));
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_Visible, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE));
- ControlFactory.createStringListWidget(parent, this, "Tags", ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
}
protected void createSubTypeFormElements(Composite parent, EMFDataBindingContext context, WritableValue master) {
@@ -260,7 +253,6 @@ public abstract class ToolItemEditor extends AbstractComponentEditor {
@Override
public IObservableList getChildList(Object element) {
- // TODO Auto-generated method stub
return null;
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimBarEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimBarEditor.java
index 50400987..304c8482 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimBarEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimBarEditor.java
@@ -20,6 +20,7 @@ import org.eclipse.core.databinding.property.list.IListProperty;
import org.eclipse.e4.tools.emf.ui.common.EStackLayout;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
+import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.common.ComponentLabelProvider;
import org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor;
import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
@@ -104,12 +105,12 @@ public class TrimBarEditor extends AbstractComponentEditor {
@Override
public String getLabel(Object element) {
- return "Window Trim";
+ return Messages.TrimBarEditor_TreeLabel;
}
@Override
public String getDescription(Object element) {
- return "Window Trim bla bla bla";
+ return Messages.TrimBarEditor_TreeLabelDescription;
}
@Override
@@ -161,7 +162,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Id");
+ l.setText(Messages.ModelTooling_Common_Id);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -174,7 +175,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Side");
+ l.setText(Messages.TrimBarEditor_Side);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
ComboViewer viewer = new ComboViewer(parent);
@@ -190,7 +191,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Controls");
+ l.setText(Messages.TrimBarEditor_Controls);
l.setLayoutData(new GridData(GridData.END, GridData.BEGINNING, false, false));
final TableViewer viewer = new TableViewer(parent);
@@ -213,7 +214,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
buttonComp.setLayout(gl);
Button b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Up");
+ b.setText(Messages.ModelTooling_Common_Up);
b.setImage(getImage(b.getDisplay(), ARROW_UP));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -237,7 +238,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
});
b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Down");
+ b.setText(Messages.ModelTooling_Common_Down);
b.setImage(getImage(b.getDisplay(), ARROW_DOWN));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -288,7 +289,7 @@ public class TrimBarEditor extends AbstractComponentEditor {
});
b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Remove");
+ b.setText(Messages.ModelTooling_Common_Remove);
b.setImage(getImage(b.getDisplay(), TABLE_DELETE_IMAGE));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -306,8 +307,10 @@ public class TrimBarEditor extends AbstractComponentEditor {
});
}
- ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
- ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_ToBeRendered, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED));
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_Visible, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE));
+
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
return parent;
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimContributionEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimContributionEditor.java
index 19d3e2c1..584f000e 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimContributionEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimContributionEditor.java
@@ -16,7 +16,6 @@ import java.util.List;
import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.databinding.observable.value.WritableValue;
import org.eclipse.core.databinding.property.list.IListProperty;
-import org.eclipse.core.resources.IProject;
import org.eclipse.e4.tools.emf.ui.common.EStackLayout;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
@@ -65,26 +64,12 @@ import org.eclipse.swt.widgets.Text;
public class TrimContributionEditor extends AbstractComponentEditor {
private Composite composite;
private EMFDataBindingContext context;
- private IProject project;
private IListProperty ELEMENT_CONTAINER__CHILDREN = EMFProperties.list(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN);
private EStackLayout stackLayout;
- private static class Struct {
- private final String label;
- private final EClass eClass;
- private final boolean separator;
-
- public Struct(String label, EClass eClass, boolean separator) {
- this.label = label;
- this.eClass = eClass;
- this.separator = separator;
- }
- }
-
- public TrimContributionEditor(EditingDomain editingDomain, IProject project, ModelEditor editor) {
+ public TrimContributionEditor(EditingDomain editingDomain, ModelEditor editor) {
super(editingDomain, editor);
- this.project = project;
}
@Override
@@ -113,7 +98,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
@Override
public String getLabel(Object element) {
- return "Trim Contribution";
+ return Messages.TrimContributionEditor_TreeLabel;
}
@Override
@@ -123,7 +108,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
@Override
public String getDescription(Object element) {
- return "Trim Contribution Bla Bla Bla Bla";
+ return Messages.TrimContributionEditor_TreeLabelDescription;
}
@Override
@@ -188,7 +173,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.MenuContributionEditor_ParentId);
+ l.setText(Messages.TrimContributionEditor_ParentId);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -201,7 +186,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.MenuContributionEditor_Position);
+ l.setText(Messages.TrimContributionEditor_Position);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -214,7 +199,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Controls");
+ l.setText(Messages.TrimContributionEditor_Controls);
l.setLayoutData(new GridData(GridData.END, GridData.BEGINNING, false, false));
final TableViewer viewer = new TableViewer(parent);
@@ -237,7 +222,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
buttonComp.setLayout(gl);
Button b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Up");
+ b.setText(Messages.ModelTooling_Common_Up);
b.setImage(getImage(b.getDisplay(), ARROW_UP));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -261,7 +246,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
});
b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Down");
+ b.setText(Messages.ModelTooling_Common_Down);
b.setImage(getImage(b.getDisplay(), ARROW_DOWN));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -312,7 +297,7 @@ public class TrimContributionEditor extends AbstractComponentEditor {
});
b = new Button(buttonComp, SWT.PUSH | SWT.FLAT);
- b.setText("Remove");
+ b.setText(Messages.ModelTooling_Common_Remove);
b.setImage(getImage(b.getDisplay(), TABLE_DELETE_IMAGE));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
b.addSelectionListener(new SelectionAdapter() {
@@ -330,10 +315,10 @@ public class TrimContributionEditor extends AbstractComponentEditor {
});
}
- ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
- ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_ToBeRendered, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED));
+ ControlFactory.createCheckBox(parent, Messages.ModelTooling_UIElement_Visible, getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE));
- ControlFactory.createStringListWidget(parent, this, "Tags", ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
return parent;
}
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimmedWindowEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimmedWindowEditor.java
index dcf63e63..b4fa9948 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimmedWindowEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/TrimmedWindowEditor.java
@@ -14,6 +14,7 @@ import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.databinding.property.list.IListProperty;
import org.eclipse.core.resources.IProject;
import org.eclipse.e4.tools.emf.ui.common.Util;
+import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor;
import org.eclipse.e4.tools.emf.ui.internal.common.VirtualEntry;
import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl;
@@ -35,7 +36,7 @@ public class TrimmedWindowEditor extends WindowEditor {
return list;
}
- list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_TRIMMED_WINDOW_TRIMS, TRIMMED_WINDOW__TRIM_BARS, element, "TrimBars") {
+ list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_TRIMMED_WINDOW_TRIMS, TRIMMED_WINDOW__TRIM_BARS, element, Messages.TrimmedWindowEditor_TrimBars) {
@Override
protected boolean accepted(Object o) {
@@ -48,6 +49,6 @@ public class TrimmedWindowEditor extends WindowEditor {
@Override
public String getLabel(Object element) {
- return "Trimmed Window";
+ return Messages.TrimmedWindowEditor_TreeLabel;
}
} \ No newline at end of file
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/WindowEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/WindowEditor.java
index 5bc5a3d1..c1d9ae44 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/WindowEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/WindowEditor.java
@@ -26,6 +26,7 @@ import org.eclipse.e4.tools.emf.ui.common.EStackLayout;
import org.eclipse.e4.tools.emf.ui.common.ImageTooltip;
import org.eclipse.e4.tools.emf.ui.common.Util;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
+import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor;
import org.eclipse.e4.tools.emf.ui.internal.common.VirtualEntry;
import org.eclipse.e4.tools.emf.ui.internal.common.component.dialogs.WindowIconDialogEditor;
@@ -66,7 +67,6 @@ import org.eclipse.swt.widgets.Text;
public class WindowEditor extends AbstractComponentEditor {
private Composite composite;
- private Image image;
private EMFDataBindingContext context;
private IProject project;
@@ -79,12 +79,11 @@ public class WindowEditor extends AbstractComponentEditor {
private Action addMainMenu;
private Button createRemoveMainMenu;
private EStackLayout stackLayout;
- private Image tbrImage;
public WindowEditor(EditingDomain editingDomain, ModelEditor editor, IProject project) {
super(editingDomain, editor);
this.project = project;
- addMainMenu = new Action("Add Main Menu") {
+ addMainMenu = new Action(Messages.WindowEditor_AddMainMenu) {
@Override
public void run() {
addMenu();
@@ -118,12 +117,12 @@ public class WindowEditor extends AbstractComponentEditor {
@Override
public String getLabel(Object element) {
- return "Window";
+ return Messages.WindowEditor_TreeLabel;
}
@Override
public String getDescription(Object element) {
- return "Window bla bla bla";
+ return Messages.WindowEditor_TreeLabelDescription;
}
@Override
@@ -180,7 +179,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Id");
+ l.setText(Messages.ModelTooling_Common_Id);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -193,7 +192,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("X");
+ l.setText(Messages.WindowEditor_X);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -206,7 +205,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Y");
+ l.setText(Messages.WindowEditor_Y);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -219,7 +218,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Width");
+ l.setText(Messages.WindowEditor_Width);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -232,7 +231,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Height");
+ l.setText(Messages.WindowEditor_Height);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -245,7 +244,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Label");
+ l.setText(Messages.WindowEditor_Label);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -258,7 +257,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Tooltip");
+ l.setText(Messages.WindowEditor_Tooltip);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -271,7 +270,7 @@ public class WindowEditor extends AbstractComponentEditor {
// ------------------------------------------------------------
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Icon URI");
+ l.setText(Messages.WindowEditor_IconURI);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
Text t = new Text(parent, SWT.BORDER);
@@ -292,7 +291,7 @@ public class WindowEditor extends AbstractComponentEditor {
};
final Button b = new Button(parent, SWT.PUSH | SWT.FLAT);
- b.setText("Find ...");
+ b.setText(Messages.ModelTooling_Common_FindEllipsis);
b.setImage(getImage(b.getDisplay(), SEARCH_IMAGE));
b.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
b.addSelectionListener(new SelectionAdapter() {
@@ -306,7 +305,7 @@ public class WindowEditor extends AbstractComponentEditor {
{
Label l = new Label(parent, SWT.NONE);
- l.setText("Main Menu");
+ l.setText(Messages.WindowEditor_MainMenu);
l.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
createRemoveMainMenu = new Button(parent, SWT.CHECK);
@@ -327,11 +326,11 @@ public class WindowEditor extends AbstractComponentEditor {
ControlFactory.createCheckBox(parent, "To Be Rendered", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED)); //$NON-NLS-1$
ControlFactory.createCheckBox(parent, "Visible", getMaster(), context, WidgetProperties.selection(), EMFEditProperties.value(getEditingDomain(), UiPackageImpl.Literals.UI_ELEMENT__VISIBLE)); //$NON-NLS-1$
- ControlFactory.createSelectedElement(parent, this, context, "Selected Element");
- ControlFactory.createStringListWidget(parent, this, "Binding Contexts", CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, VERTICAL_LIST_WIDGET_INDENT);
- ControlFactory.createMapProperties(parent, this, "Context Properties", UiPackageImpl.Literals.CONTEXT__PROPERTIES, VERTICAL_LIST_WIDGET_INDENT);
- ControlFactory.createStringListWidget(parent, this, "Variables", UiPackageImpl.Literals.CONTEXT__VARIABLES, VERTICAL_LIST_WIDGET_INDENT);
- ControlFactory.createStringListWidget(parent, this, "Tags", ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createSelectedElement(parent, this, context, Messages.WindowEditor_SelectedElement);
+ ControlFactory.createStringListWidget(parent, this, Messages.WindowEditor_BindingContexts, CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createMapProperties(parent, this, Messages.ModelTooling_Context_Properties, UiPackageImpl.Literals.CONTEXT__PROPERTIES, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_Context_Variables, UiPackageImpl.Literals.CONTEXT__VARIABLES, VERTICAL_LIST_WIDGET_INDENT);
+ ControlFactory.createStringListWidget(parent, this, Messages.ModelTooling_ApplicationElement_Tags, ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, VERTICAL_LIST_WIDGET_INDENT);
return parent;
}
@@ -358,7 +357,7 @@ public class WindowEditor extends AbstractComponentEditor {
return list;
}
- list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_HANDLER, HANDLER_CONTAINER__HANDLERS, element, "Handlers") {
+ list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_HANDLER, HANDLER_CONTAINER__HANDLERS, element, Messages.WindowEditor_Handlers) {
@Override
protected boolean accepted(Object o) {
@@ -367,7 +366,7 @@ public class WindowEditor extends AbstractComponentEditor {
});
- list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOWS, WINDOW__WINDOWS, element, "Windows") {
+ list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOWS, WINDOW__WINDOWS, element, Messages.WindowEditor_Windows) {
@Override
protected boolean accepted(Object o) {
@@ -376,7 +375,7 @@ public class WindowEditor extends AbstractComponentEditor {
});
- list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOW_CONTROLS, ELEMENT_CONTAINER__CHILDREN, element, "Controls") {
+ list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOW_CONTROLS, ELEMENT_CONTAINER__CHILDREN, element, Messages.WindowEditor_Controls) {
@Override
protected boolean accepted(Object o) {
@@ -385,7 +384,7 @@ public class WindowEditor extends AbstractComponentEditor {
});
- list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOW_SHARED_ELEMENTS, SHARED_ELEMENTS, element, "Shared Elements") {
+ list.add(new VirtualEntry<Object>(ModelEditor.VIRTUAL_WINDOW_SHARED_ELEMENTS, SHARED_ELEMENTS, element, Messages.WindowEditor_SharedElements) {
protected boolean accepted(Object o) {
return true;
}

Back to the top