/**
* Test applying creation flow order.
*/
public void test_BOUNDS_CreationFlow() throws Exception {
preferences.setValue(IPreferenceConstants.P_CREATION_FLOW, true);
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new AbsoluteLayout());",
" {",
" Button button = new Button();",
" add(button, new AbsoluteData(100, 50));",
" }",
" {",
" Text text = new Text();",
" add(text, new AbsoluteData(150, 100));",
" }",
" }",
"}");
container.refresh();
AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
ComponentInfo text = container.getChildren(ComponentInfo.class).get(1);
// Bounds
layout.command_BOUNDS(text, new Point(5, 5), null);
assertEditor(
"public class Test extends LayoutContainer {",
" public Test() {",