[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Layout in SectionForm is incorrect, SOS!!!

I had created an editor based formsection, which is like as plugin
editor.some code show below:
public class ServiceFormSection extends FormSection {

public Composite createClient(
  Composite parent,
  FormWidgetFactory factory) {

  Composite container = factory.createComposite(parent, SWT.BORDER);
  container.setLayout(new GridLayout());
  container.setLayoutData(new GridData(GridData.FILL_BOTH));

  Text text = new Text(container, SWT.BORDER);
  text.setText("ABCDEFGHIJKL");
  text.setLayoutData(new GridData(GridData.FILL_BOTH));
}
}

when the eclipse workbench with plugin is running, no any problem.
keep my editor is opened, and close eclipse workbench, just rerun the
eclipse workbench,
eclipse will automatically open my editor, but the text layout is mess, and
no border,
resize or maximize the editor , will restore normal.
pass track, I found the continer layout is right, but text layout is
incorrectly, so mess.
Is it a bug with eclipse?
please help me!!!
Thanks everybody!