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 195495 Details for
Bug 345597
[Theming] Background color is not applied
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Example
TestDialog.java (text/x-java), 2.15 KB, created by
Oliver B.
on 2011-05-12 09:24:11 EDT
(
hide
)
Description:
Example
Filename:
MIME Type:
Creator:
Oliver B.
Created:
2011-05-12 09:24:11 EDT
Size:
2.15 KB
patch
obsolete
>package test; > >import org.eclipse.jface.dialogs.Dialog; >import org.eclipse.jface.dialogs.IDialogConstants; >import org.eclipse.rwt.graphics.Graphics; >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.CCombo; >import org.eclipse.swt.custom.CLabel; >import org.eclipse.swt.graphics.Color; >import org.eclipse.swt.graphics.Point; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Combo; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.DateTime; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class TestDialog extends Dialog >{ > private static Color testColor = Graphics.getColor(255, 169, 169); > > public TestDialog(Shell parentShell) > { > super(parentShell); > } > > @Override > protected Control createDialogArea(Composite parent) > { > Composite container = (Composite) super.createDialogArea(parent); > container.setLayout(new GridLayout(1, false)); > { > Text text = new Text(container, SWT.BORDER); > text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > text.setBackground(testColor); > } > { > Combo combo = new Combo(container, SWT.NONE); > combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > combo.setBackground(testColor); > } > { > CCombo combo = new CCombo(container, SWT.NONE); > combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > combo.setBackground(testColor); > } > { > DateTime dateTime = new DateTime(container, SWT.MEDIUM); > dateTime.setBackground(testColor); > } > { > CLabel label = new CLabel(container, SWT.NONE); > label.setText("New Label"); > label.setBackground(testColor); > } > > return container; > } > > @Override > protected void createButtonsForButtonBar(Composite parent) > { > createButton(parent, IDialogConstants.OK_ID, IDialogConstants.get().OK_LABEL, true); > createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.get().CANCEL_LABEL, false); > } > > @Override > protected Point getInitialSize() > { > return new Point(450, 300); > } > >}
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 Raw
Actions:
View
Attachments on
bug 345597
: 195495 |
195700