summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2010-03-05 17:12:50 +0000
committerCarolyn MacLeod <carolyn>2010-03-05 17:12:50 +0000
commit2f0a3be63f58e0334e834154fabbbd3798d5b945 (patch)
tree81eaa6682c63f6f46383bee4e47b4fb91735a921
parent7dc6a6441003a90a81946c350df694c10921a5d1 (diff)
downloadeclipse.platform.swt-2f0a3be63f58e0334e834154fabbbd3798d5b945.tar.gz
eclipse.platform.swt-2f0a3be63f58e0334e834154fabbbd3798d5b945.tar.xz
eclipse.platform.swt-2f0a3be63f58e0334e834154fabbbd3798d5b945.zip
support localized name
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionAdapter.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionEvent.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionListener.java5
3 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionAdapter.java
index 5f819ab9c2..41b22f6e98 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionAdapter.java
@@ -79,14 +79,15 @@ public class AccessibleActionAdapter implements AccessibleActionListener {
public void getKeyBinding(AccessibleActionEvent e) {}
/**
- * Returns the non-localized name of the specified action.
+ * Returns the name of the specified action.
* <p>
* There is no need to implement this method for single action controls
* since that would be redundant with AccessibleControlListener.getDefaultAction.
* </p>
*
* @param e an event object containing the following fields:<ul>
- * <li>[in] index - a 0 based index specifying which action's non-localized name to return</li>
+ * <li>[in] index - a 0 based index specifying which action's name to return</li>
+ * <li>[in] localized - a boolean indicating whether or not to return a localized name</li>
* <li>[out] result - the name of the specified action,
* or null if the index lies outside the valid range</li>
* </ul>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionEvent.java
index c4d40f087c..2e3069edf8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionEvent.java
@@ -32,6 +32,7 @@ public class AccessibleActionEvent extends SWTEventObject {
public String result;
public int count;
public int index;
+ public boolean localized;
static final long serialVersionUID = 2849066792640153087L;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionListener.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionListener.java
index 9155e4f577..641514103c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/common/org/eclipse/swt/accessibility/AccessibleActionListener.java
@@ -82,14 +82,15 @@ public interface AccessibleActionListener extends SWTEventListener {
public void getKeyBinding(AccessibleActionEvent e);
/**
- * Returns the non-localized name of the specified action.
+ * Returns the name of the specified action.
* <p>
* There is no need to implement this method for single action controls
* since that would be redundant with AccessibleControlListener.getDefaultAction.
* </p>
*
* @param e an event object containing the following fields:<ul>
- * <li>[in] index - a 0 based index specifying which action's non-localized name to return</li>
+ * <li>[in] index - a 0 based index specifying which action's name to return</li>
+ * <li>[in] localized - a boolean indicating whether or not to return a localized name</li>
* <li>[out] result - the name of the specified action,
* or null if the index lies outside the valid range</li>
* </ul>