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 49575 Details for
Bug 156456
[Forms] widgets accept focus even though they can't do anything with it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch that fixes the problem
156456_ui_forms_patch.txt (text/plain), 2.37 KB, created by
Stefan Xenos
on 2006-09-06 20:33:20 EDT
(
hide
)
Description:
Patch that fixes the problem
Filename:
MIME Type:
Creator:
Stefan Xenos
Created:
2006-09-06 20:33:20 EDT
Size:
2.37 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.forms >Index: src/org/eclipse/ui/forms/widgets/Section.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.forms/src/org/eclipse/ui/forms/widgets/Section.java,v >retrieving revision 1.28 >diff -u -r1.28 Section.java >--- src/org/eclipse/ui/forms/widgets/Section.java 15 Mar 2006 15:48:36 -0000 1.28 >+++ src/org/eclipse/ui/forms/widgets/Section.java 7 Sep 2006 00:31:58 -0000 >@@ -82,7 +82,7 @@ > super(parent, cstyle|getBackgroundStyle(style), style); > int rtl = cstyle & SWT.RIGHT_TO_LEFT; > if ((style & DESCRIPTION) != 0) { >- descriptionControl = new Text(this, SWT.READ_ONLY | SWT.WRAP | rtl); >+ descriptionControl = new Text(this, SWT.READ_ONLY | SWT.WRAP | SWT.NO_FOCUS | rtl); > } > if ((style & TITLE_BAR) != 0) { > Listener listener = new Listener() { >@@ -98,6 +98,10 @@ > } > } > >+ public boolean forceFocus() { >+ return false; >+ } >+ > private static int getBackgroundStyle(int estyle) { > return ((estyle & TITLE_BAR)!=0)?SWT.NO_BACKGROUND:SWT.NULL; > } >Index: src/org/eclipse/ui/internal/forms/widgets/FormHeading.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormHeading.java,v >retrieving revision 1.8 >diff -u -r1.8 FormHeading.java >--- src/org/eclipse/ui/internal/forms/widgets/FormHeading.java 3 May 2006 16:22:01 -0000 1.8 >+++ src/org/eclipse/ui/internal/forms/widgets/FormHeading.java 7 Sep 2006 00:31:59 -0000 >@@ -1139,6 +1139,10 @@ > busyLabel.setBusy(busy); > layout(); > } >+ >+ public boolean forceFocus() { >+ return false; >+ } > > public Control getHeadClient() { > return headClient; >Index: src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.java,v >retrieving revision 1.5 >diff -u -r1.5 BusyIndicator.java >--- src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.java 7 May 2006 18:23:41 -0000 1.5 >+++ src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.java 7 Sep 2006 00:31:58 -0000 >@@ -61,6 +61,10 @@ > } > }); > } >+ >+ public boolean forceFocus() { >+ return false; >+ } > > private void loadProgressImage() { > InputStream is = BusyIndicator.class
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 156456
: 49575 |
61695
|
84331