Bug 577961 - Model Spy List tab not accessible with keyboard only
Change-Id: I59dda99acf03a7c4abacb221cbd8a41cf58ba19a
Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.ui.tools/+/191910
Tested-by: Platform Bot <platform-bot@eclipse.org>
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 b2b9a04..f441cb1 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010-2016 BestSolution.at and others.
+ * Copyright (c) 2010-2022 BestSolution.at and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -803,6 +803,7 @@
public String ListTab_mark;
public String ListTab_markAttribute;
public String ListTab_removeFilter;
+ public String ListTab_more;
public String ListTab_resetColumns;
public String ListTab_selectAnAttribute;
public String ListTab_selectAType;
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 e47aac7..d692591 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
@@ -1,5 +1,5 @@
# ******************************************************************************
-# * Copyright (c) 2010-2016 BestSolution.at and others.
+# * Copyright (c) 2010-2022 BestSolution.at and others.
# *
# * This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License 2.0
@@ -751,8 +751,8 @@
ModelEditor_Delete=Remove
ModelEditor_ExpandSubtree=Expand/Collapse (CTRL + Mouse)
-ModelEditor_Form=Form
-ModelEditor_XMI=XMI
+ModelEditor_Form=&Form
+ModelEditor_XMI=&XMI
ModelEditor_ExternalizeStrings=Externalize Strings
ModelEditor_ExportIds=Export Element Ids
ModelEditor_Script=Execute Script
@@ -790,7 +790,7 @@
KeyBindingEditor_SequenceLowercase=Key sequences should be specified in uppercase characters
ModelTooling_CommandId_tooltip=Command identifier. Must be defined for a command to work properly.
-ListTab_0=List
+ListTab_0=&List
ListTab_1=Mark Duplicate IDs
ListTab_2=Duplicate IDs will be highlighted
ListTab_3=Repair Duplicate IDs
@@ -806,12 +806,13 @@
ListTab_col_go=Go
ListTab_addColumn=Add &Column
-ListTab_filterByAttribute=Filter By &Attribute
+ListTab_filterByAttribute=Filter By Attri&bute
ListTab_filterByItem=Filter By &Item
ListTab_mark=Mark
ListTab_markAttribute=&Filter By Attribute
-ListTab_removeFilter=&Remove Filter
-ListTab_resetColumns=R&eset Columns
+ListTab_removeFilter=Rem&ove Filter
+ListTab_more=&More
+ListTab_resetColumns=Rese&t Columns
ListTab_selectAnAttribute=Select an attribute
ListTab_selectAType=Select a type
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/ListTab.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/ListTab.java
index 1fd2ebd..f05f16a 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/ListTab.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/ListTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014, 2017 TwelveTone LLC and others.
+ * Copyright (c) 2014, 2022 TwelveTone LLC and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -477,7 +477,7 @@
{
final E4ToolItemMenu tiCommands = new E4ToolItemMenu(toolBar, context);
tiCommands.getToolItem().setImage(imageCache.create("/icons/full/obj16/command.gif")); //$NON-NLS-1$
-
+ tiCommands.getToolItem().setText(Messages.ListTab_more + ELIPSIS);
final ArrayList<String> commandIds = new ArrayList<>();
commandIds.add("org.eclipse.e4.tools.emf.ui.command.mark_duplicate_attributes"); //$NON-NLS-1$
commandIds.add("org.eclipse.e4.tools.emf.ui.command.mark_duplicate_ids"); //$NON-NLS-1$