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 10698 Details for
Bug 62411
[Workbench] ApplicationWindow's CoolBar does not re-layout window's contents on CoolItem's drag
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.
Source code demonstrating the problem
TestWindow.java (text/java), 1.44 KB, created by
Willian Mitsuda
on 2004-05-15 19:55:23 EDT
(
hide
)
Description:
Source code demonstrating the problem
Filename:
MIME Type:
Creator:
Willian Mitsuda
Created:
2004-05-15 19:55:23 EDT
Size:
1.44 KB
patch
obsolete
>import org.eclipse.jface.action.Action; >import org.eclipse.jface.action.CoolBarManager; >import org.eclipse.jface.action.ToolBarManager; >import org.eclipse.jface.window.ApplicationWindow; >import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Text; > >/** > * @author wmitsuda > */ >public class TestWindow extends ApplicationWindow { > > public static void main(String[] args) { > ApplicationWindow window = new TestWindow(); > window.setBlockOnOpen(true); > window.open(); > Display.getCurrent().dispose(); > } > > public TestWindow() { > super(null); > addCoolBar(SWT.FLAT); > } > > private static class DummyAction extends Action { > public DummyAction(String text) { > setText(text); > } > } > > protected CoolBarManager createCoolBarManager(int style) { > CoolBarManager manager = new CoolBarManager(style); > > ToolBarManager tb1 = new ToolBarManager(style); > tb1.add(new DummyAction("test 1")); > manager.add(tb1); > > ToolBarManager tb2 = new ToolBarManager(style); > tb2.add(new DummyAction("test 2")); > manager.add(tb2); > > return manager; > } > > protected Control createContents(Composite parent) { > getShell().setMaximized(true); > Text text = new Text(parent, SWT.BORDER | SWT.MULTI); > text.setText("the quick brown fox jumps over the lazy dog"); > text.setFocus(); > return text; > } > >}
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 62411
: 10698 |
10699
|
10700