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 5006 Details for
Bug 38072
[Wizards] Broken layout in the Logic Example creation wizard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for 38072
38072.txt (text/plain), 2.77 KB, created by
Tod Creasey
on 2003-05-29 13:22:56 EDT
(
hide
)
Description:
Patch for 38072
Filename:
MIME Type:
Creator:
Tod Creasey
Created:
2003-05-29 13:22:56 EDT
Size:
2.77 KB
patch
obsolete
>Index: TitleAreaDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java,v >retrieving revision 1.8 >diff -u -r1.8 TitleAreaDialog.java >--- TitleAreaDialog.java 20 May 2003 19:07:00 -0000 1.8 >+++ TitleAreaDialog.java 29 May 2003 17:07:59 -0000 >@@ -70,6 +70,7 @@ > private String message = ""; //$NON-NLS-1$ > private String errorMessage; > private Text messageLabel; >+ private Composite workArea; > > private Label messageImageLabel; > private Image messageImage; >@@ -105,30 +106,25 @@ > parent.setLayoutData(data); > > //Now create a work area for the rest of the dialog >- Composite composite = new Composite(parent, SWT.NULL); >+ workArea = new Composite(parent, SWT.NULL); > GridLayout childLayout = new GridLayout(); > childLayout.marginHeight = 0; > childLayout.marginWidth = 0; > childLayout.verticalSpacing = 0; >- composite.setLayout(childLayout); >+ workArea.setLayout(childLayout); > > Control top = createTitleArea(parent); > >- FormData childData = new FormData(); >- childData.top = new FormAttachment(top); >- childData.right = new FormAttachment(100,0); >- childData.left = new FormAttachment(0,0); >- childData.bottom = new FormAttachment(100,0); >- composite.setLayoutData(childData); >+ resetWorkAreaAttachments(top); > >- composite.setFont(JFaceResources.getDialogFont()); >+ workArea.setFont(JFaceResources.getDialogFont()); > > // initialize the dialog units >- initializeDialogUnits(composite); >+ initializeDialogUnits(workArea); > > // create the dialog area and button bar >- dialogArea = createDialogArea(composite); >- buttonBar = createButtonBar(composite); >+ dialogArea = createDialogArea(workArea); >+ buttonBar = createButtonBar(workArea); > > return parent; > } >@@ -582,6 +578,15 @@ > public void setTitleImage(Image newTitleImage) { > titleImage.setImage(newTitleImage); > titleImage.setVisible(newTitleImage != null); >+ if(newTitleImage != null){ >+ determineTitleImageLargest(); >+ Control top; >+ if(titleImageLargest) >+ top = titleImage; >+ else >+ top = messageLabel; >+ resetWorkAreaAttachments(top); >+ } > } > > /** >@@ -611,6 +616,20 @@ > messageImageLabel.setBackground(color); > bottomFillerLabel.setBackground(color); > leftFillerLabel.setBackground(color); >+} >+ >+/** >+ * Reset the attachment of the workArea to now attach >+ * to top as the top control. >+ * @param top >+ */ >+private void resetWorkAreaAttachments(Control top) { >+ FormData childData = new FormData(); >+ childData.top = new FormAttachment(top); >+ childData.right = new FormAttachment(100, 0); >+ childData.left = new FormAttachment(0, 0); >+ childData.bottom = new FormAttachment(100, 0); >+ workArea.setLayoutData(childData); > } > > }
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 38072
:
4949
|
4950
|
4978
| 5006