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 286325 Details for
Bug 573382
Tab Folder Layout is broken after update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet demonstrating the behaviour
TabFolderBug.java (text/x-java), 2.54 KB, created by
Christoph Laeubrich
on 2021-05-05 09:46:55 EDT
(
hide
)
Description:
Snippet demonstrating the behaviour
Filename:
MIME Type:
Creator:
Christoph Laeubrich
Created:
2021-05-05 09:46:55 EDT
Size:
2.54 KB
patch
obsolete
>package jface.snippets; > >import java.io.IOException; > >import org.eclipse.jface.action.Action; >import org.eclipse.jface.action.ToolBarManager; >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.SashForm; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.TabFolder; >import org.eclipse.swt.widgets.TabItem; >import org.eclipse.swt.widgets.Text; > >public class TabFolderBug { > > public static void main(String[] args) throws IOException { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setText("Tab Test"); > shell.setLayout(new FillLayout()); > SashForm sashForm = new SashForm(shell, SWT.HORIZONTAL); > new Label(sashForm, SWT.NONE).setText("left"); > TabFolder tabFolder = new TabFolder(sashForm, SWT.BOTTOM); > TabItem tab1 = new TabItem(tabFolder, SWT.NONE); > { > Composite composite = new Composite(tabFolder, SWT.NONE); > composite.setBackground(shell.getDisplay().getSystemColor(SWT.COLOR_BLUE)); > composite.setLayout(new GridLayout(1, false)); > ToolBarManager toolBarManager = new ToolBarManager(); > toolBarManager.add(new Action("Text") { > @Override > public void run() { > setText(getText() + getText()); > toolBarManager.update(true); > } > }); > toolBarManager.createControl(composite); > Text text = new Text(composite, SWT.MULTI | SWT.WRAP); > text.setText( > "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."); > text.setLayoutData(new GridData(GridData.FILL_BOTH)); > tab1.setText("Tab 1"); > tab1.setControl(composite); > } > TabItem tab2 = new TabItem(tabFolder, SWT.NONE); > { > tab2.setText("Tab 2"); > } > sashForm.setWeights(300, 700); > shell.open(); > shell.setSize(800, 400); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } > >}
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 573382
: 286325 |
286326