Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 55436 Details for
Bug 166989
Show Related Elements dialog not fully accessibility-compliant
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
final patch
Patch_Bugzilla166989 (text/plain), 4.91 KB, created by
Alex Boyko
on 2006-12-11 16:20:27 EST
(
hide
)
Description:
final patch
Filename:
MIME Type:
Creator:
Alex Boyko
Created:
2006-12-11 16:20:27 EST
Size:
4.91 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.runtime.common.ui >Index: src/org/eclipse/gmf/runtime/common/ui/dialogs/ShowRelatedElementsComposite.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.common.ui/src/org/eclipse/gmf/runtime/common/ui/dialogs/ShowRelatedElementsComposite.java,v >retrieving revision 1.3 >diff -u -r1.3 ShowRelatedElementsComposite.java >--- src/org/eclipse/gmf/runtime/common/ui/dialogs/ShowRelatedElementsComposite.java 28 Oct 2005 19:58:48 -0000 1.3 >+++ src/org/eclipse/gmf/runtime/common/ui/dialogs/ShowRelatedElementsComposite.java 11 Dec 2006 21:00:37 -0000 >@@ -464,10 +464,19 @@ > gridLayout.marginHeight = gridLayout.marginWidth = 0; > this.expansionComposite.setLayout(gridLayout); > >- new Label(this.expansionComposite, SWT.NULL).setText( >- CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_Text); >+ Label label1 = new Label(this.expansionComposite, SWT.NULL); >+ gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); >+ label1.setLayoutData(gridData); >+ label1.setText(CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_Text); >+ >+ Composite expansionGroupComposite = new Composite(this.expansionComposite, SWT.NONE); >+ gridData = new GridData(GridData.FILL_HORIZONTAL); >+ expansionGroupComposite.setLayoutData(gridData); >+ gridLayout = new GridLayout(); >+ gridLayout.marginHeight = gridLayout.marginWidth = 0; >+ expansionGroupComposite.setLayout(gridLayout); > >- consumerToSelection = new Button(this.expansionComposite, SWT.RADIO); >+ consumerToSelection = new Button(expansionGroupComposite, SWT.RADIO); > consumerToSelection.setText( > CommonUIMessages.ShowRelatedElementsDialog_Incoming); > consumerToSelection.addSelectionListener(new SelectionListener() { >@@ -481,9 +490,7 @@ > } > }); > >- new Label(this.expansionComposite, SWT.NULL); >- >- selectionToSupplier = new Button(this.expansionComposite, SWT.RADIO); >+ selectionToSupplier = new Button(expansionGroupComposite, SWT.RADIO); > selectionToSupplier.setText( > CommonUIMessages.ShowRelatedElementsDialog_Outgoing); > selectionToSupplier.addSelectionListener(new SelectionListener() { >@@ -497,12 +504,8 @@ > } > }); > >- if (showAllConnected) { >- new Label(this.expansionComposite, SWT.NULL); >- } >- > //TODO temporarily hide the all connected radio button >- allConnected = new Button(this.expansionComposite, SWT.RADIO); >+ allConnected = new Button(expansionGroupComposite, SWT.RADIO); > allConnected.setText( > CommonUIMessages.ShowRelatedElementsDialog_AllConnected); > allConnected.addSelectionListener(new SelectionListener() { >@@ -516,13 +519,17 @@ > } > }); > >- if (!showAllConnected) { >- allConnected.setVisible(false); >- } else { >- new Label(this.expansionComposite, SWT.NULL); >- } >+ gridData = new GridData(); >+ gridData.exclude = !showAllConnected; >+ allConnected.setLayoutData(gridData); >+ /* >+ * We have to set the visibility also to ensure screen readers >+ * read the grouped controls properly. JAWS, for example, requires >+ * controls to be invisible if they are to be skipped. >+ */ >+ allConnected.setVisible(showAllConnected); > >- both = new Button(this.expansionComposite, SWT.RADIO); >+ both = new Button(expansionGroupComposite, SWT.RADIO); > both > .setText( > CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_RadioButton_Both); >@@ -542,11 +549,19 @@ > //subclasses will override this method if they need to contribute > contributeToExpansionGroupComposite(this.expansionComposite); > >- new Label(expansionComposite, SWT.NULL) >- .setText( >- CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_Label_Levels); >+ Label label2 = new Label(this.expansionComposite, SWT.NULL); >+ gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); >+ label2.setLayoutData(gridData); >+ label2.setText(CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_Label_Levels); >+ >+ Composite levelsGroupComposite = new Composite(this.expansionComposite, SWT.NONE); >+ gridData = new GridData(GridData.FILL_HORIZONTAL); >+ levelsGroupComposite.setLayoutData(gridData); >+ gridLayout = new GridLayout(); >+ gridLayout.marginHeight = gridLayout.marginWidth = 0; >+ levelsGroupComposite.setLayout(gridLayout); > >- levels = new Text(this.expansionComposite, SWT.BORDER); >+ levels = new Text(levelsGroupComposite, SWT.BORDER); > gridData = new GridData(); > //just pick a small, reasonable number, no need to externalize levels > // size >@@ -565,9 +580,7 @@ > } > }); > >- new Label(this.expansionComposite, SWT.NULL); >- >- expandIndefinitely = new Button(this.expansionComposite, SWT.CHECK); >+ expandIndefinitely = new Button(levelsGroupComposite, SWT.CHECK); > expandIndefinitely > .setText( > CommonUIMessages.ShowRelatedElementsDialog_ExpansionGroup_CheckBox_Expand_Indefinitely);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 166989
:
55156
|
55433
| 55436